GOB: save breakout game progress in Adibou2

This commit is contained in:
Simon Delamarre 2022-10-29 00:43:39 +02:00 committed by Eugene Sandulenko
parent a31b588ad0
commit 962e9f9386
No known key found for this signature in database
GPG Key ID: 014D387312D34F08
2 changed files with 27 additions and 0 deletions

View File

@ -964,6 +964,7 @@ protected:
GameFileHandler *_configHandler;
GameFileHandler *_adibou2EnvHandler[kChildrenCount];
SpriteHandler *_adibou2WeatherHandler[kChildrenCount];
GameFileHandler *_adibou2BreakoutGameProgressHandler[kChildrenCount];
GameFileHandler *_adibou2AppProgressHandler[kChildrenCount][kAdibou2NbrOfApplications];
GameFileHandler *_adibou2MemoHandler[kChildrenCount];
GameFileHandler *_adibou2DiploHandler[kChildrenCount];

View File

@ -83,6 +83,24 @@ SaveLoad_v7::SaveFile SaveLoad_v7::_saveFiles[] = {
{"temp15.csa" , kSaveModeSave, 0, "weather" },
{"temp16.csa" , kSaveModeSave, 0, "weather" },
// Adibou brekout game progress
{"brique01.inf" , kSaveModeSave, 0, "breakout game progress" },
{"brique02.inf" , kSaveModeSave, 0, "breakout game progress" },
{"brique03.inf" , kSaveModeSave, 0, "breakout game progress" },
{"brique04.inf" , kSaveModeSave, 0, "breakout game progress" },
{"brique05.inf" , kSaveModeSave, 0, "breakout game progress" },
{"brique06.inf" , kSaveModeSave, 0, "breakout game progress" },
{"brique07.inf" , kSaveModeSave, 0, "breakout game progress" },
{"brique08.inf" , kSaveModeSave, 0, "breakout game progress" },
{"brique09.inf" , kSaveModeSave, 0, "breakout game progress" },
{"brique10.inf" , kSaveModeSave, 0, "breakout game progress" },
{"brique11.inf" , kSaveModeSave, 0, "breakout game progress" },
{"brique12.inf" , kSaveModeSave, 0, "breakout game progress" },
{"brique13.inf" , kSaveModeSave, 0, "breakout game progress" },
{"brique14.inf" , kSaveModeSave, 0, "breakout game progress" },
{"brique15.inf" , kSaveModeSave, 0, "breakout game progress" },
{"brique16.inf" , kSaveModeSave, 0, "breakout game progress" },
// Adibou Applications 1-5
{"Gsa01_01.inf", kSaveModeSave, 0, "app progress" }, // Child 01
{"Gsa02_01.inf", kSaveModeSave, 0, "app progress" },
@ -1066,6 +1084,13 @@ SaveLoad_v7::SaveLoad_v7(GobEngine *vm, const char *targetName) :
Common::String::format("weather_%02d", i + 1));
}
for (uint32 i = 0; i < kChildrenCount; i++)
{
_saveFiles[index++].handler = _adibou2BreakoutGameProgressHandler[i] = new GameFileHandler(_vm,
targetName,
Common::String::format("breakout_%02d", i + 1));
}
for (uint32 i = 0; i < kChildrenCount; i++)
{
for (uint32 j = 0; j < kAdibou2NbrOfApplications; j++)
@ -1160,6 +1185,7 @@ SaveLoad_v7::~SaveLoad_v7() {
{
delete _adibou2EnvHandler[i];
delete _adibou2WeatherHandler[i];
delete _adibou2BreakoutGameProgressHandler[i];
for (uint32 j = 0; j < kAdibou2NbrOfApplications; j++)
delete _adibou2AppProgressHandler[i][j];