aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Hesse2011-01-26 19:04:03 +0000
committerSven Hesse2011-01-26 19:04:03 +0000
commit7a41cd7fa958c1dff2383c55af45ae2251ca7c5a (patch)
treefea5bb5f8d37be48d31123365e33e57a5515f9a8
parentf23b4af68214a4d08059353756e26a5ee54a0581 (diff)
downloadscummvm-rg350-7a41cd7fa958c1dff2383c55af45ae2251ca7c5a.tar.gz
scummvm-rg350-7a41cd7fa958c1dff2383c55af45ae2251ca7c5a.tar.bz2
scummvm-rg350-7a41cd7fa958c1dff2383c55af45ae2251ca7c5a.zip
GOB: Add stub save handlers for Addy 4 (Grundschule)
svn-id: r55549
-rw-r--r--engines/gob/save/saveload.h1
-rw-r--r--engines/gob/save/saveload_v7.cpp20
2 files changed, 20 insertions, 1 deletions
diff --git a/engines/gob/save/saveload.h b/engines/gob/save/saveload.h
index c245958541..948d76b4f9 100644
--- a/engines/gob/save/saveload.h
+++ b/engines/gob/save/saveload.h
@@ -839,6 +839,7 @@ protected:
FakeFileHandler *_childrenHandler;
FakeFileHandler *_debilHandler;
FakeFileHandler *_configHandler;
+ FakeFileHandler *_addy4GrundschuleHandler[10];
SaveHandler *getHandler(const char *fileName) const;
const char *getDescription(const char *fileName) const;
diff --git a/engines/gob/save/saveload_v7.cpp b/engines/gob/save/saveload_v7.cpp
index e66f7a4e53..e9964a6b1e 100644
--- a/engines/gob/save/saveload_v7.cpp
+++ b/engines/gob/save/saveload_v7.cpp
@@ -31,6 +31,7 @@
namespace Gob {
SaveLoad_v7::SaveFile SaveLoad_v7::_saveFiles[] = {
+ // Addy Junior Base
{"visage01.inf", kSaveModeSave, 0, "face" }, // Child 01
{"visage02.inf", kSaveModeSave, 0, "face" }, // Child 02
{"visage03.inf", kSaveModeSave, 0, "face" }, // Child 03
@@ -49,7 +50,18 @@ SaveLoad_v7::SaveFile SaveLoad_v7::_saveFiles[] = {
{"visage16.inf", kSaveModeSave, 0, "face" }, // Child 16
{ "enfant.inf", kSaveModeSave, 0, "children" },
{ "debil.tmp", kSaveModeSave, 0, 0 },
- { "config.inf", kSaveModeSave, 0, "configuration"}
+ { "config.inf", kSaveModeSave, 0, "configuration"},
+ // Addy 4 Grundschule
+ { "premier.dep", kSaveModeSave, 0, 0 },
+ { "quitter.dep", kSaveModeSave, 0, 0 },
+ { "appel.dep", kSaveModeSave, 0, 0 },
+ { "parole.dep", kSaveModeSave, 0, 0 },
+ { "ado4.inf", kSaveModeSave, 0, 0 },
+ {"mcurrent.inf", kSaveModeSave, 0, 0 },
+ { "perso.dep", kSaveModeSave, 0, 0 },
+ { "nouveau.dep", kSaveModeSave, 0, 0 },
+ { "adi.tmp", kSaveModeSave, 0, 0 },
+ { "adi.inf", kSaveModeSave, 0, 0 }
};
@@ -62,9 +74,15 @@ SaveLoad_v7::SaveLoad_v7(GobEngine *vm, const char *targetName) :
_saveFiles[16].handler = _childrenHandler = new FakeFileHandler(_vm);
_saveFiles[17].handler = _debilHandler = new FakeFileHandler(_vm);
_saveFiles[18].handler = _configHandler = new FakeFileHandler(_vm);
+
+ for (int i = 0; i < 10; i++)
+ _saveFiles[19 + i].handler = _addy4GrundschuleHandler[i] = new FakeFileHandler(_vm);
}
SaveLoad_v7::~SaveLoad_v7() {
+ for (int i = 0; i < 10; i++)
+ delete _addy4GrundschuleHandler[i];
+
delete _configHandler;
delete _debilHandler;
delete _childrenHandler;