Skip to content

Commit

Permalink
remove compilation server wurstpack option and wurstscript_b.exe
Browse files Browse the repository at this point in the history
Didn't really work iirc and isn't needed anymore as we dev in vscode.
The _b.exe is shipped in compiler and takes up 3mb for no reason.
  • Loading branch information
Frotty committed Mar 27, 2019
1 parent eb06e6a commit 1b69b1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 34 deletions.
36 changes: 2 additions & 34 deletions Wurstpack/wehack.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,38 +83,18 @@ function aboutpopup()
end
wh_about = MenuEntry:New(whmenu,"About Grimoire ...",aboutpopup)

function wurst_compilationserver_start()
wehack.execprocess("wurstscript\\wurstscript.exe --startServer")
end

function wurst_compilationserver_stop()
wehack.execprocess("wurstscript\\wurstscript_b.exe -stopServer")
end

-- ##WurstScript##
havewurst = grim.exists("wurstscript\\wurstscript.exe")
if havewurst then
wurstmenu = wehack.addmenu("WurstScript")

function wurst_command()
if wurst_b_enable.checked then
return "wurstscript\\wurstscript_b.exe"
else
return "wurstscript\\wurstscript.exe"
end
return "wurstscript\\wurstscript.exe"
end


wurst_enable = TogMenuEntry:New(wurstmenu,"Enable WurstScript",nil,true)
wurst_b_enable = TogMenuEntry:New(wurstmenu,"Use Wurst compilation server",nil,false)




-- TODO
-- MenuEntry:New(wurstmenu,"Start Wurst compilation server ",wurst_compilationserver_start)
MenuEntry:New(wurstmenu,"Stop Wurst compilation server ",wurst_compilationserver_stop)


wehack.addmenuseparator(wurstmenu)
-- optimizer options
wurst_optenable = TogMenuEntry:New(wurstmenu,"Enable Froptimizer",nil,false)
Expand Down Expand Up @@ -591,18 +571,6 @@ grim.log("running tool on save: "..cmdargs)
mapvalid = true
else
mapvalid = false
if wurst_b_enable.checked then
if tries == 0 then
-- try starting compilation server
wurst_compilationserver_start()
-- try again
compilemap_path(mappath,tries+1)
else
wehack.messagebox("Could not run Wurst with compilation server.","Wurst",false)
end
else
wehack.messagebox("Could not run Wurst.","Wurst",false)
end
end
end
end
Expand Down
Binary file removed Wurstpack/wurstscript/wurstscript_b.exe
Binary file not shown.

0 comments on commit 1b69b1f

Please sign in to comment.