[svn] Savefiles not found (Ubuntu Linux)
Posted: Mon Dec 26, 2011 7:50 am
With r4754 compiled under Ubuntu Linux, Load Game does not list any savefiles, even though there are valid savefiles.
Appending a directory separator to the fs.mount() in game/engines/default/engine/Module.lua makes the savefiles appear as they should.
Appending a directory separator to the fs.mount() in game/engines/default/engine/Module.lua makes the savefiles appear as they should.
Code: Select all
===================================================================
--- game/engines/default/engine/Module.lua (revision 4754)
+++ game/engines/default/engine/Module.lua (working copy)
@@ -172,7 +172,7 @@
-- Static
function _M:listSavefiles(moddir_filter)
local allmounts = fs.getSearchPath(true)
- fs.mount(engine.homepath, "/tmp/listsaves")
+ fs.mount(engine.homepath..fs.getPathSeparator(), "/tmp/listsaves")
local mods = self:listModules(nil, moddir_filter)
for _, mod in ipairs(mods) do