diff --git a/src/xrGameSpy/xrGameSpy.cpp b/src/xrGameSpy/xrGameSpy.cpp index 4e88aed8b10..8d5f248684b 100644 --- a/src/xrGameSpy/xrGameSpy.cpp +++ b/src/xrGameSpy/xrGameSpy.cpp @@ -1,33 +1,15 @@ -// xrGameSpy.cpp : Defines the entry point for the DLL application. -// - #include "stdafx.h" #include "xrGameSpy.h" -BOOL APIENTRY DllMain( HANDLE hModule, - DWORD ul_reason_for_call, - LPVOID lpReserved - ) -{ - switch (ul_reason_for_call) - { - case DLL_PROCESS_ATTACH: - case DLL_THREAD_ATTACH: - case DLL_THREAD_DETACH: - case DLL_PROCESS_DETACH: - break; - } - return TRUE; -} -void FillSecretKey(char* SecretKey) +void FillSecretKey(char *secretKey) { - SecretKey[0] = 'L'; - SecretKey[1] = 'T'; - SecretKey[2] = 'U'; - SecretKey[3] = '2'; - SecretKey[4] = 'z'; - SecretKey[5] = '2'; - SecretKey[6] = '\0'; + secretKey[0] = 'L'; + secretKey[1] = 'T'; + secretKey[2] = 'U'; + secretKey[3] = '2'; + secretKey[4] = 'z'; + secretKey[5] = '2'; + secretKey[6] = '\0'; } const char* GetGameVersion() { return GAME_VERSION; } diff --git a/src/xrGameSpy/xrGameSpy.h b/src/xrGameSpy/xrGameSpy.h index d83d3cc9e07..3b2c749935c 100644 --- a/src/xrGameSpy/xrGameSpy.h +++ b/src/xrGameSpy/xrGameSpy.h @@ -17,3 +17,5 @@ XRGAMESPY_API const char* GetGameVersion(); XRGAMESPY_API int GetGameDistribution(); XRGAMESPY_API void GetGameID(int *GameID, int verID); + +void FillSecretKey(char *secretKey); diff --git a/src/xrGameSpy/xrGameSpy_MainDefs.h b/src/xrGameSpy/xrGameSpy_MainDefs.h index f38ada9e9eb..05f6ca67ea8 100644 --- a/src/xrGameSpy/xrGameSpy_MainDefs.h +++ b/src/xrGameSpy/xrGameSpy_MainDefs.h @@ -48,15 +48,3 @@ #define GAMESPY_PATCHING_VERSIONUNIQUE_ID "test_version_1" #define GAMESPY_PATCHING_DISTRIBUTION_ID 0 - - - -#ifndef XRGAMESPY_API - #ifdef XRGAMESPY_EXPORTS - #define XRGAMESPY_API XR_EXPORT - #endif -#endif - -#define EXPORT_FN_DECL(r, f, p) XRGAMESPY_API r xrGS_##f p; -// XXX: remove (see xrGameSpy.h) -extern void FillSecretKey (char* SecretKey);