2012-11-01 16:28:16 -06:00
|
|
|
-- a collection of misc lua scripts
|
2015-10-23 22:10:15 -06:00
|
|
|
--[[=begin
|
|
|
|
|
|
|
|
dfusion
|
|
|
|
=======
|
|
|
|
Interface to a lecacy script system.
|
|
|
|
|
|
|
|
=end]]
|
|
|
|
|
2012-11-01 08:00:00 -06:00
|
|
|
local dfu=require("plugins.dfusion")
|
|
|
|
local myos=dfhack.getOSType()
|
2012-11-01 16:28:16 -06:00
|
|
|
args={...}
|
|
|
|
mainmenu=dfu.SimpleMenu()
|
|
|
|
function runsave()
|
2012-11-01 16:50:20 -06:00
|
|
|
local path=string.format("data/save/%s/dfhack.lua",df.global.world.cur_savegame.save_dir)
|
|
|
|
print("doing file:"..path)
|
|
|
|
loadfile(path)()
|
2012-11-01 08:00:00 -06:00
|
|
|
end
|
2012-11-01 16:28:16 -06:00
|
|
|
mainmenu:add("Run save script",runsave)
|
|
|
|
mainmenu:add("Adventurer tools",require("plugins.dfusion.adv_tools").menu)
|
2012-11-01 16:50:20 -06:00
|
|
|
mainmenu:add("Misc tools",require("plugins.dfusion.tools").menu)
|
2012-11-01 16:28:16 -06:00
|
|
|
mainmenu:display()
|