DragonNest/Extern/Nexon/NMClass/NMGameLogManager.cpp

65 lines
1.1 KiB
C++
Raw Normal View History

2024-12-19 09:48:26 +08:00
#include "NMManager.h"
#include "NMGameLogManager.h"
BOOL NMGameLogManager::Initialize
(
LPCTSTR szGameName
, LPCTSTR szBaseURL
, LPCTSTR szSessionID
)
{
CNMGameLogInitializeFunc func( szGameName, szBaseURL, szSessionID );
return CNMManager::GetInstance().CallNMFunc( &func );
}
BOOL NMGameLogManager::Finalize
(
void
)
{
CNMGameLogFinalizeFunc func;
return CNMManager::GetInstance().CallNMFunc( &func );
}
BOOL NMGameLogManager::WriteStageLog
(
INT32 nStage
, LPCTSTR szComment
)
{
CNMGameLogWriteStageLogFunc func( nStage, szComment );
return CNMManager::GetInstance().CallNMFunc( &func );
}
BOOL NMGameLogManager::WriteErrorLog
(
INT32 nErrorType
, LPCTSTR szComment
)
{
CNMGameLogWriteErrorLogFunc func( nErrorType, szComment );
return CNMManager::GetInstance().CallNMFunc( &func );
}
LPCTSTR NMGameLogManager::GetSessionID( LPTSTR szSessionIDOut )
{
CNMGameLogGetSessionIDFunc func;
if ( CNMManager::GetInstance().CallNMFunc( &func ) )
{
NMSAFE_STRCOPY( szSessionIDOut, func.szSessionID, 32 );
return szSessionIDOut;
}
if ( szSessionIDOut )
{
szSessionIDOut[0] = 0;
}
return szSessionIDOut;
}