diff options
author | Einar Johan Trøan Sømåen | 2012-07-29 02:30:26 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-07-29 02:34:44 +0200 |
commit | 9b5cf8f1bafd5aa0dba9194a8f04e58724652891 (patch) | |
tree | 6a205943845259a213532476d4dc9ee49a898cf7 /engines/wintermute/ad/ad_inventory_box.cpp | |
parent | b214041539559e65b89b3270439970fd7173dcbe (diff) | |
download | scummvm-rg350-9b5cf8f1bafd5aa0dba9194a8f04e58724652891.tar.gz scummvm-rg350-9b5cf8f1bafd5aa0dba9194a8f04e58724652891.tar.bz2 scummvm-rg350-9b5cf8f1bafd5aa0dba9194a8f04e58724652891.zip |
WINTERMUTE: Introduce a Singleton-class for holding registry/filemanager.
Diffstat (limited to 'engines/wintermute/ad/ad_inventory_box.cpp')
-rw-r--r-- | engines/wintermute/ad/ad_inventory_box.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/ad/ad_inventory_box.cpp b/engines/wintermute/ad/ad_inventory_box.cpp index bc773cbdaf..555fa8e5c2 100644 --- a/engines/wintermute/ad/ad_inventory_box.cpp +++ b/engines/wintermute/ad/ad_inventory_box.cpp @@ -164,7 +164,7 @@ bool AdInventoryBox::display() { //////////////////////////////////////////////////////////////////////////
bool AdInventoryBox::loadFile(const char *filename) {
- byte *buffer = _gameRef->_fileManager->readWholeFile(filename);
+ byte *buffer = BaseFileManager::getEngineInstance()->readWholeFile(filename);
if (buffer == NULL) {
_gameRef->LOG(0, "AdInventoryBox::LoadFile failed for file '%s'", filename);
return STATUS_FAILED;
@@ -222,7 +222,7 @@ bool AdInventoryBox::loadBuffer(byte *buffer, bool complete) { byte *params;
int cmd = 2;
- BaseParser parser(_gameRef);
+ BaseParser parser;
bool alwaysVisible = false;
_exclusive = false;
|