[Scummvm-cvs-logs] SF.net SVN: scummvm: [27973] scummvm/branches/gsoc2007-fsnode/backends/ saves/default/default-saves.cpp
david_corrales at users.sourceforge.net
david_corrales at users.sourceforge.net
Sun Jul 8 19:44:26 CEST 2007
Revision: 27973
http://scummvm.svn.sourceforge.net/scummvm/?rev=27973&view=rev
Author: david_corrales
Date: 2007-07-08 10:44:26 -0700 (Sun, 08 Jul 2007)
Log Message:
-----------
Fixed a very strange bug with strings. Also added a couple sanity checks.
Modified Paths:
--------------
scummvm/branches/gsoc2007-fsnode/backends/saves/default/default-saves.cpp
Modified: scummvm/branches/gsoc2007-fsnode/backends/saves/default/default-saves.cpp
===================================================================
--- scummvm/branches/gsoc2007-fsnode/backends/saves/default/default-saves.cpp 2007-07-08 17:16:05 UTC (rev 27972)
+++ scummvm/branches/gsoc2007-fsnode/backends/saves/default/default-saves.cpp 2007-07-08 17:44:26 UTC (rev 27973)
@@ -184,12 +184,11 @@
FilesystemNode savePath(getSavePath());
FSList savefiles;
Common::String search(prefix);
- search += '*'; //match all files that start with the given prefix
- search.c_str(); //FIXME: subtle bug? removing this line will break things. Looks like the string isn't getting updated.
+ search = search + '*'; //match all files that start with the given prefix. += causes a strange bug.
assert(marks);
memset(marks, false, num * sizeof(bool)); //assume no savegames for this title
-
+
if(savePath.lookupFile(savefiles, savePath, search, false, true)) {
char slot[2];
int slotNum;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list