Skip to content

Commit 37eb0f6

Browse files
author
nitrocaster
committed
xrGameSpy: Cleanup redundant declarations.
1 parent 77b7f0d commit 37eb0f6

File tree

3 files changed

+10
-38
lines changed

3 files changed

+10
-38
lines changed

src/xrGameSpy/xrGameSpy.cpp

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,15 @@
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

3315
const char* GetGameVersion() { return GAME_VERSION; }

src/xrGameSpy/xrGameSpy.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@
1717
XRGAMESPY_API const char* GetGameVersion();
1818
XRGAMESPY_API int GetGameDistribution();
1919
XRGAMESPY_API void GetGameID(int *GameID, int verID);
20+
21+
void FillSecretKey(char *secretKey);

src/xrGameSpy/xrGameSpy_MainDefs.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,3 @@
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);

0 commit comments

Comments
 (0)