2
3
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:
Darryl Pogue
2012-03-04 15:20:20 -08:00
parent fa81d44489
commit 0e56037444
2 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,6 @@
include_directories(../../CoreLib)
include_directories(../../NucleusLib)
include_directories(../../PubUtilLib)
set(pnAsyncCore_HEADERS
Pch.h

View File

@ -46,6 +46,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
***/
#include "../Pch.h"
#include "plStatusLog/plStatusLog.h"
#pragma hdrstop
@ -148,10 +149,7 @@ void LogMsgV (ELogSeverity severity, const char format[], va_list args) {
char msg[1024];
StrPrintfV(msg, arrsize(msg), format, args);
wchar_t uniMsg[1024];
StrToUnicode(uniMsg, msg, arrsize(uniMsg));
Dispatch(severity, uniMsg);
plStatusLog::AddLineS("OLD_ASYNC_LOG.log", msg);
}
//===========================================================================
@ -162,7 +160,9 @@ void LogMsgV (ELogSeverity severity, const wchar_t format[], va_list args) {
wchar_t msg[1024];
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;
}
//============================================================================