mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-17 23:27:37 +00:00
My recent sound changes broke "restart". This should un-break it again.
svn-id: r13810
This commit is contained in:
parent
f74a675850
commit
ed9bac56b0
@ -758,6 +758,12 @@ void ResourceManager::remove(int res) {
|
||||
*/
|
||||
|
||||
void ResourceManager::removeAll(void) {
|
||||
// We need to clear the FX queue, because otherwise the sound system
|
||||
// will still believe that the sound resources are in memory, and that
|
||||
// it's ok to close them.
|
||||
|
||||
_vm->clearFxQueue();
|
||||
|
||||
for (uint i = 0; i < _totalResFiles; i++)
|
||||
remove(i);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user