diff options
author | Bendegúz Nagy | 2016-06-18 11:36:31 +0200 |
---|---|---|
committer | Bendegúz Nagy | 2016-08-26 23:02:22 +0200 |
commit | 3ff3512c64fd3e5245b45506203a8d5083598a88 (patch) | |
tree | e656f292a07ee0e150d9768ea78dc15c4650b23c /engines/dm/loadsave.cpp | |
parent | 59af06fd821911c44b44b5338db568b1ae2eff4d (diff) | |
download | scummvm-rg350-3ff3512c64fd3e5245b45506203a8d5083598a88.tar.gz scummvm-rg350-3ff3512c64fd3e5245b45506203a8d5083598a88.tar.bz2 scummvm-rg350-3ff3512c64fd3e5245b45506203a8d5083598a88.zip |
DM: Add initialization related to F0435_STARTEND_LoadGame_CPSF
Diffstat (limited to 'engines/dm/loadsave.cpp')
-rw-r--r-- | engines/dm/loadsave.cpp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/engines/dm/loadsave.cpp b/engines/dm/loadsave.cpp new file mode 100644 index 0000000000..cd522fa508 --- /dev/null +++ b/engines/dm/loadsave.cpp @@ -0,0 +1,37 @@ +#include "loadsave.h" +#include "dungeonman.h" +#include "champion.h" + + + +namespace DM { + +LoadsaveMan::LoadsaveMan(DMEngine *vm) : _vm(vm) {} + + +LoadgameResponse LoadsaveMan::loadgame() { + bool newGame = _vm->_dungeonMan->_messages.newGame; + ChampionMan &cm = *_vm->_championMan; + + if (newGame) { + _vm->_restartGameAllowed = false; + cm._partChampionCount = 0; + cm._leaderHand = Thing::thingNone; + _vm->_gameId = _vm->_rnd->getRandomNumber(65536) * _vm->_rnd->getRandomNumber(65536); + } else { + assert(false); + // MISSING CODE: load game + } + + + if (newGame) { + warning("MISSING CODE: Timline init, Group init"); + } else { + assert(false); + // MISSING CODE: load game + } + cm._partyDead = false; + return kLoadgameSuccess; +} + +}
\ No newline at end of file |