diff options
author | Peter Kohaut | 2018-11-21 23:16:15 +0100 |
---|---|---|
committer | Peter Kohaut | 2018-11-24 08:39:03 +0100 |
commit | 824ecc0aad325c54f34c8fb7f64cf4df71c53090 (patch) | |
tree | 109abb14609bacaac2c0b1b2ed42e67a8cd2c5ec /engines/bladerunner/settings.cpp | |
parent | 44b68a0aeb92d6dc6b6d1b3260ec5f82c529b9f0 (diff) | |
download | scummvm-rg350-824ecc0aad325c54f34c8fb7f64cf4df71c53090.tar.gz scummvm-rg350-824ecc0aad325c54f34c8fb7f64cf4df71c53090.tar.bz2 scummvm-rg350-824ecc0aad325c54f34c8fb7f64cf4df71c53090.zip |
BLADERUNNER: Preliminary saving & loading support
Saving and loading is accessible via ScummVM dialogs.
No in-game UI support yet.
It is possible to load saves from original game via debugger console.
ScummVM saves have additional header and are incompatibile with original
game.
Diffstat (limited to 'engines/bladerunner/settings.cpp')
-rw-r--r-- | engines/bladerunner/settings.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/engines/bladerunner/settings.cpp b/engines/bladerunner/settings.cpp index 071adf6dd5..6c3e5a7e33 100644 --- a/engines/bladerunner/settings.cpp +++ b/engines/bladerunner/settings.cpp @@ -73,6 +73,13 @@ Settings::Settings(BladeRunnerEngine *vm) { _learyMode = false; } +void Settings::reset() { + _ammoType = 0; + _ammoAmounts[0] = 1; + _ammoAmounts[1] = 0; + _ammoAmounts[2] = 0; +} + bool Settings::openNewScene() { if (_newSet == -1) { assert(_newScene == -1); @@ -108,8 +115,9 @@ bool Settings::openNewScene() { return false; } _chapter = newChapter; - if (_startingGame) + if (_startingGame) { _startingGame = false; + } } if (!_vm->_scene->open(newSet, newScene, _loadingGame)) { @@ -184,6 +192,10 @@ int Settings::getDifficulty() const { return _difficulty; } +void Settings::setDifficulty(int difficulty) { + _difficulty = difficulty; +} + int Settings::getPlayerAgenda() const { return _playerAgenda; } |