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/items.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/items.cpp')
-rw-r--r-- | engines/bladerunner/items.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/bladerunner/items.cpp b/engines/bladerunner/items.cpp index a2cb9da194..32594515e6 100644 --- a/engines/bladerunner/items.cpp +++ b/engines/bladerunner/items.cpp @@ -35,6 +35,10 @@ Items::Items(BladeRunnerEngine *vm) { } Items::~Items() { + reset(); +} + +void Items::reset() { for (int i = _items.size() - 1; i >= 0; i--) { delete _items.remove_at(i); } |