Skip to content

Commit

Permalink
不要主动close了
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Jan 2, 2019
1 parent 6bb1640 commit 1fea3bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions tools/运行.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@ end
if get_debugger() then
--command = command .. ' -debugger 4278'
end
local p = subprocess.spawn {
subprocess.spawn {
ydwe / 'ydwe.exe',
'-war3',
'-loadfile', root / 'MoeHero.w3x',
}
if p then
p:close()
end
5 changes: 1 addition & 4 deletions tools/配置.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ if not ydwe then
return
end
print('YDWE:', ydwe:string())
local p = subprocess.spawn {
subprocess.spawn {
ydwe / 'bin' / 'ydweconfig.exe'
}
if p then
p:close()
end

0 comments on commit 1fea3bb

Please sign in to comment.