[Scummvm-cvs-logs] CVS: scummvm/backends/dc vmsave.cpp,1.26,1.27
Marcus Comstedt
marcus_c at users.sourceforge.net
Wed May 4 16:38:49 CEST 2005
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/backends/dc vmsave.cpp,1.25,1.26
- Next message: [Scummvm-cvs-logs] CVS: scummvm/backends/ps2 smushio.cpp,NONE,1.1 DmaPipe.cpp,1.2,1.3 DmaPipe.h,1.2,1.3 Gs2dScreen.cpp,1.2,1.3 Gs2dScreen.h,1.2,1.3 GsDefs.h,1.2,1.3 asyncfio.cpp,1.2,1.3 asyncfio.h,1.2,1.3 fileio.cpp,1.2,1.3 fileio.h,1.2,1.3 ps2input.cpp,1.2,1.3 ps2input.h,1.2,1.3 ps2pad.cpp,1.2,1.3 ps2pad.h,1.2,1.3 savefile.cpp,1.2,1.3 savefile.h,1.3,1.4 sysdefs.h,1.2,1.3 systemps2.cpp,1.3,1.4 systemps2.h,1.2,1.3 libkbd.cpp,1.1,NONE sjpcm.h,1.1,NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/backends/dc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25453
Modified Files:
vmsave.cpp
Log Message:
Dispense with the filename field of InVMSaves.
Index: vmsave.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/dc/vmsave.cpp,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- vmsave.cpp 4 May 2005 23:34:26 -0000 1.26
+++ vmsave.cpp 4 May 2005 23:38:07 -0000 1.27
@@ -220,16 +220,13 @@
private:
char *buffer;
int pos, size;
- char filename[16];
uint32 read(void *buf, uint32 cnt);
public:
- InVMSave(const char *_filename)
+ InVMSave()
: pos(0), buffer(NULL)
- {
- strncpy(filename, _filename, 16);
- }
+ { }
~InVMSave()
{
@@ -239,7 +236,7 @@
bool eos() const { return pos >= size; }
- bool readSaveGame()
+ bool readSaveGame(const char *filename)
{ return ::readSaveGame(buffer, size, filename); }
void tryUncompress()
@@ -284,8 +281,8 @@
}
virtual InSaveFile *openForLoading(const char *filename) {
- InVMSave *s = new InVMSave(filename);
- if(s->readSaveGame()) {
+ InVMSave *s = new InVMSave();
+ if(s->readSaveGame(filename)) {
s->tryUncompress();
return s;
} else {
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/backends/dc vmsave.cpp,1.25,1.26
- Next message: [Scummvm-cvs-logs] CVS: scummvm/backends/ps2 smushio.cpp,NONE,1.1 DmaPipe.cpp,1.2,1.3 DmaPipe.h,1.2,1.3 Gs2dScreen.cpp,1.2,1.3 Gs2dScreen.h,1.2,1.3 GsDefs.h,1.2,1.3 asyncfio.cpp,1.2,1.3 asyncfio.h,1.2,1.3 fileio.cpp,1.2,1.3 fileio.h,1.2,1.3 ps2input.cpp,1.2,1.3 ps2input.h,1.2,1.3 ps2pad.cpp,1.2,1.3 ps2pad.h,1.2,1.3 savefile.cpp,1.2,1.3 savefile.h,1.3,1.4 sysdefs.h,1.2,1.3 systemps2.cpp,1.3,1.4 systemps2.h,1.2,1.3 libkbd.cpp,1.1,NONE sjpcm.h,1.1,NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list