[Scummvm-cvs-logs] CVS: scummvm/sky control.cpp,1.94,1.95 control.h,1.36,1.37
Max Horn
fingolfin at users.sourceforge.net
Tue May 10 16:21:04 CEST 2005
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/common savefile.cpp,1.24,1.25 savefile.h,1.18,1.19 system.cpp,1.23,1.24 system.h,1.101,1.102 timer.cpp,1.33,1.34 timer.h,1.21,1.22
- Next message: [Scummvm-cvs-logs] CVS: scummvm/sword2 save_rest.cpp,1.71,1.72
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/sky
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22345/sky
Modified Files:
control.cpp control.h
Log Message:
Moved (In/Out)SaveFile(Manager) and Timer to namespace Common
Index: control.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sky/control.cpp,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -d -r1.94 -r1.95
--- control.cpp 10 Apr 2005 15:13:39 -0000 1.94
+++ control.cpp 10 May 2005 23:17:36 -0000 1.95
@@ -194,7 +194,7 @@
_statusText->drawToScreen(WITH_MASK);
}
-Control::Control(SaveFileManager *saveFileMan, Screen *screen, Disk *disk, Mouse *mouse, Text *text, MusicBase *music, Logic *logic, Sound *sound, SkyCompact *skyCompact, OSystem *system) {
+Control::Control(Common::SaveFileManager *saveFileMan, Screen *screen, Disk *disk, Mouse *mouse, Text *text, MusicBase *music, Logic *logic, Sound *sound, SkyCompact *skyCompact, OSystem *system) {
_saveFileMan = saveFileMan;
_skyScreen = screen;
@@ -784,7 +784,7 @@
bool Control::autoSaveExists(void) {
bool test = false;
- InSaveFile *f;
+ Common::InSaveFile *f;
char fName[20];
if (SkyEngine::isCDVersion())
strcpy(fName, "SKY-VM-CD.ASD");
@@ -1012,7 +1012,7 @@
memset(destBuf, 0, MAX_SAVE_GAMES * MAX_TEXT_LEN);
- InSaveFile *inf;
+ Common::InSaveFile *inf;
inf = _saveFileMan->openForLoading("SKY-VM.SAV");
if (inf != NULL) {
uint8 *tmpBuf = (uint8 *)malloc(MAX_SAVE_GAMES * MAX_TEXT_LEN);
@@ -1084,7 +1084,7 @@
tmpPos++;
srcPos += MAX_TEXT_LEN;
}
- OutSaveFile *outf;
+ Common::OutSaveFile *outf;
outf = _saveFileMan->openForSaving("SKY-VM.SAV");
if (outf != NULL) {
@@ -1100,7 +1100,7 @@
strcpy(fName, "SKY-VM-CD.ASD");
else
sprintf(fName, "SKY-VM%03d.ASD", SkyEngine::_systemVars.gameVersion);
- OutSaveFile *outf;
+ Common::OutSaveFile *outf;
outf = _saveFileMan->openForSaving(fName);
if (outf == NULL) {
@@ -1121,7 +1121,7 @@
char fName[20];
sprintf(fName,"SKY-VM.%03d", _selectedGame);
- OutSaveFile *outf;
+ Common::OutSaveFile *outf;
outf = _saveFileMan->openForSaving(fName);
if (outf == NULL) {
return NO_DISK_SPACE;
@@ -1396,7 +1396,7 @@
} else
sprintf(fName,"SKY-VM.%03d", _selectedGame);
- InSaveFile *inf;
+ Common::InSaveFile *inf;
inf = _saveFileMan->openForLoading(fName);
if (inf == NULL) {
return RESTORE_FAILED;
Index: control.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sky/control.h,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- control.h 1 Jan 2005 16:09:20 -0000 1.36
+++ control.h 10 May 2005 23:17:37 -0000 1.37
@@ -26,7 +26,9 @@
#include "common/scummsys.h"
class OSystem;
-class SaveFileManager;
+namespace Common {
+ class SaveFileManager;
+}
namespace Sky {
@@ -175,7 +177,7 @@
class Control {
public:
- Control(SaveFileManager *saveFileMan, Screen *screen, Disk *disk, Mouse *mouse, Text *text, MusicBase *music, Logic *logic, Sound *sound, SkyCompact *skyCompact, OSystem *system);
+ Control(Common::SaveFileManager *saveFileMan, Screen *screen, Disk *disk, Mouse *mouse, Text *text, MusicBase *music, Logic *logic, Sound *sound, SkyCompact *skyCompact, OSystem *system);
void doControlPanel(void);
void doLoadSavePanel(void);
void restartGame(void);
@@ -226,7 +228,7 @@
void importOldCompact(Compact* destCpt, uint8 **srcPos, uint16 numElems, uint16 type, char *name);
uint16 parseSaveData(uint8 *srcBuf);
- SaveFileManager *_saveFileMan;
+ Common::SaveFileManager *_saveFileMan;
SkyCompact *_skyCompact;
Screen *_skyScreen;
Disk *_skyDisk;
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/common savefile.cpp,1.24,1.25 savefile.h,1.18,1.19 system.cpp,1.23,1.24 system.h,1.101,1.102 timer.cpp,1.33,1.34 timer.h,1.21,1.22
- Next message: [Scummvm-cvs-logs] CVS: scummvm/sword2 save_rest.cpp,1.71,1.72
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list