File tree Expand file tree Collapse file tree 3 files changed +10
-38
lines changed Expand file tree Collapse file tree 3 files changed +10
-38
lines changed Original file line number Diff line number Diff line change 1- // xrGameSpy.cpp : Defines the entry point for the DLL application.
2- //
3-
41#include " stdafx.h"
52#include " xrGameSpy.h"
6- BOOL APIENTRY DllMain ( HANDLE hModule,
7- DWORD ul_reason_for_call,
8- LPVOID lpReserved
9- )
10- {
11- switch (ul_reason_for_call)
12- {
13- case DLL_PROCESS_ATTACH:
14- case DLL_THREAD_ATTACH:
15- case DLL_THREAD_DETACH:
16- case DLL_PROCESS_DETACH:
17- break ;
18- }
19- return TRUE ;
20- }
213
22- void FillSecretKey (char * SecretKey )
4+ void FillSecretKey (char *secretKey )
235{
24- SecretKey [0 ] = ' L' ;
25- SecretKey [1 ] = ' T' ;
26- SecretKey [2 ] = ' U' ;
27- SecretKey [3 ] = ' 2' ;
28- SecretKey [4 ] = ' z' ;
29- SecretKey [5 ] = ' 2' ;
30- SecretKey [6 ] = ' \0 ' ;
6+ secretKey [0 ] = ' L' ;
7+ secretKey [1 ] = ' T' ;
8+ secretKey [2 ] = ' U' ;
9+ secretKey [3 ] = ' 2' ;
10+ secretKey [4 ] = ' z' ;
11+ secretKey [5 ] = ' 2' ;
12+ secretKey [6 ] = ' \0 ' ;
3113}
3214
3315const char * GetGameVersion () { return GAME_VERSION; }
Original file line number Diff line number Diff line change 1717XRGAMESPY_API const char * GetGameVersion ();
1818XRGAMESPY_API int GetGameDistribution ();
1919XRGAMESPY_API void GetGameID (int * GameID , int verID );
20+
21+ void FillSecretKey (char * secretKey );
Original file line number Diff line number Diff line change 4848
4949#define GAMESPY_PATCHING_VERSIONUNIQUE_ID "test_version_1"
5050#define GAMESPY_PATCHING_DISTRIBUTION_ID 0
51-
52-
53-
54- #ifndef XRGAMESPY_API
55- #ifdef XRGAMESPY_EXPORTS
56- #define XRGAMESPY_API XR_EXPORT
57- #endif
58- #endif
59-
60- #define EXPORT_FN_DECL (r , f , p ) XRGAMESPY_API r xrGS_##f p;
61- // XXX: remove (see xrGameSpy.h)
62- extern void FillSecretKey (char * SecretKey );
You can’t perform that action at this time.
0 commit comments