diff options
author | Benjamin Haisch | 2008-04-23 08:08:37 +0000 |
---|---|---|
committer | Benjamin Haisch | 2008-04-23 08:08:37 +0000 |
commit | 6069dba988e9940b4d5285d6abc01b83967f8702 (patch) | |
tree | 3e70fa2ecffca571d1dde627a5f052653a44ae57 /engines/made/database.h | |
parent | 18ed600abea41fee47f92fa798f6fe49c5c37d25 (diff) | |
download | scummvm-rg350-6069dba988e9940b4d5285d6abc01b83967f8702.tar.gz scummvm-rg350-6069dba988e9940b4d5285d6abc01b83967f8702.tar.bz2 scummvm-rg350-6069dba988e9940b4d5285d6abc01b83967f8702.zip |
Implemented direct loading of rtzcd.dat from the archive rtzcd.red, i.e. the game doesn't have to be installed first to get rtzcd.dat. Also added the respective detection entry.
svn-id: r31661
Diffstat (limited to 'engines/made/database.h')
-rw-r--r-- | engines/made/database.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/made/database.h b/engines/made/database.h index e96be5e24c..5e88b0919f 100644 --- a/engines/made/database.h +++ b/engines/made/database.h @@ -31,6 +31,8 @@ #include "common/file.h" #include "common/stream.h" +#include "made/redreader.h" + namespace Made { class Object { @@ -49,6 +51,7 @@ public: byte *getData(); const char *getString(); + void setString(const char *str); bool isObject(); bool isVector(); @@ -73,6 +76,7 @@ public: ~GameDatabase(); void open(const char *filename); + void openFromRed(const char *redFilename, const char *filename); Object *getObject(int16 index) const { if (index >= 1) @@ -93,11 +97,11 @@ public: void dumpObject(int16 index); protected: - Common::File _fd; Common::Array<Object*> _objects; byte *_gameState; uint32 _gameStateSize; int16 _mainCodeObjectIndex; + void load(Common::SeekableReadStream &sourceS); }; } // End of namespace Made |