aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/resource_v2.cpp
diff options
context:
space:
mode:
authorMax Horn2006-02-20 16:51:30 +0000
committerMax Horn2006-02-20 16:51:30 +0000
commite389bcf497391cf4cde7d7b7a6f4023877205735 (patch)
treeb8314b1ad8bc19117c37df4d4ce27d9cce92a442 /engines/scumm/resource_v2.cpp
parenta6e5f6fd2cdb574e09fb3bd120b1e8efa034f0cb (diff)
downloadscummvm-rg350-e389bcf497391cf4cde7d7b7a6f4023877205735.tar.gz
scummvm-rg350-e389bcf497391cf4cde7d7b7a6f4023877205735.tar.bz2
scummvm-rg350-e389bcf497391cf4cde7d7b7a6f4023877205735.zip
Replaced _gameId, _version, _heversion, _features, _midi, _platform with a simple ScummGameSettings instance: _game
svn-id: r20795
Diffstat (limited to 'engines/scumm/resource_v2.cpp')
-rw-r--r--engines/scumm/resource_v2.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/scumm/resource_v2.cpp b/engines/scumm/resource_v2.cpp
index 26e96ec9ef..7d951d2408 100644
--- a/engines/scumm/resource_v2.cpp
+++ b/engines/scumm/resource_v2.cpp
@@ -32,14 +32,14 @@ namespace Scumm {
void ScummEngine_v2::readClassicIndexFile() {
int i;
- if (_gameId == GID_MANIAC) {
- if (_platform == Common::kPlatformC64) {
+ if (_game.id == GID_MANIAC) {
+ if (_game.platform == Common::kPlatformC64) {
_numGlobalObjects = 256;
_numRooms = 55;
_numCostumes = 25;
_numScripts = 160;
_numSounds = 70;
- } else if (_platform == Common::kPlatformNES) {
+ } else if (_game.platform == Common::kPlatformNES) {
_numGlobalObjects = 775;
_numRooms = 55;
@@ -58,8 +58,8 @@ void ScummEngine_v2::readClassicIndexFile() {
_numScripts = 200;
_numSounds = 100;
}
- } else if (_gameId == GID_ZAK) {
- if (_platform == Common::kPlatformC64) {
+ } else if (_game.id == GID_ZAK) {
+ if (_game.platform == Common::kPlatformC64) {
_numGlobalObjects = 775;
_numRooms = 59;
_numCostumes = 38;
@@ -178,19 +178,19 @@ void ScummEngine_v2::readIndexFile() {
break;
case 0x0A31:
printf("Classic V1 game detected\n");
- _version = 1;
+ _game.version = 1;
readClassicIndexFile();
break;
case 0x4643:
- if (!(_platform == Common::kPlatformNES))
+ if (!(_game.platform == Common::kPlatformNES))
error("Use maniac target");
printf("NES V1 game detected\n");
- _version = 1;
+ _game.version = 1;
readClassicIndexFile();
break;
case 0x132:
printf("C64 V1 game detected\n");
- _version = 1;
+ _game.version = 1;
readClassicIndexFile();
break;
default: