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/base/font/base_font_bitmap.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/base/font/base_font_bitmap.cpp')
-rw-r--r-- | engines/wintermute/base/font/base_font_bitmap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/base/font/base_font_bitmap.cpp b/engines/wintermute/base/font/base_font_bitmap.cpp index e7bf362b32..6585d7cb0a 100644 --- a/engines/wintermute/base/font/base_font_bitmap.cpp +++ b/engines/wintermute/base/font/base_font_bitmap.cpp @@ -271,7 +271,7 @@ void BaseFontBitmap::drawChar(byte c, int x, int y) { //////////////////////////////////////////////////////////////////////
bool BaseFontBitmap::loadFile(const Common::String &filename) {
- byte *buffer = _gameRef->_fileManager->readWholeFile(filename);
+ byte *buffer = BaseFileManager::getEngineInstance()->readWholeFile(filename);
if (buffer == NULL) {
_gameRef->LOG(0, "BaseFontBitmap::LoadFile failed for file '%s'", filename.c_str());
return STATUS_FAILED;
@@ -332,7 +332,7 @@ bool BaseFontBitmap::loadBuffer(byte *buffer) { char *params;
int cmd;
- BaseParser parser(_gameRef);
+ BaseParser parser;
if (parser.getCommand((char **)&buffer, commands, (char **)¶ms) != TOKEN_FONT) {
_gameRef->LOG(0, "'FONT' keyword expected.");
|