diff options
author | Eugene Sandulenko | 2006-12-19 03:52:04 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-12-19 03:52:04 +0000 |
commit | 18ce3810609ada7d1aded6a6ba551991bc556ba6 (patch) | |
tree | 47c8aebeed680ff2a1c29f9bc66369d4ce2c9adb /engines | |
parent | bdf98587c8b6a6ee773680cecb8a63219dcea7c6 (diff) | |
download | scummvm-rg350-18ce3810609ada7d1aded6a6ba551991bc556ba6.tar.gz scummvm-rg350-18ce3810609ada7d1aded6a6ba551991bc556ba6.tar.bz2 scummvm-rg350-18ce3810609ada7d1aded6a6ba551991bc556ba6.zip |
Got rid of ARRAYSIZE in advanceDetector calls
svn-id: r24881
Diffstat (limited to 'engines')
-rw-r--r-- | engines/agi/detection.cpp | 4 | ||||
-rw-r--r-- | engines/agos/agosgame.cpp | 1 | ||||
-rw-r--r-- | engines/agos/game.cpp | 2 | ||||
-rw-r--r-- | engines/cine/detection.cpp | 3 | ||||
-rw-r--r-- | engines/kyra/plugin.cpp | 5 | ||||
-rw-r--r-- | engines/saga/game.cpp | 2 | ||||
-rw-r--r-- | engines/saga/sagagame.cpp | 1 |
7 files changed, 7 insertions, 11 deletions
diff --git a/engines/agi/detection.cpp b/engines/agi/detection.cpp index 537158a2be..f4be487aec 100644 --- a/engines/agi/detection.cpp +++ b/engines/agi/detection.cpp @@ -174,14 +174,13 @@ static const AGIGameDescription gameDescriptions[] = { 0x2440, }, - + { { NULL, NULL, 0, NULL, Common::UNK_LANG, Common::kPlatformUnknown }, 0, 0, 0 } }; bool AgiEngine::initGame() { int i = Common::real_ADVANCED_DETECTOR_DETECT_INIT_GAME( (const byte *)gameDescriptions, sizeof(AGIGameDescription), - ARRAYSIZE(gameDescriptions), FILE_MD5_BYTES, agiGames ); @@ -194,7 +193,6 @@ DetectedGameList GAME_detectGames(const FSList &fslist) { fslist, (const byte *)gameDescriptions, sizeof(AGIGameDescription), - ARRAYSIZE(gameDescriptions), FILE_MD5_BYTES, agiGames ); diff --git a/engines/agos/agosgame.cpp b/engines/agos/agosgame.cpp index fe8fbbf594..37c2ee4de9 100644 --- a/engines/agos/agosgame.cpp +++ b/engines/agos/agosgame.cpp @@ -1850,4 +1850,5 @@ static const AGOSGameDescription gameDescriptions[] = { GID_SWAMPY, GF_OLD_BUNDLE | GF_TALKIE, }, + { { NULL, NULL, 0, NULL, Common::UNK_LANG, Common::kPlatformUnknown }, 0, 0, 0 } }; diff --git a/engines/agos/game.cpp b/engines/agos/game.cpp index d297dff825..e3ddabc227 100644 --- a/engines/agos/game.cpp +++ b/engines/agos/game.cpp @@ -86,7 +86,6 @@ bool AGOSEngine::initGame() { int i = Common::real_ADVANCED_DETECTOR_DETECT_INIT_GAME( (const byte *)gameDescriptions, sizeof(AGOSGameDescription), - ARRAYSIZE(gameDescriptions), FILE_MD5_BYTES, simonGames ); @@ -99,7 +98,6 @@ DetectedGameList GAME_detectGames(const FSList &fslist) { fslist, (const byte *)gameDescriptions, sizeof(AGOSGameDescription), - ARRAYSIZE(gameDescriptions), FILE_MD5_BYTES, simonGames ); diff --git a/engines/cine/detection.cpp b/engines/cine/detection.cpp index 828c7d3462..4cedd4841b 100644 --- a/engines/cine/detection.cpp +++ b/engines/cine/detection.cpp @@ -569,13 +569,13 @@ static const CINEGameDescription gameDescriptions[] = { 0, }, + { { NULL, NULL, 0, NULL, Common::UNK_LANG, Common::kPlatformUnknown }, 0, 0 } }; bool CineEngine::initGame() { int i = Common::real_ADVANCED_DETECTOR_DETECT_INIT_GAME( (const byte *)gameDescriptions, sizeof(CINEGameDescription), - ARRAYSIZE(gameDescriptions), FILE_MD5_BYTES, cineGames ); @@ -588,7 +588,6 @@ DetectedGameList GAME_detectGames(const FSList &fslist) { fslist, (const byte *)gameDescriptions, sizeof(CINEGameDescription), - ARRAYSIZE(gameDescriptions), FILE_MD5_BYTES, cineGames ); diff --git a/engines/kyra/plugin.cpp b/engines/kyra/plugin.cpp index 786c07dbfd..16c4f066ad 100644 --- a/engines/kyra/plugin.cpp +++ b/engines/kyra/plugin.cpp @@ -133,13 +133,14 @@ const KYRAGameDescription adGameDescs[] = { { { "The Legend of Kyrandia: The Hand of Fate", 0, ARRAYSIZE(kyra2UnknownUnknown1), kyra2UnknownUnknown1, UNK_LANG, kPlatformPC }, "kyra2", KYRA2_UNK_FLAGS }, // check this! (cd version?) - { { "The Legend of Kyrandia: Malcolm's Revenge", 0, ARRAYSIZE(kyra3CD1), kyra3CD1, UNK_LANG, kPlatformPC }, "kyra3", KYRA3_CD_FLAGS } + { { "The Legend of Kyrandia: Malcolm's Revenge", 0, ARRAYSIZE(kyra3CD1), kyra3CD1, UNK_LANG, kPlatformPC }, "kyra3", KYRA3_CD_FLAGS }, + { { NULL, NULL, 0, NULL, UNK_LANG, kPlatformUnknown }, NULL, KYRA2_UNK_FLAGS } }; ADGameDescList getADDescList() { ADGameDescList gameDesc; - for (int i = 0; i < ARRAYSIZE(adGameDescs); ++i) { + for (int i = 0; i < ARRAYSIZE(adGameDescs) - 1; ++i) { gameDesc.push_back(&adGameDescs[i].desc); } diff --git a/engines/saga/game.cpp b/engines/saga/game.cpp index cda47d956c..5e180d595f 100644 --- a/engines/saga/game.cpp +++ b/engines/saga/game.cpp @@ -75,7 +75,6 @@ bool SagaEngine::initGame() { int i = Common::real_ADVANCED_DETECTOR_DETECT_INIT_GAME( (const byte *)gameDescriptions, sizeof(SAGAGameDescription), - ARRAYSIZE(gameDescriptions), FILE_MD5_BYTES, saga_games ); @@ -88,7 +87,6 @@ DetectedGameList GAME_detectGames(const FSList &fslist) { fslist, (const byte *)gameDescriptions, sizeof(SAGAGameDescription), - ARRAYSIZE(gameDescriptions), FILE_MD5_BYTES, saga_games ); diff --git a/engines/saga/sagagame.cpp b/engines/saga/sagagame.cpp index f0b92fe552..56ad6425e4 100644 --- a/engines/saga/sagagame.cpp +++ b/engines/saga/sagagame.cpp @@ -1464,4 +1464,5 @@ static const SAGAGameDescription gameDescriptions[] = { 0, NULL, }, + { { NULL, NULL, 0, NULL, Common::UNK_LANG, Common::kPlatformUnknown }, 0, 0, 0, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, 0, NULL } }; |