// SunClientPrecompiledHeader.h : ÀÚÁÖ »ç¿ëÇÏÁö¸¸ ÀÚÁÖ º¯°æµÇÁö´Â ¾Ê´Â // Ç¥ÁØ ½Ã½ºÅÛ Æ÷ÇÔ ÆÄÀÏ ¹× ÇÁ·ÎÁ§Æ® °ü·Ã Æ÷ÇÔ ÆÄÀÏÀÌ // µé¾î ÀÖ´Â Æ÷ÇÔ ÆÄÀÏÀÔ´Ï´Ù. // #pragma once #ifdef LAST_RELEASE // no operation #else #ifndef WINVER // Windows 95 ¹× Windows NT 4 ÀÌÈÄ ¹öÀü¿¡¼­¸¸ ±â´ÉÀ» »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. #define WINVER 0x0500 // Windows 98°ú Windows 2000 ÀÌÈÄ ¹öÀü¿¡ ¸Âµµ·Ï ÀûÇÕÇÑ °ªÀ¸·Î º¯°æÇØ ÁֽʽÿÀ. #endif #ifndef _WIN32_WINNT // Windows NT 4 ÀÌÈÄ ¹öÀü¿¡¼­¸¸ ±â´ÉÀ» »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. #define _WIN32_WINNT 0x0500 // Windows 98°ú Windows 2000 ÀÌÈÄ ¹öÀü¿¡ ¸Âµµ·Ï ÀûÇÕÇÑ °ªÀ¸·Î º¯°æÇØ ÁֽʽÿÀ. #endif #ifndef _WIN32_WINDOWS // Windows 98 ÀÌÈÄ ¹öÀü¿¡¼­¸¸ ±â´ÉÀ» »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. #define _WIN32_WINDOWS 0x0410 // Windows Me ÀÌÈÄ ¹öÀü¿¡ ¸Âµµ·Ï ÀûÇÕÇÑ °ªÀ¸·Î º¯°æÇØ ÁֽʽÿÀ. #endif //#ifndef _WIN32_IE // IE 4.0 ÀÌÈÄ ¹öÀü¿¡¼­¸¸ ±â´ÉÀ» »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. //#define _WIN32_IE 0x0400 // IE 5.0 ÀÌÈÄ ¹öÀü¿¡ ¸Âµµ·Ï ÀûÇÕÇÑ °ªÀ¸·Î º¯°æÇØ ÁֽʽÿÀ. //#endif #endif #pragma warning( push ) #pragma warning( disable : 4312 ) #pragma warning( disable : 4311 ) #pragma warning( disable : 4201 ) #pragma warning( disable : 4100 ) #pragma warning( disable : 4511 ) #pragma warning( disable : 4512 ) #ifdef _DEBUG #pragma warning( disable : 4189 ) #endif #pragma warning(disable : 4996) #pragma warning(disable : 4995) #include "../../include/Global.Define.h" //================================================================================================== #include "../SolarClientNetwork/SunNetworkApi.h" #include #include #include #include // TODO: ÇÁ·Î±×·¥¿¡ ÇÊ¿äÇÑ Ãß°¡ Çì´õ´Â ¿©±â¿¡¼­ ÂüÁ¶ÇÕ´Ï´Ù. #include #include #include #include #include #include #include #include "GameDefine.h" #include "GameConst.h" #include #include #include #include "SunEngine.h" //================================================================================================== //#if USING_SUN_SHARED_POOL // void* /*__cdecl*/ operator new(size_t size, const char* name, size_t line_no); // void* /*__cdecl*/ operator new[] (size_t size, const char* name, size_t line_no); // void /*__cdecl*/ operator delete(void*, const char* name, size_t line_no); // void /*__cdecl*/ operator delete[] (void*, const char* name, size_t line_no); // #if USING_SUN_SHARED_POOL_REPORT // #undef TAllocNew // #define TAllocNew(_type_) \ // new (##_type_) // #define new new(__FUNCTION__, __LINE__) // #endif ////================================================================================================== //#else // // #ifdef _DEBUG // // µð¹ö±ë ¸ðµå¿¡¼­ÀÇ °¡Àå ±âº»ÀûÀÎ LEAK Check .USING_SUN_SHARED_POOL °ú °øÁ¸ÇÒ ¼ö ¾ø´Â µðÆÄÀÎÀÌ´Ù. // #define _CLIENT_LEAK_CHECK_DEFAULT_VER // #endif // //#endif // // //#ifdef _CLIENT_LEAK_CHECK_DEFAULT_VER // #define _CRTDBG_MAP_ALLOC // #define _INC_MALLOC // #include // #include // #define new new(_CLIENT_BLOCK, __FILE__, __LINE__) //#endif //================================================================================================== //#include "..\\wzsound\\wzsound.h" #include "../Utility/nmath.h" #include "../Utility/vector.h" #include "../Utility/matrix.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "curl.h" #include "GlobalData.h" #include "GlobalMacro.h" #include "GameStruct.h" #include "GameParameter.h" #include "GameOption.h" #include "LoginGameParam.h" #include "safe_string.h" #include "InterfaceStruct.h" #include "UI_Sound_Define.h" #ifdef MAKE_TEST_MODULE_MACRO #include "TestModule.h" #endif #include "CustomAssertion.h" using namespace std; #ifdef _DEV_VER // no operation #else // À¯Àú¿¡°Ô ¹èÆ÷µÇ´Â ¹öÀü¿¡¼­´Â OutputDebugString À» ºñȰ¼ºÈ­ ½ÃŰÀÚ. #ifdef OutputDebugString #undef OutputDebugString #endif #define OutputDebugString __noop #endif struct PROCINFO { DWORD dwPId; string ProcessName; string ProcessPath; }; typedef vector StringVector; typedef map ProcessInfoMap; typedef map ModuleInfoMap; typedef map WindowsTextMap; #define _DEBUGMSG_ #ifdef _DEBUGMSG_ //debugµ÷ÊÔÐÅÏ¢Êä³ö inline void PrintfDebugString(char* szFormat, ...) { va_list argptr; char cBuf[1024]; va_start(argptr, szFormat); vsprintf_s(cBuf, szFormat, argptr); va_end(argptr); OutputDebugStringA(cBuf); } #define MYDEBUGMSG(format, ...) PrintfDebugString("----AutoPatch---- %s %d ÐÐ\tInfo:"format"--------\n",__FUNCTION__,__LINE__, ##__VA_ARGS__) #else #define MYDEBUGMSG(format, ...) #endif #define GETINSTANCE(ClassName) static ClassName * GetInstance(){ static ClassName g_Instance; return &g_Instance; } // //#if _MSC_VER >= 1500 // vs2008 // #include "SunClientPreCompiledHeader.hpp" //#endif //#if _MSC_VER >= 1500 // vs2008 #pragma warning( pop )