[Scummvm-cvs-logs] CVS: scummvm/backends/dc dc.h,1.39,1.40 vmsave.cpp,1.27,1.28

Max Horn fingolfin at users.sourceforge.net
Tue May 10 16:21:30 CEST 2005


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

Modified Files:
	dc.h vmsave.cpp 
Log Message:
Moved (In/Out)SaveFile(Manager) and Timer to namespace Common

Index: dc.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/dc/dc.h,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- dc.h	19 Apr 2005 20:35:48 -0000	1.39
+++ dc.h	10 May 2005 23:17:13 -0000	1.40
@@ -161,7 +161,7 @@
   void setWindowCaption(const char *caption);
 
   // Savefile handling
-  SaveFileManager *getSavefileManager();
+  Common::SaveFileManager *getSavefileManager();
 
 
   // Extra SoftKbd support

Index: vmsave.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/dc/vmsave.cpp,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- vmsave.cpp	4 May 2005 23:38:07 -0000	1.27
+++ vmsave.cpp	10 May 2005 23:17:13 -0000	1.28
@@ -216,7 +216,7 @@
 }
 
 
-class InVMSave : public InSaveFile {
+class InVMSave : public Common::InSaveFile {
 private:
   char *buffer;
   int pos, size;
@@ -254,7 +254,7 @@
   }
 };
 
-class OutVMSave : public OutSaveFile {
+class OutVMSave : public Common::OutSaveFile {
 private:
   char *buffer;
   int pos, size;
@@ -273,14 +273,14 @@
   ~OutVMSave();
 };
 
-class VMSaveManager : public SaveFileManager {
+class VMSaveManager : public Common::SaveFileManager {
 public:
   
-  virtual OutSaveFile *openForSaving(const char *filename) {
+  virtual Common::OutSaveFile *openForSaving(const char *filename) {
 	return new OutVMSave(filename);
   }
 
-  virtual InSaveFile *openForLoading(const char *filename) {
+  virtual Common::InSaveFile *openForLoading(const char *filename) {
 	InVMSave *s = new InVMSave();
 	if(s->readSaveGame(filename)) {
 	  s->tryUncompress();
@@ -349,7 +349,7 @@
     tryList(prefix, marks, num, i);
 }
 
-SaveFileManager *OSystem_Dreamcast::getSavefileManager()
+Common::SaveFileManager *OSystem_Dreamcast::getSavefileManager()
 {
   return new VMSaveManager();
 }





More information about the Scummvm-git-logs mailing list