Skip to content

Commit

Permalink
xrGameSpy: Cleanup redundant declarations.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Jan 27, 2016
1 parent 77b7f0d commit 37eb0f6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 38 deletions.
34 changes: 8 additions & 26 deletions src/xrGameSpy/xrGameSpy.cpp
Original file line number Diff line number Diff line change
@@ -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; }
Expand Down
2 changes: 2 additions & 0 deletions src/xrGameSpy/xrGameSpy.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
12 changes: 0 additions & 12 deletions src/xrGameSpy/xrGameSpy_MainDefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 37eb0f6

Please sign in to comment.