diff options
author | upthorn | 2012-05-29 12:49:03 -0700 |
---|---|---|
committer | angstsmurf | 2016-10-18 02:09:59 +0200 |
commit | 027bab88fba3187c2fcf2211d0aba5f6cec09a6c (patch) | |
tree | de4a985fc4f72943582c02719bf28729806720c0 /engines/composer/resource.h | |
parent | 1f1928c9ac41705dcd82416a62d9efde370d8d8a (diff) | |
download | scummvm-rg350-027bab88fba3187c2fcf2211d0aba5f6cec09a6c.tar.gz scummvm-rg350-027bab88fba3187c2fcf2211d0aba5f6cec09a6c.tar.bz2 scummvm-rg350-027bab88fba3187c2fcf2211d0aba5f6cec09a6c.zip |
COMPOSER: Added support for saving/loading in V1 games.
Diffstat (limited to 'engines/composer/resource.h')
-rw-r--r-- | engines/composer/resource.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/engines/composer/resource.h b/engines/composer/resource.h index 6383a2fd78..9e297e132a 100644 --- a/engines/composer/resource.h +++ b/engines/composer/resource.h @@ -118,10 +118,10 @@ public: virtual const Common::Array<uint16> *getScripts() { return NULL; } #ifdef SAVING_ANYWHERE uint16 getPipeId() const { return _pipeId; } - uint32 getOffset() const { return _offset; } - void setOffset(uint32 offset) { while (_offset < offset) nextFrame(); } + virtual uint32 getOffset() const { return _offset; } + virtual void setOffset(uint32 offset) { while (_offset < offset) nextFrame(); } typedef Common::HashMap<uint32, Common::List<uint16> > DelMap; - Common::Array<DelMap> _bufferedResources; + DelMap _bufferedResources; #endif protected: @@ -132,7 +132,6 @@ protected: TypeMap _types; #ifdef SAVING_ANYWHERE uint16 _pipeId; - DelMap _currBufferedResources; #endif uint32 _offset; @@ -144,6 +143,10 @@ public: void nextFrame(); const Common::Array<uint16> *getScripts() { return &_scripts; } +#ifdef SAVING_ANYWHERE + uint32 getOffset() const { return _currFrame; } + void setOffset(uint32 offset) { while (_currFrame < offset) nextFrame(); } +#endif protected: uint32 _currFrame, _numFrames; |