aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/res_snd.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2014-01-22 00:30:28 +0100
committerJohannes Schickel2014-01-22 00:30:28 +0100
commit1cee8439e70e26427ac5ff04f559016db99bf66b (patch)
tree68e864eb34ab2ee3d7e5fe4f97074a36543850da /engines/agos/res_snd.cpp
parente560dca6b1953d7266cad6cc6316fcd9e7303933 (diff)
downloadscummvm-rg350-1cee8439e70e26427ac5ff04f559016db99bf66b.tar.gz
scummvm-rg350-1cee8439e70e26427ac5ff04f559016db99bf66b.tar.bz2
scummvm-rg350-1cee8439e70e26427ac5ff04f559016db99bf66b.zip
AGOS: Get rid of ArchiveMan in favor of global SearchMan.
This in fact slightly changes the priority order of added archives. Formerly, all archives in SearchMan were preferred to the customly added ones in ArchiveMan. All standard paths (i.e. path and extrapath) will be still be searched before the custom ones (which are all priority 0 right now) but system specific paths will be searched after (due to their priority being -1). Since system specific paths shouldn't contain any game data files this should hopefully be harmless. This wasn't tested for games with CAB archives.
Diffstat (limited to 'engines/agos/res_snd.cpp')
-rw-r--r--engines/agos/res_snd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agos/res_snd.cpp b/engines/agos/res_snd.cpp
index 2777d4f269..c56eb53a01 100644
--- a/engines/agos/res_snd.cpp
+++ b/engines/agos/res_snd.cpp
@@ -452,7 +452,7 @@ static const char *const dimpSoundList[32] = {
void AGOSEngine::loadSoundFile(const char* filename) {
Common::SeekableReadStream *in;
- in = _archives.createReadStreamForMember(filename);
+ in = SearchMan.createReadStreamForMember(filename);
if (!in)
error("loadSound: Can't load %s", filename);
@@ -475,7 +475,7 @@ void AGOSEngine::loadSound(uint16 sound, int16 pan, int16 vol, uint16 type) {
assert(sound >= 1 && sound <= 32);
sprintf(filename, "%s.wav", dimpSoundList[sound - 1]);
- in = _archives.createReadStreamForMember(filename);
+ in = SearchMan.createReadStreamForMember(filename);
if (!in)
error("loadSound: Can't load %s", filename);