aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/resource.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2009-03-08 15:39:19 +0000
committerFilippos Karapetis2009-03-08 15:39:19 +0000
commit9d7111006dcdbbe0465b95d5c5adb2c5affe790c (patch)
tree7eea3dfdc642ab314831794c3eee635ae11a0259 /engines/saga/resource.cpp
parent468f9c43b7e0fee68edc796213639648877a738f (diff)
downloadscummvm-rg350-9d7111006dcdbbe0465b95d5c5adb2c5affe790c.tar.gz
scummvm-rg350-9d7111006dcdbbe0465b95d5c5adb2c5affe790c.tar.bz2
scummvm-rg350-9d7111006dcdbbe0465b95d5c5adb2c5affe790c.zip
- Reworked the different file types a bit
- Some initial work on Dinotopia's intro sequence svn-id: r39234
Diffstat (limited to 'engines/saga/resource.cpp')
-rw-r--r--engines/saga/resource.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/engines/saga/resource.cpp b/engines/saga/resource.cpp
index 981238d3a3..6ab4fc878e 100644
--- a/engines/saga/resource.cpp
+++ b/engines/saga/resource.cpp
@@ -251,6 +251,10 @@ bool Resource::createContexts() {
SoundFileInfo sfxFilesFTA2[] = {
{ "ftasound.hrs", false }
};
+
+ SoundFileInfo sfxFilesDino[] = {
+ { "dinosnd.hrs", false },
+ };
#endif
if (!soundFileInArray) {
@@ -270,9 +274,8 @@ bool Resource::createContexts() {
#endif
#ifdef ENABLE_SAGA2
case GID_DINO:
- // TODO
- curSoundfiles = NULL;
- maxFile = 0;
+ curSoundfiles = sfxFilesDino;
+ maxFile = 1;
break;
case GID_FTA2:
curSoundfiles = sfxFilesFTA2;
@@ -343,11 +346,13 @@ bool Resource::createContexts() {
break;
#endif
#ifdef ENABLE_SAGA2
+ /*
case GID_DINO:
// TODO
curSoundfiles = NULL;
maxFile = 0;
break;
+ */
case GID_FTA2:
curSoundfiles = voiceFilesFTA2;
maxFile = 1;
@@ -447,7 +452,7 @@ bool Resource::createContexts() {
// For ITE, add the digital music file and sfx file information here
if (_vm->getGameId() == GID_ITE && digitalMusic && i == _contextsCount - 1) {
context->fileName = musicFileName;
- context->fileType = GAME_MUSICFILE;
+ context->fileType = GAME_DIGITALMUSICFILE;
context->isCompressed = compressedMusic;
} else if (!soundFileInArray && i == soundFileIndex) {
context->fileName = soundFileName;