[Scummvm-cvs-logs] CVS: scummvm/backends/ps2 savefile.h,1.2,1.3

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


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

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

Index: savefile.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/ps2/savefile.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- savefile.h	31 Mar 2005 07:50:32 -0000	1.2
+++ savefile.h	10 Apr 2005 15:13:36 -0000	1.3
@@ -38,7 +38,14 @@
 	Ps2SaveFileManager(const char *path, SaveMode mode, Gs2dScreen *screen);
 	virtual ~Ps2SaveFileManager();
 
-	virtual SaveFile *openSavefile(const char *filename, bool saveOrLoad);
+
+	virtual SaveFile *openForSaving(const char *filename) {
+		return openSavefile(filename, true);
+	}
+	virtual SaveFile *openForLoading(const char *filename) {
+		return openSavefile(filename, false);
+	}
+
 	virtual void listSavefiles(const char * /* prefix */, bool *marks, int num);
 
 	/** Get the path to the save game directory. */
@@ -59,6 +66,8 @@
 
 	static const iconIVECTOR _bgcolor[4];
 	static const iconFVECTOR _lightdir[3], _lightcol[3], _ambient;
+
+	SaveFile *openSavefile(const char *filename, bool saveOrLoad);
 };
 
 #endif // __PS2_SAVEFILE__





More information about the Scummvm-git-logs mailing list