diff options
author | Max Horn | 2005-04-03 23:53:34 +0000 |
---|---|---|
committer | Max Horn | 2005-04-03 23:53:34 +0000 |
commit | 789cad236c66cc0fc86b43c49a21894b5f1e5592 (patch) | |
tree | 4d3700a8c1a66aa60b24f35cd4e1527c938fd69b /scumm/resource_v7he.cpp | |
parent | 398aa1a8b122bf020d158988a7576a6236e2c1a1 (diff) | |
download | scummvm-rg350-789cad236c66cc0fc86b43c49a21894b5f1e5592.tar.gz scummvm-rg350-789cad236c66cc0fc86b43c49a21894b5f1e5592.tar.bz2 scummvm-rg350-789cad236c66cc0fc86b43c49a21894b5f1e5592.zip |
Splitting more methods into multiple overloaded versions
svn-id: r17366
Diffstat (limited to 'scumm/resource_v7he.cpp')
-rw-r--r-- | scumm/resource_v7he.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/scumm/resource_v7he.cpp b/scumm/resource_v7he.cpp index 7efcd1777f..976c741342 100644 --- a/scumm/resource_v7he.cpp +++ b/scumm/resource_v7he.cpp @@ -1640,4 +1640,22 @@ void ScummEngine_v70he::readRoomsOffsets() { } } +void ScummEngine_v70he::readGlobalObjects() { + int i; + int num = _fileHandle->readUint16LE(); + assert(num == _numGlobalObjects); + + _fileHandle->read(_objectStateTable, num); + _fileHandle->read(_objectOwnerTable, num); + _fileHandle->read(_objectRoomTable, num); + + _fileHandle->read(_classData, num * sizeof(uint32)); + +#if defined(SCUMM_BIG_ENDIAN) + // Correct the endianess if necessary + for (i = 0; i != num; i++) + _classData[i] = FROM_LE_32(_classData[i]); +#endif +} + } // End of namespace Scumm |