[Scummvm-cvs-logs] SF.net SVN: scummvm: [22181] scummvm/trunk/common/savefile.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Wed Apr 26 06:13:06 CEST 2006


Revision: 22181
Author:   eriktorbjorn
Date:     2006-04-26 06:12:33 -0700 (Wed, 26 Apr 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22181&view=rev

Log Message:
-----------
Use the joined filename for savegames, otherwise saves will be stored in the
current working directory instead of the save directory.

Modified Paths:
--------------
    scummvm/trunk/common/savefile.cpp
Modified: scummvm/trunk/common/savefile.cpp
===================================================================
--- scummvm/trunk/common/savefile.cpp	2006-04-26 11:15:13 UTC (rev 22180)
+++ scummvm/trunk/common/savefile.cpp	2006-04-26 13:12:33 UTC (rev 22181)
@@ -206,9 +206,9 @@
 	join_paths(filename, getSavePath(), buf, sizeof(buf));
 
 #ifdef USE_ZLIB
-	GzipSaveFile *sf = new GzipSaveFile(filename, true);
+	GzipSaveFile *sf = new GzipSaveFile(buf, true);
 #else
-	StdioSaveFile *sf = new StdioSaveFile(filename, true);
+	StdioSaveFile *sf = new StdioSaveFile(buf, true);
 #endif
 
 	if (!sf->isOpen()) {
@@ -223,9 +223,9 @@
 	join_paths(filename, getSavePath(), buf, sizeof(buf));
 
 #ifdef USE_ZLIB
-	GzipSaveFile *sf = new GzipSaveFile(filename, false);
+	GzipSaveFile *sf = new GzipSaveFile(buf, false);
 #else
-	StdioSaveFile *sf = new StdioSaveFile(filename, false);
+	StdioSaveFile *sf = new StdioSaveFile(buf, false);
 #endif
 
 	if (!sf->isOpen()) {


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