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/ui/ui_window.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/ui/ui_window.cpp')
-rw-r--r-- | engines/wintermute/ui/ui_window.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/ui/ui_window.cpp b/engines/wintermute/ui/ui_window.cpp index 0a2ec6b389..4f3ee9ff43 100644 --- a/engines/wintermute/ui/ui_window.cpp +++ b/engines/wintermute/ui/ui_window.cpp @@ -238,7 +238,7 @@ bool UIWindow::display(int offsetX, int offsetY) { //////////////////////////////////////////////////////////////////////////
bool UIWindow::loadFile(const char *filename) {
- byte *buffer = _gameRef->_fileManager->readWholeFile(filename);
+ byte *buffer = BaseFileManager::getEngineInstance()->readWholeFile(filename);
if (buffer == NULL) {
_gameRef->LOG(0, "UIWindow::LoadFile failed for file '%s'", filename);
return STATUS_FAILED;
@@ -339,7 +339,7 @@ bool UIWindow::loadBuffer(byte *buffer, bool complete) { byte *params;
int cmd = 2;
- BaseParser parser(_gameRef);
+ BaseParser parser;
int fadeR = 0, fadeG = 0, fadeB = 0, fadeA = 0;
int ar = 0, ag = 0, ab = 0, alpha = 0;
|