Skip to content

Commit

Permalink
Added showing love2d console when requested.
Browse files Browse the repository at this point in the history
  • Loading branch information
pkulchenko committed Feb 11, 2015
1 parent 01ef664 commit ee1a4a5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion interpreters/love2d.lua
Expand Up @@ -41,11 +41,17 @@ return {
DebuggerAttachDefault({runstart = ide.config.debugger.runonstart == true})
end

-- suppress hiding ConsoleWindowClass as this is used by Love console
local uhw = ide.config.unhidewindow
local cwc = uhw and uhw.ConsoleWindowClass
if uhw then uhw.ConsoleWindowClass = 0 end

local params = ide.config.arg.any or ide.config.arg.love2d
local cmd = ('"%s" "%s"%s%s'):format(love2d, self:fworkdir(wfilename),
params and " "..params or "", rundebug and ' -debug' or '')
-- CommandLineRun(cmd,wdir,tooutput,nohide,stringcallback,uid,endcallback)
return CommandLineRun(cmd,self:fworkdir(wfilename),true,true)
return CommandLineRun(cmd,self:fworkdir(wfilename),true,true,nil,nil,
function() if uhw then uhw.ConsoleWindowClass = cwc end end)
end,
hasdebugger = true,
fattachdebug = function(self) DebuggerAttachDefault() end,
Expand Down

0 comments on commit ee1a4a5

Please sign in to comment.