aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Snover2017-09-19 11:13:34 -0500
committerColin Snover2017-09-19 20:00:28 -0500
commit9fc24ed0b068723d7ce41868f075e481154197c4 (patch)
treedd13dd5db0f6346b26b9ec3a9470930d66a2111c
parent52d9d049195d99ffe6215716915fc0769a3bc3c7 (diff)
downloadscummvm-rg350-9fc24ed0b068723d7ce41868f075e481154197c4.tar.gz
scummvm-rg350-9fc24ed0b068723d7ce41868f075e481154197c4.tar.bz2
scummvm-rg350-9fc24ed0b068723d7ce41868f075e481154197c4.zip
SCI32: Support RAMA's single sound effects volume
The original installer copied RESOURCE.SFX to the hard drive so there was only one RESOURCE.SFX on CD 1. Instead of requiring users to create duplicates, just use the single RESOURCE.SFX if it exists.
-rw-r--r--engines/sci/resource.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp
index b73b14b125..8d2723153d 100644
--- a/engines/sci/resource.cpp
+++ b/engines/sci/resource.cpp
@@ -1926,7 +1926,11 @@ int ResourceManager::readResourceMapSCI1(ResourceSource *map) {
volumeName = "RESAUD.001";
}
} else if (resId.getNumber() == 65535) {
- volumeName = Common::String::format("RESSFX.%03d", mapVolumeNr);
+ if (g_sci->getGameId() == GID_RAMA && Common::File::exists("RESOURCE.SFX")) {
+ volumeName = "RESOURCE.SFX";
+ } else {
+ volumeName = Common::String::format("RESSFX.%03d", mapVolumeNr);
+ }
} else {
volumeName = Common::String::format("RESAUD.%03d", mapVolumeNr);
}