[Scummvm-cvs-logs] CVS: scummvm/sword2 save_rest.cpp,1.69,1.70

Max Horn fingolfin at users.sourceforge.net
Sun Apr 10 08:14:17 CEST 2005


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

Modified Files:
	save_rest.cpp 
Log Message:
split SaveFileManager::openSavefile and class SaveFile into two, each, one for loading and one for saving

Index: save_rest.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/save_rest.cpp,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -d -r1.69 -r1.70
--- save_rest.cpp	9 Apr 2005 13:07:59 -0000	1.69
+++ save_rest.cpp	10 Apr 2005 15:13:40 -0000	1.70
@@ -183,9 +183,9 @@
 
 	sprintf(saveFileName, "%s.%.3d", _targetName.c_str(), slotNo);
 
-	SaveFile *out;
+	OutSaveFile *out;
 
-	if (!(out = _saveFileMan->openSavefile(saveFileName, true))) {
+	if (!(out = _saveFileMan->openForSaving(saveFileName))) {
 		return SR_ERR_FILEOPEN;
 	}
 
@@ -261,9 +261,9 @@
 
 	sprintf(saveFileName, "%s.%.3d", _targetName.c_str(), slotNo);
 
-	SaveFile *in;
+	InSaveFile *in;
 
-	if (!(in = _saveFileMan->openSavefile(saveFileName, false))) {
+	if (!(in = _saveFileMan->openForLoading(saveFileName))) {
 		// error: couldn't open file
 		return SR_ERR_FILEOPEN;
 	}
@@ -405,9 +405,9 @@
 
 	sprintf(saveFileName, "%s.%.3d", _targetName.c_str(), slotNo);
 
-	SaveFile *in;
+	InSaveFile *in;
 
-	if (!(in = _saveFileMan->openSavefile(saveFileName, false))) {
+	if (!(in = _saveFileMan->openForLoading(saveFileName))) {
 		return SR_ERR_FILEOPEN;
 	}
 
@@ -432,9 +432,9 @@
 
 	sprintf(saveFileName, "%s.%.3d", _targetName.c_str(), slotNo);
 
-	SaveFile *in;
+	InSaveFile *in;
 
-	if (!(in = _saveFileMan->openSavefile(saveFileName, false))) {
+	if (!(in = _saveFileMan->openForLoading(saveFileName))) {
 		return false;
 	}
 





More information about the Scummvm-git-logs mailing list