diff options
author | Paul Gilbert | 2016-05-09 21:03:21 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-10 16:39:01 -0400 |
commit | 0820c3ffaee211270ab75a14cd1d42047354aa34 (patch) | |
tree | 3c97672d3fb1f1f7b534e6013d53cbcf64f6bcb8 /engines/titanic/true_talk | |
parent | b99fa6ba8c7f4a5407ff59812e5e6023c8a3301c (diff) | |
download | scummvm-rg350-0820c3ffaee211270ab75a14cd1d42047354aa34.tar.gz scummvm-rg350-0820c3ffaee211270ab75a14cd1d42047354aa34.tar.bz2 scummvm-rg350-0820c3ffaee211270ab75a14cd1d42047354aa34.zip |
TITANIC: Refactor CTitleEngine to use CFilesManager for PE resources
Diffstat (limited to 'engines/titanic/true_talk')
-rw-r--r-- | engines/titanic/true_talk/title_engine.cpp | 4 | ||||
-rw-r--r-- | engines/titanic/true_talk/title_engine.h | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/engines/titanic/true_talk/title_engine.cpp b/engines/titanic/true_talk/title_engine.cpp index d4462c5bcd..511ee0a8f7 100644 --- a/engines/titanic/true_talk/title_engine.cpp +++ b/engines/titanic/true_talk/title_engine.cpp @@ -21,6 +21,7 @@ */ #include "titanic/true_talk/title_engine.h" +#include "titanic/titanic.h" namespace Titanic { @@ -40,7 +41,6 @@ void CTitleEngine::setup(int val1, int val2) { /*------------------------------------------------------------------------*/ STtitleEngine::STtitleEngine(): CTitleEngine(), _field58(0) { - _resources.loadFromEXE("ST.exe"); } STtitleEngine::~STtitleEngine() { @@ -66,7 +66,7 @@ void STtitleEngine::dump(int val1, int val2) { } SimpleFile *STtitleEngine::open(const CString &name) { - Common::SeekableReadStream *stream = _resources.getResource( + Common::SeekableReadStream *stream = g_vm->_filesManager->getResource( Common::WinResourceID("TEXT"), name); assert(stream); diff --git a/engines/titanic/true_talk/title_engine.h b/engines/titanic/true_talk/title_engine.h index fda35ac7bf..87491bf7b6 100644 --- a/engines/titanic/true_talk/title_engine.h +++ b/engines/titanic/true_talk/title_engine.h @@ -68,7 +68,6 @@ public: class STtitleEngine : public CTitleEngine { private: - Common::PEResources _resources; Common::SeekableReadStream *_stream; int _field58; public: |