diff options
author | Benjamin Haisch | 2008-05-02 12:08:06 +0000 |
---|---|---|
committer | Benjamin Haisch | 2008-05-02 12:08:06 +0000 |
commit | d1ef9aa2131502cd4d1e9cc0e36c330fa7a259cd (patch) | |
tree | 7efea3353e34769f8e5c1a2f1dbf6f63c0fe9eaa /engines/made/database.h | |
parent | 6fb9c2b84f9fa34504eefb3cf92917b72fd483b6 (diff) | |
download | scummvm-rg350-d1ef9aa2131502cd4d1e9cc0e36c330fa7a259cd.tar.gz scummvm-rg350-d1ef9aa2131502cd4d1e9cc0e36c330fa7a259cd.tar.bz2 scummvm-rg350-d1ef9aa2131502cd4d1e9cc0e36c330fa7a259cd.zip |
- Added patch #1955698: MADE: Add "The Manhole" Detection
- Added detection for Leather Goddesses of Phobos 2
Note that these two games will definitely not work as expected and will probably crash!
svn-id: r31810
Diffstat (limited to 'engines/made/database.h')
-rw-r--r-- | engines/made/database.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/engines/made/database.h b/engines/made/database.h index c5d3916e25..adaf91f6d3 100644 --- a/engines/made/database.h +++ b/engines/made/database.h @@ -32,6 +32,7 @@ #include "common/stream.h" #include "common/str.h" +#include "made/made.h" #include "made/redreader.h" namespace Made { @@ -40,8 +41,8 @@ class Object { public: Object(); ~Object(); - void load(Common::SeekableReadStream &source); - void load(byte *source); + int load(Common::SeekableReadStream &source); + int load(byte *source); uint16 getFlags() const; uint16 getClass() const; @@ -73,7 +74,7 @@ protected: class GameDatabase { public: - GameDatabase(); + GameDatabase(MadeEngine *vm); ~GameDatabase(); void open(const char *filename); @@ -102,11 +103,14 @@ public: void dumpObject(int16 index); protected: + MadeEngine *_vm; Common::Array<Object*> _objects; byte *_gameState; uint32 _gameStateSize; int16 _mainCodeObjectIndex; void load(Common::SeekableReadStream &sourceS); + void loadVersion2(Common::SeekableReadStream &sourceS); + void loadVersion3(Common::SeekableReadStream &sourceS); }; } // End of namespace Made |