diff options
| author | Shawn Hoffman <godisgovernment@gmail.com> | 2009-03-18 17:17:58 +0000 |
|---|---|---|
| committer | Shawn Hoffman <godisgovernment@gmail.com> | 2009-03-18 17:17:58 +0000 |
| commit | 2301d072a6d356e1a3a22a498fff9d15197c5d7f (patch) | |
| tree | 5385f176e56e400befb0b799113a6abe4a358558 /Source/Core/Common/Src/Thread.cpp | |
| parent | 03ba466b5b202e188f84d62ea4b23e31226df2a6 (diff) | |
nakee's new logmanager. added a console window for windows builds (prints to parent console on non-win32). also fix some random wxw bugs: main window's position is saved when using debugger, disabling windows from the tools menu are saved settings, some other small fixes
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2675 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/Thread.cpp')
| -rw-r--r-- | Source/Core/Common/Src/Thread.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/Common/Src/Thread.cpp b/Source/Core/Common/Src/Thread.cpp index 72d56b17e1..b4ddb1b5be 100644 --- a/Source/Core/Common/Src/Thread.cpp +++ b/Source/Core/Common/Src/Thread.cpp @@ -202,13 +202,13 @@ VOID CALLBACK TimerRoutine(PVOID lpParam, BOOLEAN TimerOrWaitFired) { if (lpParam == NULL) { - Console::Print("TimerRoutine lpParam is NULL\n"); + DEBUG_LOG(CONSOLE, "TimerRoutine lpParam is NULL\n"); } else { // lpParam points to the argument; in this case it is an int - //Console::Print("Timer[%i] will call back\n", *(int*)lpParam); + //DEBUG_LOG(CONSOLE, "Timer[%i] will call back\n", *(int*)lpParam); } // Call back @@ -221,7 +221,7 @@ bool Event::TimerWait(EventCallBack WaitCB, int _Id, bool OptCondition) { Id = _Id; - //Console::Print("TimerWait[%i]: %i %i %i\n", Id, StartWait, DoneWaiting, OptCondition); + //DEBUG_LOG(CONSOLE, "TimerWait[%i]: %i %i %i\n", Id, StartWait, DoneWaiting, OptCondition); FunctionPointer[Id] = WaitCB; @@ -234,7 +234,7 @@ bool Event::TimerWait(EventCallBack WaitCB, int _Id, bool OptCondition) // Delete all timers in the timer queue. if (!DeleteTimerQueue(hTimerQueue)) - Console::Print("DeleteTimerQueue failed (%d)\n", GetLastError()); + DEBUG_LOG(CONSOLE, "DeleteTimerQueue failed (%d)\n", GetLastError()); hTimer = NULL; hTimerQueue = NULL; @@ -251,7 +251,7 @@ bool Event::TimerWait(EventCallBack WaitCB, int _Id, bool OptCondition) hTimerQueue = CreateTimerQueue(); if (NULL == hTimerQueue) { - Console::Print("CreateTimerQueue failed (%d)\n", GetLastError()); + DEBUG_LOG(CONSOLE, "CreateTimerQueue failed (%d)\n", GetLastError()); return false; } } @@ -260,7 +260,7 @@ bool Event::TimerWait(EventCallBack WaitCB, int _Id, bool OptCondition) if (!CreateTimerQueueTimer( &hTimer, hTimerQueue, (WAITORTIMERCALLBACK)TimerRoutine, &Id , 10, 0, 0)) { - Console::Print("CreateTimerQueueTimer failed (%d)\n", GetLastError()); + DEBUG_LOG(CONSOLE, "CreateTimerQueueTimer failed (%d)\n", GetLastError()); return false; } |
