aboutsummaryrefslogtreecommitdiff
path: root/engines/saga
diff options
context:
space:
mode:
authorFilippos Karapetis2007-07-18 16:14:40 +0000
committerFilippos Karapetis2007-07-18 16:14:40 +0000
commit32c87556de72593a6d6aff021dc599cf7ff9b13d (patch)
treec49f4a34d42855501e33c81c91c0d478931b2d19 /engines/saga
parentaf4d04100e57d8a9aeb49bf88a0f902cf6e0ae87 (diff)
downloadscummvm-rg350-32c87556de72593a6d6aff021dc599cf7ff9b13d.tar.gz
scummvm-rg350-32c87556de72593a6d6aff021dc599cf7ff9b13d.tar.bz2
scummvm-rg350-32c87556de72593a6d6aff021dc599cf7ff9b13d.zip
The SFX resource for the IHNM demo is different
svn-id: r28138
Diffstat (limited to 'engines/saga')
-rw-r--r--engines/saga/sagaresnames.h1
-rw-r--r--engines/saga/sndres.cpp9
2 files changed, 8 insertions, 2 deletions
diff --git a/engines/saga/sagaresnames.h b/engines/saga/sagaresnames.h
index 94f97635c1..8a4ac5f568 100644
--- a/engines/saga/sagaresnames.h
+++ b/engines/saga/sagaresnames.h
@@ -45,6 +45,7 @@ namespace Saga {
#define RID_IHNMDEMO_SCENE_LUT 286
#define RID_IHNMDEMO_SCRIPT_LUT 18
+#define RID_IHNMDEMO_SFX_LUT 222
//obj names
#define ITE_OBJ_MAP 14
diff --git a/engines/saga/sndres.cpp b/engines/saga/sndres.cpp
index 7033aaed33..9f783bd50d 100644
--- a/engines/saga/sndres.cpp
+++ b/engines/saga/sndres.cpp
@@ -68,8 +68,13 @@ SndRes::SndRes(SagaEngine *vm) : _vm(vm) {
byte *resourcePointer;
size_t resourceLength;
- _vm->_resource->loadResource(resourceContext, RID_IHNM_SFX_LUT,
- resourcePointer, resourceLength);
+ if (_vm->getGameId() == GID_IHNM_DEMO) {
+ _vm->_resource->loadResource(resourceContext, RID_IHNMDEMO_SFX_LUT,
+ resourcePointer, resourceLength);
+ } else {
+ _vm->_resource->loadResource(resourceContext, RID_IHNM_SFX_LUT,
+ resourcePointer, resourceLength);
+ }
if (resourceLength == 0) {
error("Sndres::SndRes can't read SfxIDs table");