// SunUpdateAgent.cpp : ÄÜ¼Ö ÀÀ¿ë ÇÁ·Î±×·¥¿¡ ´ëÇÑ ÁøÀÔÁ¡À» Á¤ÀÇÇÕ´Ï´Ù. // #include "stdafx.h" #include #include #include "SunUpdateAgent.h" VOID SetTitle() { TCHAR szTitle[MAX_PATH]; _snprintf( szTitle, MAX_PATH, "SUN UpdateAgent : PROTOCOL VER[%d.%d.%d], BUILD VER[%d.%d.%d] ", PROTOCOL_HIGH_VERSION_NO, PROTOCOL_MIDDLE_VERSION_NO, PROTOCOL_LOW_VERSION_NO, BUILD_HIGH_VERSION_NO, BUILD_MIDDLE_VERSION_NO, BUILD_LOW_VERSION_NO ); SetConsoleTitle( szTitle ); } BOOL InitLog() { g_pLog = new CBasicLog; // ·Î±× ÃʱâÈ­. if( !g_pLog->Init( "./", "UpdateAgent" ) ) { MessageBox( NULL, "LOG ¸ðµâ ÃʱâÈ­ ½ÇÆÐ", NULL, MB_OK ); return FALSE; } return TRUE; } int _tmain(int argc, _TCHAR* argv[]) { SolarDump dump; SetTitle(); if( !InitLog() ) return 0; MSGOUT( "*** Start UpdateAgent *** "); if( !SunUpdateAgent::Instance()->Init() ) MSGOUT( "ÃʱâÈ­ ½ÇÆÐ" ); if( !SunUpdateAgent::Instance()->StartCheckGameServer() ) MSGOUT( "°ÔÀÓ¼­¹ö üũ ½ÇÆÐ " ); SunUpdateAgent::Instance()->Run(); SunUpdateAgent::Instance()->SetCheckThread( FALSE ); SunUpdateAgent::Instance()->Release(); return 0; }