[Scummvm-cvs-logs] CVS: scummvm/sword2 save_rest.cpp,1.59,1.60

Max Horn fingolfin at users.sourceforge.net
Fri Nov 26 17:15:36 CET 2004


Update of /cvsroot/scummvm/scummvm/sword2
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24926/sword2

Modified Files:
	save_rest.cpp 
Log Message:
Moved Engine::getSavePath() to class SaveFileManager; removed the 'directory' parameter from SaveFileManager::openSavefile and listSavefiles (they always use getSavePath() now, which is what we did anyway)

Index: save_rest.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/save_rest.cpp,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -d -r1.59 -r1.60
--- save_rest.cpp	15 Nov 2004 08:22:16 -0000	1.59
+++ save_rest.cpp	27 Nov 2004 00:26:11 -0000	1.60
@@ -167,7 +167,7 @@
 
 	SaveFile *out;
 
-	if (!(out = _saveFileMan->open_savefile(saveFileName, getSavePath(), true))) {
+	if (!(out = _saveFileMan->openSavefile(saveFileName, true))) {
 		return SR_ERR_FILEOPEN;
 	}
 
@@ -214,7 +214,7 @@
 
 	SaveFile *in;
 
-	if (!(in = _saveFileMan->open_savefile(saveFileName, getSavePath(), false))) {
+	if (!(in = _saveFileMan->openSavefile(saveFileName, false))) {
 		// error: couldn't open file
 		return SR_ERR_FILEOPEN;
 	}
@@ -359,7 +359,7 @@
 
 	SaveFile *in;
 
-	if (!(in = _saveFileMan->open_savefile(saveFileName, getSavePath(), false))) {
+	if (!(in = _saveFileMan->openSavefile(saveFileName, false))) {
 		return SR_ERR_FILEOPEN;
 	}
 
@@ -386,7 +386,7 @@
 
 	SaveFile *in;
 
-	if (!(in = _saveFileMan->open_savefile(saveFileName, getSavePath(), false))) {
+	if (!(in = _saveFileMan->openSavefile(saveFileName, false))) {
 		return false;
 	}
 





More information about the Scummvm-git-logs mailing list