Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/syj2010syj/w3x2lni
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Dec 23, 2016
2 parents 5a0a4eb + 2a6f790 commit fb28849
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions script/gui/backend.lua
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ end

function srv.async_popen(commandline)
local process, out_rd, err_rd, in_wr = srv.popen(commandline)
if not process then
return
end
in_wr:close()
return setmetatable({
process = process,
Expand Down
2 changes: 1 addition & 1 deletion script/gui/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ local function window_convert(canvas)
else
if canvas:button('开始') then
canvas:progress(0, 100)
backend = srv.async_popen(('"%s" -backend "%s"'):format(arg[0], mappath:string()))
backend = srv.async_popen(('"%s" -backend "%s"'):format(fs.get(fs.DIR_EXE):string(), mappath:string()))
srv.message = '正在初始化...'
srv.progress = nil
srv.report = {}
Expand Down

0 comments on commit fb28849

Please sign in to comment.