aboutsummaryrefslogtreecommitdiff
path: root/engines/saga
diff options
context:
space:
mode:
authorEugene Sandulenko2008-04-05 07:43:54 +0000
committerEugene Sandulenko2008-04-05 07:43:54 +0000
commit7a0c61c44094059eff4e88e9ad6b88a83c4d3dae (patch)
tree5f634a472d7712fc35d46062f0d337a7e427d72b /engines/saga
parentc676cf560f664d68adc337da579d788cea2606b1 (diff)
downloadscummvm-rg350-7a0c61c44094059eff4e88e9ad6b88a83c4d3dae.tar.gz
scummvm-rg350-7a0c61c44094059eff4e88e9ad6b88a83c4d3dae.tar.bz2
scummvm-rg350-7a0c61c44094059eff4e88e9ad6b88a83c4d3dae.zip
Added detection for IHNM Mac. Gampe plays, but sound and music is a big TODO
svn-id: r31403
Diffstat (limited to 'engines/saga')
-rw-r--r--engines/saga/detection_tables.h28
-rw-r--r--engines/saga/music.cpp4
-rw-r--r--engines/saga/saga.h3
3 files changed, 34 insertions, 1 deletions
diff --git a/engines/saga/detection_tables.h b/engines/saga/detection_tables.h
index 7a987b6057..3ab9a052ae 100644
--- a/engines/saga/detection_tables.h
+++ b/engines/saga/detection_tables.h
@@ -869,6 +869,34 @@ static const SAGAGameDescription gameDescriptions[] = {
0,
NULL,
},
+ // I Have No Mouth And I Must Scream - Mac English CD
+ {
+ {
+ "ihnm",
+ "",
+ {
+ {"scream.res", GAME_RESOURCEFILE, "46bbdc65d164ba7e89836a0935eec8e6", 79211140},
+ {"patch.res", GAME_PATCHFILE | GAME_RESOURCEFILE, "58b79e61594779513c7f2d35509fa89e", 5038599},
+ {"scripts.res", GAME_SCRIPTFILE, "be38bbc5a26be809dbf39f13befebd01", 493597},
+ {"sfx.res", GAME_SOUNDFILE, "0c24f75c30c3c4cffc7bf0e6d997898b", 3082},
+ { NULL, 0, NULL, 0}
+ },
+ Common::EN_ANY,
+ Common::kPlatformMacintosh,
+ Common::ADGF_NO_FLAGS
+ },
+ GType_IHNM,
+ GID_IHNM_CD_MAC,
+ 0, // GF_BIG_ENDIAN_DATA
+ IHNM_DEFAULT_SCENE,
+ &IHNM_Resources,
+ ARRAYSIZE(IHNMCD_GameFonts),
+ IHNMCD_GameFonts,
+ &IHNM_GameSound,
+ &IHNM_GameSound,
+ 0,
+ NULL,
+ },
{ AD_TABLE_END_MARKER, 0, 0, 0, 0, NULL, 0, NULL, NULL, NULL, 0, NULL }
};
diff --git a/engines/saga/music.cpp b/engines/saga/music.cpp
index 8e9008896b..237525dc44 100644
--- a/engines/saga/music.cpp
+++ b/engines/saga/music.cpp
@@ -433,6 +433,10 @@ void Music::play(uint32 resourceId, MusicFlags flags) {
return;
}
+ if (_vm->getGameType() == GType_IHNM && _vm->isMacResources()) {
+ return;
+ }
+
if (isPlaying() && _trackNumber == resourceId) {
return;
}
diff --git a/engines/saga/saga.h b/engines/saga/saga.h
index 85b1111503..0a2d345651 100644
--- a/engines/saga/saga.h
+++ b/engines/saga/saga.h
@@ -135,7 +135,8 @@ enum GameIds {
GID_IHNM_CD_ES,
GID_IHNM_CD_RU,
GID_IHNM_CD_FR,
- GID_IHNM_CD_ITA
+ GID_IHNM_CD_ITA,
+ GID_IHNM_CD_MAC
};
enum GameFileTypes {