mirror of
https://gitlab.com/Syping/luaengineapp.git
synced 2024-12-22 11:55:29 +01:00
fix compileArgs for reworked function
This commit is contained in:
parent
2879ae33ed
commit
906ce569c0
1 changed files with 4 additions and 5 deletions
|
@ -116,13 +116,12 @@ end
|
||||||
function compileScript()
|
function compileScript()
|
||||||
local filePath = showFileDialog(SaveFileDialog, "Select output file...", currentFilter, mainWindow)
|
local filePath = showFileDialog(SaveFileDialog, "Select output file...", currentFilter, mainWindow)
|
||||||
if (filePath ~= nil) then
|
if (filePath ~= nil) then
|
||||||
local extraArg1
|
local compileArgs = { getWidgetText(scriptLineEdit) }
|
||||||
local extraArg2
|
|
||||||
if (currentSstub ~= nil) then
|
if (currentSstub ~= nil) then
|
||||||
extraArg1 = "--luaengine"
|
compileArgs[2] = "--luaengine"
|
||||||
extraArg2 = sstubDir.."/"..currentSstub
|
compileArgs[3] = sstubDir.."/"..currentSstub
|
||||||
end
|
end
|
||||||
if (executeProcess(compilerPath, getWidgetText(scriptLineEdit), filePath, extraArg1, extraArg2, false) == false) then
|
if (executeProcess(compilerPath, compileArgs, false) == false) then
|
||||||
showMessageBox(WarningMessageBox, "Error occurred while compile!", "LuaEngine Compiler")
|
showMessageBox(WarningMessageBox, "Error occurred while compile!", "LuaEngine Compiler")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue