aboutsummaryrefslogtreecommitdiff
path: root/scumm/resource_v2.cpp
diff options
context:
space:
mode:
authorMax Horn2005-04-03 23:53:34 +0000
committerMax Horn2005-04-03 23:53:34 +0000
commit789cad236c66cc0fc86b43c49a21894b5f1e5592 (patch)
tree4d3700a8c1a66aa60b24f35cd4e1527c938fd69b /scumm/resource_v2.cpp
parent398aa1a8b122bf020d158988a7576a6236e2c1a1 (diff)
downloadscummvm-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_v2.cpp')
-rw-r--r--scumm/resource_v2.cpp25
1 files changed, 2 insertions, 23 deletions
diff --git a/scumm/resource_v2.cpp b/scumm/resource_v2.cpp
index 0147d33ee3..b2c512224d 100644
--- a/scumm/resource_v2.cpp
+++ b/scumm/resource_v2.cpp
@@ -64,7 +64,7 @@ void ScummEngine_v2::readClassicIndexFile() {
_fileHandle->seek(0, SEEK_SET);
- readMAXS();
+ readMAXS(0);
// Jamieson630: palManipulate variable initialization
_palManipCounter = 0;
@@ -134,7 +134,7 @@ void ScummEngine_v2::readEnhancedIndexFile() {
_fileHandle->clearIOFailed();
_fileHandle->seek(0, SEEK_SET);
- readMAXS();
+ readMAXS(0);
// Jamieson630: palManipulate variable initialization
_palManipCounter = 0;
@@ -189,27 +189,6 @@ void ScummEngine_v2::readIndexFile() {
closeRoom();
}
-void ScummEngine_v2::readMAXS() {
- // FIXME - I'm not sure for those values yet, they will have to be rechecked
-
- _numVariables = 800; // 800
- _numBitVariables = 4096; // 2048
- _numLocalObjects = 200; // 200
- _numArray = 50;
- _numVerbs = 100;
- _numNewNames = 50;
- _objectRoomTable = NULL;
- _numCharsets = 9; // 9
- _numInventory = 80; // 80
- _numGlobalScripts = 200;
- _numFlObject = 50;
-
- _shadowPaletteSize = 256;
-
- _shadowPalette = (byte *) calloc(_shadowPaletteSize, 1); // FIXME - needs to be removed later
- allocateArrays();
-}
-
void ScummEngine_v2::loadCharset(int num) {
// Stub, V2 font resources are hardcoded into the engine.
}