diff options
Diffstat (limited to 'engines/wintermute/ad/ad_game.cpp')
-rw-r--r-- | engines/wintermute/ad/ad_game.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/engines/wintermute/ad/ad_game.cpp b/engines/wintermute/ad/ad_game.cpp index e10ec1bf6d..aa350b0e4c 100644 --- a/engines/wintermute/ad/ad_game.cpp +++ b/engines/wintermute/ad/ad_game.cpp @@ -1904,18 +1904,12 @@ char *AdGame::findSpeechFile(char *stringID) { for (int i = 0; i < _speechDirs.getSize(); i++) {
sprintf(ret, "%s%s.ogg", _speechDirs[i], stringID);
- Common::SeekableReadStream *file = _fileManager->openFile(ret); // TODO: Replace with hasFile
- if (file) {
- _fileManager->closeFile(file);
+ if (_fileManager->hasFile(ret))
return ret;
- }
sprintf(ret, "%s%s.wav", _speechDirs[i], stringID);
- file = _fileManager->openFile(ret);
- if (file) {
- _fileManager->closeFile(file);
+ if (_fileManager->hasFile(ret))
return ret;
- }
}
delete [] ret;
return NULL;
|