TITANIC: Fix scanning for files not to free resources

This commit is contained in:
Paul Gilbert 2016-07-18 21:47:19 -04:00
parent 25e8d1d5a8
commit 87379442ff

View File

@ -86,14 +86,16 @@ bool CFilesManager::scanForFile(const CString &name) {
fname += ".st";
}
// Return true if the file exists
if (fileExists(fname))
return true;
// Couldn't find file. Start by calling the game manager's viewChange
// method, which handles all active scene objects freeing their resources
if (_gameManager)
_gameManager->viewChange();
// The original had a bunch of code here handling determining
// which asset path, if any, the filename was present for,
// and storing the "active asset path" it was found on.
// This is redundant for ScummVM, which takes care of the paths
return fileExists(fname);
return false;
}
void CFilesManager::loadDrive() {