diff options
author | Einar Johan Trøan Sømåen | 2012-06-25 15:26:33 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-06-25 15:26:33 +0200 |
commit | 0fc175857ad83127541ce3a85cd701f85f7e844d (patch) | |
tree | 6c6365befc5c2a3f555b939e7925e265f6239254 /engines/wintermute/Base | |
parent | e68ab9b5721caaafd99d9936dd372fa266069957 (diff) | |
download | scummvm-rg350-0fc175857ad83127541ce3a85cd701f85f7e844d.tar.gz scummvm-rg350-0fc175857ad83127541ce3a85cd701f85f7e844d.tar.bz2 scummvm-rg350-0fc175857ad83127541ce3a85cd701f85f7e844d.zip |
WINTERMUTE: Move the engine-log over to a debug-channel.
Diffstat (limited to 'engines/wintermute/Base')
-rw-r--r-- | engines/wintermute/Base/BGame.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/engines/wintermute/Base/BGame.cpp b/engines/wintermute/Base/BGame.cpp index 9544f1552e..69a0a31288 100644 --- a/engines/wintermute/Base/BGame.cpp +++ b/engines/wintermute/Base/BGame.cpp @@ -568,12 +568,6 @@ void CBGame::DEBUG_DebugDisable() { //////////////////////////////////////////////////////////////////////
void CBGame::LOG(HRESULT res, LPCSTR fmt, ...) {
-#ifndef __IPHONEOS__
- if (!_dEBUG_DebugMode) return;
-#endif
- /* time_t timeNow;
- time(&timeNow);
- struct tm *tm = localtime(&timeNow);*/
int secs = g_system->getMillis() / 1000;
int hours = secs / 3600;
secs = secs % 3600;
@@ -587,22 +581,16 @@ void CBGame::LOG(HRESULT res, LPCSTR fmt, ...) { vsprintf(buff, fmt, va);
va_end(va);
-#ifdef __IPHONEOS__
- printf("%02d:%02d:%02d: %s\n", tm->tm_hour, tm->tm_min, tm->tm_sec, buff);
- fflush(stdout);
-#else
- if (_dEBUG_LogFile == NULL) return;
-
// redirect to an engine's own callback
if (_engineLogCallback) {
_engineLogCallback(buff, res, _engineLogCallbackData);
}
if (_debugMgr) _debugMgr->OnLog(res, buff);
- warning("%02d:%02d:%02d: %s\n", hours, mins, secs, buff);
+ debugCN(kWinterMuteDebugLog, "%02d:%02d:%02d: %s\n", hours, mins, secs, buff);
+
//fprintf((FILE *)_dEBUG_LogFile, "%02d:%02d:%02d: %s\n", hours, mins, secs, buff);
//fflush((FILE *)_dEBUG_LogFile);
-#endif
//QuickMessage(buff);
}
|