aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/vqa_player.h
diff options
context:
space:
mode:
authorPeter Kohaut2018-11-21 23:16:15 +0100
committerPeter Kohaut2018-11-24 08:39:03 +0100
commit824ecc0aad325c54f34c8fb7f64cf4df71c53090 (patch)
tree109abb14609bacaac2c0b1b2ed42e67a8cd2c5ec /engines/bladerunner/vqa_player.h
parent44b68a0aeb92d6dc6b6d1b3260ec5f82c529b9f0 (diff)
downloadscummvm-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/vqa_player.h')
-rw-r--r--engines/bladerunner/vqa_player.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/bladerunner/vqa_player.h b/engines/bladerunner/vqa_player.h
index b2c6ff2d4d..c4dd182697 100644
--- a/engines/bladerunner/vqa_player.h
+++ b/engines/bladerunner/vqa_player.h
@@ -49,6 +49,7 @@ class VQAPlayer {
friend class Debugger;
BladeRunnerEngine *_vm;
+ Common::String _name;
Common::SeekableReadStream *_s;
VQADecoder _decoder;
Audio::QueuingAudioStream *_audioStream;
@@ -77,8 +78,9 @@ class VQAPlayer {
public:
- VQAPlayer(BladeRunnerEngine *vm, Graphics::Surface *surface)
+ VQAPlayer(BladeRunnerEngine *vm, Graphics::Surface *surface, const Common::String &name)
: _vm(vm),
+ _name(name),
_s(nullptr),
_surface(surface),
_decoder(),
@@ -103,7 +105,7 @@ public:
close();
}
- bool open(const Common::String &name);
+ bool open();
void close();
int update(bool forceDraw = false, bool advanceFrame = true, Graphics::Surface *customSurface = nullptr);