aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur/files.h
diff options
context:
space:
mode:
authorPaul Gilbert2013-05-25 20:51:53 -0400
committerPaul Gilbert2013-05-25 20:51:53 -0400
commite33fb4f897fae750e50502348b3e894b36b7f783 (patch)
tree90fff2833fb6a7403da35ba26d920b093eec56d4 /engines/voyeur/files.h
parenta855cf648bb0835f7fbc5f5622166697383e89ea (diff)
downloadscummvm-rg350-e33fb4f897fae750e50502348b3e894b36b7f783.tar.gz
scummvm-rg350-e33fb4f897fae750e50502348b3e894b36b7f783.tar.bz2
scummvm-rg350-e33fb4f897fae750e50502348b3e894b36b7f783.zip
VOYEUR: Fixes for decompression, and picture initialisation
Diffstat (limited to 'engines/voyeur/files.h')
-rw-r--r--engines/voyeur/files.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/engines/voyeur/files.h b/engines/voyeur/files.h
index 658f7ac405..64a164a9dc 100644
--- a/engines/voyeur/files.h
+++ b/engines/voyeur/files.h
@@ -41,6 +41,7 @@ typedef void (BoltFile::*BoltMethodPtr)();
class BoltFilesState {
public:
+ VoyeurEngine *_vm;
BoltFile *_curLibPtr;
BoltGroup *_curGroupPtr;
BoltEntry *_curMemberPtr;
@@ -63,12 +64,20 @@ public:
int _runType;
int _runValue;
int _runOffset;
- Common::File _curFd;
+ Common::File *_curFd;
+
+ byte *_boltPageFrame;
+ int _sImageShift;
+ bool _SVGAReset;
public:
BoltFilesState();
byte *decompress(byte *buf, int size, int mode);
void nextBlock();
+
+ void EMSGetFrameAddr(byte **pageFrame) {} // TODO: Maybe?
+ bool EMSAllocatePages(uint *planeSize) { return false; } // TODO: Maybe?
+ void EMSMapPageHandle(int planeSize, int idx1, int idx2) {} // TODO: Maybe?
};
class BoltFile {
@@ -77,6 +86,7 @@ private:
private:
BoltFilesState &_state;
Common::Array<BoltGroup> _groups;
+ Common::File _file;
// initType method table
void initDefault();
@@ -150,6 +160,7 @@ public:
BoltFile *_curLibPtr;
public:
FilesManager();
+ void setVm(VoyeurEngine *vm) { _boltFilesState._vm = vm; }
bool openBoltLib(const Common::String &filename, BoltFile *&boltFile);
};
@@ -164,7 +175,7 @@ class PictureResource {
int _width;
int _height;
uint32 _maskData;
- uint16 _planeSize;
+ uint _planeSize;
byte *_imgData;
public: