diff options
author | Einar Johan Trøan Sømåen | 2013-04-18 12:24:42 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2013-04-18 12:24:42 +0200 |
commit | 8bcaf3e06c5c61d82686be4cbf5699f71db3e4a3 (patch) | |
tree | 1d3736e4f6e058edb98c8a8743d267a7f7312dcd /engines/wintermute/base/base.cpp | |
parent | a4f77635793ebb1fe0fc3b1b8ded6834762362c6 (diff) | |
download | scummvm-rg350-8bcaf3e06c5c61d82686be4cbf5699f71db3e4a3.tar.gz scummvm-rg350-8bcaf3e06c5c61d82686be4cbf5699f71db3e4a3.tar.bz2 scummvm-rg350-8bcaf3e06c5c61d82686be4cbf5699f71db3e4a3.zip |
WINTERMUTE: Use BaseEngine for Logging, not _gameRef in base-classes.
Diffstat (limited to 'engines/wintermute/base/base.cpp')
-rw-r--r-- | engines/wintermute/base/base.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/wintermute/base/base.cpp b/engines/wintermute/base/base.cpp index c0459b0ce5..d01972b82f 100644 --- a/engines/wintermute/base/base.cpp +++ b/engines/wintermute/base/base.cpp @@ -28,6 +28,7 @@ #include "engines/wintermute/base/base.h" #include "engines/wintermute/base/base_game.h" +#include "engines/wintermute/base/base_engine.h" #include "engines/wintermute/base/base_parser.h" #include "engines/wintermute/base/base_dynamic_buffer.h" @@ -105,7 +106,7 @@ bool BaseClass::parseEditorProperty(byte *buffer, bool complete) { if (complete) { if (parser.getCommand((char **)&buffer, commands, (char **)¶ms) != TOKEN_EDITOR_PROPERTY) { - _gameRef->LOG(0, "'EDITOR_PROPERTY' keyword expected."); + BaseEngine::LOG(0, "'EDITOR_PROPERTY' keyword expected."); return STATUS_FAILED; } buffer = params; @@ -143,7 +144,7 @@ bool BaseClass::parseEditorProperty(byte *buffer, bool complete) { delete[] propValue; propName = nullptr; propValue = nullptr; - _gameRef->LOG(0, "Syntax error in EDITOR_PROPERTY definition"); + BaseEngine::LOG(0, "Syntax error in EDITOR_PROPERTY definition"); return STATUS_FAILED; } if (cmd == PARSERR_GENERIC || propName == nullptr || propValue == nullptr) { @@ -151,7 +152,7 @@ bool BaseClass::parseEditorProperty(byte *buffer, bool complete) { delete[] propValue; propName = nullptr; propValue = nullptr; - _gameRef->LOG(0, "Error loading EDITOR_PROPERTY definition"); + BaseEngine::LOG(0, "Error loading EDITOR_PROPERTY definition"); return STATUS_FAILED; } |