Page 1 of 1

[svn] Savefiles not found (Ubuntu Linux)

Posted: Mon Dec 26, 2011 7:50 am
by Noel
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.

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

Re: [svn] Savefiles not found (Ubuntu Linux)

Posted: Mon Dec 26, 2011 5:31 pm
by darkgod
Uh weird .. well fixed