diff options
author | Einar Johan Trøan Sømåen | 2012-06-02 11:09:22 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-06-02 13:09:58 +0200 |
commit | 4a10bc8b141f575ceb9c4d87563290d2791e3380 (patch) | |
tree | ef0e854b8b61ba8272466978332d83c2c2a1ac88 /engines/wintermute/Ad | |
parent | afe556742110ac477115083bcd4aeec2f9482b9f (diff) | |
download | scummvm-rg350-4a10bc8b141f575ceb9c4d87563290d2791e3380.tar.gz scummvm-rg350-4a10bc8b141f575ceb9c4d87563290d2791e3380.tar.bz2 scummvm-rg350-4a10bc8b141f575ceb9c4d87563290d2791e3380.zip |
WINTERMUTE: Revamp the file-system to deliver Common::-streams directly
Diffstat (limited to 'engines/wintermute/Ad')
-rw-r--r-- | engines/wintermute/Ad/AdGame.cpp | 2 | ||||
-rw-r--r-- | engines/wintermute/Ad/AdSentence.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/Ad/AdGame.cpp b/engines/wintermute/Ad/AdGame.cpp index 175cc98b38..584504b7c6 100644 --- a/engines/wintermute/Ad/AdGame.cpp +++ b/engines/wintermute/Ad/AdGame.cpp @@ -1903,7 +1903,7 @@ char *CAdGame::FindSpeechFile(char *StringID) { for (int i = 0; i < _speechDirs.GetSize(); i++) {
sprintf(Ret, "%s%s.ogg", _speechDirs[i], StringID);
- CBFile *File = _fileManager->OpenFile(Ret);
+ Common::SeekableReadStream *File = _fileManager->OpenFile(Ret);
if (File) {
_fileManager->CloseFile(File);
return Ret;
diff --git a/engines/wintermute/Ad/AdSentence.cpp b/engines/wintermute/Ad/AdSentence.cpp index 28e5b2cf26..e513d1f3ed 100644 --- a/engines/wintermute/Ad/AdSentence.cpp +++ b/engines/wintermute/Ad/AdSentence.cpp @@ -251,7 +251,7 @@ HRESULT CAdSentence::SetupTalkFile(const char *SoundFilename) { AnsiString talkDefFileName = PathUtil::Combine(path, name + ".talk");
- CBFile *file = Game->_fileManager->OpenFile(talkDefFileName.c_str());
+ Common::SeekableReadStream *file = Game->_fileManager->OpenFile(talkDefFileName.c_str());
if (file) {
Game->_fileManager->CloseFile(file);
} else return S_OK; // no talk def file found
|