|
|
@ -45,6 +45,14 @@ function mainmenu(t1)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
function RunSaved()
|
|
|
|
|
|
|
|
print("Locating saves...")
|
|
|
|
|
|
|
|
local str=df.world.cur_savegame.save_dir
|
|
|
|
|
|
|
|
print("Current region:"..str)
|
|
|
|
|
|
|
|
str="data/save/"..str.."/dfusion/init.lua"
|
|
|
|
|
|
|
|
print("Trying to run:"..str)
|
|
|
|
|
|
|
|
dofile_silent(str)
|
|
|
|
|
|
|
|
end
|
|
|
|
dofile("dfusion/common.lua")
|
|
|
|
dofile("dfusion/common.lua")
|
|
|
|
dofile("dfusion/utils.lua")
|
|
|
|
dofile("dfusion/utils.lua")
|
|
|
|
dofile("dfusion/offsets_misc.lua")
|
|
|
|
dofile("dfusion/offsets_misc.lua")
|
|
|
@ -70,14 +78,7 @@ table.insert(plugins,{"saves","run current worlds's init.lua",RunSaved})
|
|
|
|
loadall(plugins)
|
|
|
|
loadall(plugins)
|
|
|
|
dofile_silent("dfusion/initcustom.lua")
|
|
|
|
dofile_silent("dfusion/initcustom.lua")
|
|
|
|
|
|
|
|
|
|
|
|
function RunSaved()
|
|
|
|
|
|
|
|
print("Locating saves...")
|
|
|
|
|
|
|
|
local str=df.world.cur_savegame.save_dir
|
|
|
|
|
|
|
|
print("Current region:"..str)
|
|
|
|
|
|
|
|
str="data/save/"..str.."/dfusion/init.lua"
|
|
|
|
|
|
|
|
print("Trying to run:"..str)
|
|
|
|
|
|
|
|
dofile_silent(str)
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
if not INIT then
|
|
|
|
if not INIT then
|
|
|
|
mainmenu(plugins)
|
|
|
|
mainmenu(plugins)
|
|
|
|
end
|
|
|
|
end
|
|
|
|