mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-24 02:36:27 +00:00
The SFX resource for the IHNM demo is different
svn-id: r28138
This commit is contained in:
parent
af4d04100e
commit
32c87556de
@ -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
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user