diff options
author | Eugene Sandulenko | 2008-06-07 21:02:03 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2008-06-07 21:02:03 +0000 |
commit | 8a0566de14eddca31d67704a1a2d31831bc08ff2 (patch) | |
tree | f8d1aa1c5a0c5ce6a71f23f8b496b107eb159b49 /engines/drascula | |
parent | 09597d028c827654ab805544bb505c69302dd93a (diff) | |
download | scummvm-rg350-8a0566de14eddca31d67704a1a2d31831bc08ff2.tar.gz scummvm-rg350-8a0566de14eddca31d67704a1a2d31831bc08ff2.tar.bz2 scummvm-rg350-8a0566de14eddca31d67704a1a2d31831bc08ff2.zip |
Add stubs for .dat file loading
svn-id: r32605
Diffstat (limited to 'engines/drascula')
-rw-r--r-- | engines/drascula/drascula.cpp | 83 | ||||
-rw-r--r-- | engines/drascula/drascula.h | 13 |
2 files changed, 96 insertions, 0 deletions
diff --git a/engines/drascula/drascula.cpp b/engines/drascula/drascula.cpp index e795dee46d..93e46d4ea3 100644 --- a/engines/drascula/drascula.cpp +++ b/engines/drascula/drascula.cpp @@ -769,6 +769,89 @@ bool DrasculaEngine::loadDrasculaDat() { _charMap[i].charType = in.readByte(); } + _itemLocationsSize = in.readUint16BE(); + for (int i = 0; i < _itemLocationsSize; i++) { + in.readUint16BE(); + in.readUint16BE(); + } + + _xPolSize = in.readUint16BE(); + for (int i = 0; i < _xPolSize; i++) { + in.readUint16BE(); + in.readUint16BE(); + } + + _verbBarXSize = in.readUint16BE(); + for (int i = 0; i < _verbBarXSize; i++) { + in.readUint16BE(); + } + + _x1dMenuSize = in.readUint16BE(); + for (int i = 0; i < _x1dMenuSize; i++) { + in.readUint16BE(); + in.readUint16BE(); + } + + _frameXSize = in.readUint16BE(); + for (int i = 0; i < _frameXSize; i++) { + in.readUint16BE(); + } + + _candleXSize = in.readUint16BE(); + for (int i = 0; i < _candleXSize; i++) { + in.readUint16BE(); + in.readUint16BE(); + } + + _pianistXSize = in.readUint16BE(); + for (int i = 0; i < _pianistXSize; i++) { + in.readUint16BE(); + } + + _drunkXSize = in.readUint16BE(); + for (int i = 0; i < _drunkXSize; i++) { + in.readUint16BE(); + } + + _roomPreUpdatesSize = in.readUint16BE(); + for (int i = 0; i < _roomPreUpdatesSize; i++) { + in.readUint16BE(); + in.readUint16BE(); + in.readUint16BE(); + in.readUint16BE(); + in.readUint16BE(); + in.readUint16BE(); + in.readUint16BE(); + in.readUint16BE(); + in.readUint16BE(); + in.readUint16BE(); + } + + _roomUpdatesSize = in.readUint16BE(); + for (int i = 0; i < _roomUpdatesSize; i++) { + in.readUint16BE(); + in.readUint16BE(); + in.readUint16BE(); + in.readUint16BE(); + in.readUint16BE(); + in.readUint16BE(); + in.readUint16BE(); + in.readUint16BE(); + in.readUint16BE(); + in.readUint16BE(); + } + + _roomActionsSize = in.readUint16BE(); + for (int i = 0; i < _roomActionsSize; i++) { + in.readUint16BE(); + in.readUint16BE(); + in.readUint16BE(); + in.readUint16BE(); + in.readUint16BE(); + } + + _numLangs = in.readUint16BE(); + return true; } diff --git a/engines/drascula/drascula.h b/engines/drascula/drascula.h index a5c1d4262f..d3b0405ada 100644 --- a/engines/drascula/drascula.h +++ b/engines/drascula/drascula.h @@ -678,6 +678,19 @@ private: CharInfo *_charMap; int _charMapSize; + + int _itemLocationsSize; + int _xPolSize; + int _verbBarXSize; + int _x1dMenuSize; + int _frameXSize; + int _candleXSize; + int _pianistXSize; + int _drunkXSize; + int _roomPreUpdatesSize; + int _roomUpdatesSize; + int _roomActionsSize; + int _numLangs; }; extern const char *_text[][501]; |