diff options
Diffstat (limited to 'engines/titanic/true_talk/title_engine.cpp')
-rw-r--r-- | engines/titanic/true_talk/title_engine.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/engines/titanic/true_talk/title_engine.cpp b/engines/titanic/true_talk/title_engine.cpp index 3908ea0986..24cc4216ee 100644 --- a/engines/titanic/true_talk/title_engine.cpp +++ b/engines/titanic/true_talk/title_engine.cpp @@ -64,14 +64,13 @@ void STtitleEngine::dump(int val1, int val2) { // TODO } -void STtitleEngine::open(const CString &name) { - _stream = _resources.getResource(Common::WinResourceID("Text"), - name); -} - -void STtitleEngine::close() { - delete _stream; - _stream = nullptr; +SimpleFile *STtitleEngine::open(const CString &name) { + Common::SeekableReadStream *stream = _resources.getResource( + Common::WinResourceID("Text"), name); + + SimpleFile *file = new SimpleFile(); + file->open(stream); + return file; } } // End of namespace Titanic |