From 0e53c8e9f3d54347b27e4628fcc1c15331f749d4 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Thu, 15 Sep 2016 09:05:20 -0500 Subject: SCI32: Improve MGDX support Audio directory switching is temporarily disabled because it causes use-after-free in the resource manager. --- engines/sci/resource_audio.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines/sci/resource_audio.cpp') diff --git a/engines/sci/resource_audio.cpp b/engines/sci/resource_audio.cpp index cbc4a02739..4b3a13c490 100644 --- a/engines/sci/resource_audio.cpp +++ b/engines/sci/resource_audio.cpp @@ -965,6 +965,10 @@ bool ResourceManager::addAudioSources() { } void ResourceManager::changeAudioDirectory(Common::String path) { + // TODO: This implementation is broken. + return; + +#if 0 // Remove all of the audio map resource sources, as well as the audio resource sources for (Common::List::iterator it = _sources.begin(); it != _sources.end();) { ResourceSource *source = *it; @@ -1007,6 +1011,7 @@ void ResourceManager::changeAudioDirectory(Common::String path) { // Rescan the newly added resources scanNewSources(); +#endif } } // End of namespace Sci -- cgit v1.2.3