From 1cee8439e70e26427ac5ff04f559016db99bf66b Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 22 Jan 2014 00:30:28 +0100 Subject: 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. --- engines/agos/res_snd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/agos/res_snd.cpp') 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); -- cgit v1.2.3