diff --git a/Sources/Plasma/NucleusLib/pnAsyncCore/CMakeLists.txt b/Sources/Plasma/NucleusLib/pnAsyncCore/CMakeLists.txt index 829c4b5d..0bebee89 100644 --- a/Sources/Plasma/NucleusLib/pnAsyncCore/CMakeLists.txt +++ b/Sources/Plasma/NucleusLib/pnAsyncCore/CMakeLists.txt @@ -1,5 +1,6 @@ include_directories(../../CoreLib) include_directories(../../NucleusLib) +include_directories(../../PubUtilLib) set(pnAsyncCore_HEADERS Pch.h diff --git a/Sources/Plasma/NucleusLib/pnAsyncCore/Private/pnAcLog.cpp b/Sources/Plasma/NucleusLib/pnAsyncCore/Private/pnAcLog.cpp index edcca438..56fa0e39 100644 --- a/Sources/Plasma/NucleusLib/pnAsyncCore/Private/pnAcLog.cpp +++ b/Sources/Plasma/NucleusLib/pnAsyncCore/Private/pnAcLog.cpp @@ -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; } //============================================================================