mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
Redirect pnAcLog stuff to plStatusLog.
This commit is contained in:
@ -1,5 +1,6 @@
|
|||||||
include_directories(../../CoreLib)
|
include_directories(../../CoreLib)
|
||||||
include_directories(../../NucleusLib)
|
include_directories(../../NucleusLib)
|
||||||
|
include_directories(../../PubUtilLib)
|
||||||
|
|
||||||
set(pnAsyncCore_HEADERS
|
set(pnAsyncCore_HEADERS
|
||||||
Pch.h
|
Pch.h
|
||||||
|
@ -46,6 +46,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
|||||||
***/
|
***/
|
||||||
|
|
||||||
#include "../Pch.h"
|
#include "../Pch.h"
|
||||||
|
#include "plStatusLog/plStatusLog.h"
|
||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
|
|
||||||
|
|
||||||
@ -148,10 +149,7 @@ void LogMsgV (ELogSeverity severity, const char format[], va_list args) {
|
|||||||
char msg[1024];
|
char msg[1024];
|
||||||
StrPrintfV(msg, arrsize(msg), format, args);
|
StrPrintfV(msg, arrsize(msg), format, args);
|
||||||
|
|
||||||
wchar_t uniMsg[1024];
|
plStatusLog::AddLineS("OLD_ASYNC_LOG.log", msg);
|
||||||
StrToUnicode(uniMsg, msg, arrsize(uniMsg));
|
|
||||||
|
|
||||||
Dispatch(severity, uniMsg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
@ -162,7 +160,9 @@ void LogMsgV (ELogSeverity severity, const wchar_t format[], va_list args) {
|
|||||||
wchar_t msg[1024];
|
wchar_t msg[1024];
|
||||||
StrPrintfV(msg, arrsize(msg), format, args);
|
StrPrintfV(msg, arrsize(msg), format, args);
|
||||||
|
|
||||||
Dispatch(severity, msg);
|
char* to_log = hsWStringToString(msg);
|
||||||
|
plStatusLog::AddLineS("OLD_ASYNC_LOG.log", to_log);
|
||||||
|
delete[] to_log;
|
||||||
}
|
}
|
||||||
|
|
||||||
//============================================================================
|
//============================================================================
|
||||||
|
Reference in New Issue
Block a user