Skip to content
Snippets Groups Projects
Commit 096c389b authored by dg's avatar dg
Browse files

oups

git-svn-id: http://svn.net-core.org/repos/t-engine4@4409 51575b47-30f0-44d4-a5cc-537603b46e54
parent ea03037f
No related branches found
No related tags found
No related merge requests found
......@@ -172,16 +172,13 @@ end
-- Static
function _M:listSavefiles(moddir_filter)
local allmounts = fs.getSearchPath(true)
table.print(fs.getSearchPath(1))
fs.mount(engine.homepath, "/tmp/listsaves")
local mods = self:listModules(nil, moddir_filter)
for _, mod in ipairs(mods) do
local lss = {}
print("========", mod.short_name)
for i, short_name in ipairs(fs.list("/tmp/listsaves/"..mod.short_name.."/save/")) do
local dir = "/tmp/listsaves/"..mod.short_name.."/save/"..short_name
print("====", dir)
if fs.exists(dir.."/game.teag") then
local def = self:loadSavefileDescription(dir)
if def then
......@@ -202,7 +199,6 @@ function _M:listSavefiles(moddir_filter)
fs.reset()
fs.mountAll(allmounts)
table.print(fs.getSearchPath(1))
return mods
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment