diff options
author | Arnaud Boutonné | 2009-07-07 12:51:21 +0000 |
---|---|---|
committer | Arnaud Boutonné | 2009-07-07 12:51:21 +0000 |
commit | 09efaaa1c91854feaf19ba6fae1b702203984e26 (patch) | |
tree | bfec2ae8fc4886d248cd0a0f6e4cedfb62e0c5ec /engines/gob | |
parent | 74670cc834636b431b168343511415ccbcc97a71 (diff) | |
download | scummvm-rg350-09efaaa1c91854feaf19ba6fae1b702203984e26.tar.gz scummvm-rg350-09efaaa1c91854feaf19ba6fae1b702203984e26.tar.bz2 scummvm-rg350-09efaaa1c91854feaf19ba6fae1b702203984e26.zip |
Change SaveLoad_Playtoons case
svn-id: r42217
Diffstat (limited to 'engines/gob')
-rw-r--r-- | engines/gob/gob.cpp | 6 | ||||
-rw-r--r-- | engines/gob/gob.h | 1 | ||||
-rw-r--r-- | engines/gob/save/saveload.h | 8 | ||||
-rw-r--r-- | engines/gob/save/saveload_playtoons.cpp | 12 |
4 files changed, 17 insertions, 10 deletions
diff --git a/engines/gob/gob.cpp b/engines/gob/gob.cpp index c5136344eb..5fe5971e8c 100644 --- a/engines/gob/gob.cpp +++ b/engines/gob/gob.cpp @@ -205,6 +205,10 @@ bool GobEngine::isBATDemo() const { return (_features & kFeaturesBATDemo) != 0; } +bool GobEngine::is800() const { + return (_features & kFeatures800) != 0; +} + bool GobEngine::isDemo() const { return (isSCNDemo() || isBATDemo()); } @@ -458,7 +462,7 @@ bool GobEngine::initGameParts() { _map = new Map_v2(this); _goblin = new Goblin_v2(this); _scenery = new Scenery_v2(this); - _saveLoad = new SaveLoad_playtoons(this); + _saveLoad = new SaveLoad_Playtoons(this); break; default: diff --git a/engines/gob/gob.h b/engines/gob/gob.h index d04a8b9834..aa87881b05 100644 --- a/engines/gob/gob.h +++ b/engines/gob/gob.h @@ -218,6 +218,7 @@ public: bool hasAdlib() const; bool isSCNDemo() const; bool isBATDemo() const; + bool is800() const; bool isDemo() const; GobEngine(OSystem *syst); diff --git a/engines/gob/save/saveload.h b/engines/gob/save/saveload.h index 8095b8c045..8d785c7233 100644 --- a/engines/gob/save/saveload.h +++ b/engines/gob/save/saveload.h @@ -446,10 +446,12 @@ protected: }; /** Save/Load class for Playtoons. */ -class SaveLoad_playtoons : public SaveLoad { +/** Only used for the moment to check file presence */ + +class SaveLoad_Playtoons : public SaveLoad { public: - SaveLoad_playtoons(GobEngine *vm); - virtual ~SaveLoad_playtoons(); + SaveLoad_Playtoons(GobEngine *vm); + virtual ~SaveLoad_Playtoons(); protected: struct SaveFile { diff --git a/engines/gob/save/saveload_playtoons.cpp b/engines/gob/save/saveload_playtoons.cpp index 576a10294f..97da909e7c 100644 --- a/engines/gob/save/saveload_playtoons.cpp +++ b/engines/gob/save/saveload_playtoons.cpp @@ -29,7 +29,7 @@ namespace Gob { -SaveLoad_playtoons::SaveFile SaveLoad_playtoons::_saveFiles[] = { +SaveLoad_Playtoons::SaveFile SaveLoad_Playtoons::_saveFiles[] = { { "disk.001", kSaveModeExists, 0, 0}, // Playtoons 1 identification file { "disk.002", kSaveModeExists, 0, 0}, // Playtoons 2 identification file { "disk.003", kSaveModeExists, 0, 0}, // Playtoons 3 identification file @@ -49,7 +49,7 @@ SaveLoad_playtoons::SaveFile SaveLoad_playtoons::_saveFiles[] = { { "mdo.def", kSaveModeExists, 0, 0}, }; -SaveLoad::SaveMode SaveLoad_playtoons::getSaveMode(const char *fileName) const { +SaveLoad::SaveMode SaveLoad_Playtoons::getSaveMode(const char *fileName) const { const SaveFile *saveFile = getSaveFile(fileName); if (saveFile) @@ -58,14 +58,14 @@ SaveLoad::SaveMode SaveLoad_playtoons::getSaveMode(const char *fileName) const { return kSaveModeNone; } -SaveLoad_playtoons::SaveLoad_playtoons(GobEngine *vm) : +SaveLoad_Playtoons::SaveLoad_Playtoons(GobEngine *vm) : SaveLoad(vm) { } -SaveLoad_playtoons::~SaveLoad_playtoons() { +SaveLoad_Playtoons::~SaveLoad_Playtoons() { } -const SaveLoad_playtoons::SaveFile *SaveLoad_playtoons::getSaveFile(const char *fileName) const { +const SaveLoad_Playtoons::SaveFile *SaveLoad_Playtoons::getSaveFile(const char *fileName) const { fileName = stripPath(fileName); for (int i = 0; i < ARRAYSIZE(_saveFiles); i++) @@ -75,7 +75,7 @@ const SaveLoad_playtoons::SaveFile *SaveLoad_playtoons::getSaveFile(const char * return 0; } -SaveLoad_playtoons::SaveFile *SaveLoad_playtoons::getSaveFile(const char *fileName) { +SaveLoad_Playtoons::SaveFile *SaveLoad_Playtoons::getSaveFile(const char *fileName) { fileName = stripPath(fileName); for (int i = 0; i < ARRAYSIZE(_saveFiles); i++) |