Skip to content

Commit

Permalink
Code cleanup + changes regarding compatibility with latest pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
spmn committed Jul 24, 2016
1 parent 21a1007 commit 59b17e7
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 307 deletions.
112 changes: 0 additions & 112 deletions hook/hook.cpp

This file was deleted.

22 changes: 0 additions & 22 deletions hook/hook.vcxproj.filters

This file was deleted.

60 changes: 0 additions & 60 deletions injector/injector.cpp

This file was deleted.

91 changes: 0 additions & 91 deletions injector/injector.vcxproj

This file was deleted.

1 change: 0 additions & 1 deletion injector/resources/resource.rc

This file was deleted.

Binary file removed injector/resources/samp.ico
Binary file not shown.
8 changes: 1 addition & 7 deletions sa-mp_masterlist_fix.sln
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual C++ Express 2010
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "injector", "injector\injector.vcxproj", "{0F91D87C-7ED2-4D04-A419-6199253A477B}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "hook", "hook\hook.vcxproj", "{AC1F8B56-A267-43D0-8036-0F3CBCBB374F}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sa-mp_masterlist_fix", "sa-mp_masterlist_fix\sa-mp_masterlist_fix.vcxproj", "{AC1F8B56-A267-43D0-8036-0F3CBCBB374F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0F91D87C-7ED2-4D04-A419-6199253A477B}.Debug|Win32.ActiveCfg = Debug|Win32
{0F91D87C-7ED2-4D04-A419-6199253A477B}.Debug|Win32.Build.0 = Debug|Win32
{0F91D87C-7ED2-4D04-A419-6199253A477B}.Release|Win32.ActiveCfg = Release|Win32
{0F91D87C-7ED2-4D04-A419-6199253A477B}.Release|Win32.Build.0 = Release|Win32
{AC1F8B56-A267-43D0-8036-0F3CBCBB374F}.Debug|Win32.ActiveCfg = Debug|Win32
{AC1F8B56-A267-43D0-8036-0F3CBCBB374F}.Debug|Win32.Build.0 = Debug|Win32
{AC1F8B56-A267-43D0-8036-0F3CBCBB374F}.Release|Win32.ActiveCfg = Release|Win32
Expand Down
File renamed without changes.
7 changes: 4 additions & 3 deletions hook/main.cpp → sa-mp_masterlist_fix/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#pragma comment(lib, "ws2_32.lib")
#include <Shlobj.h>
#include <iostream>
#include <tchar.h>

void InitializeFix();
void GetRidOfMe();
Expand Down Expand Up @@ -32,15 +33,15 @@ WRAPPER_GENFUNC(VerQueryValueW)

bool InitializeWrapper()
{
char szDLLPath[MAX_PATH];
TCHAR szDLLPath[MAX_PATH];

if (SUCCEEDED(SHGetFolderPath(NULL,
CSIDL_SYSTEM,
NULL,
0,
szDLLPath)))
{
strcat_s(szDLLPath, MAX_PATH, "\\version.dll");
_tcscat_s(szDLLPath, MAX_PATH, TEXT("\\version.dll"));

HMODULE hModVersion = LoadLibrary(szDLLPath);
#define WRAPPER_FUNC(name) orig_##name = GetProcAddress(hModVersion, ###name);
Expand All @@ -64,7 +65,7 @@ bool InitializeWrapper()
}
else
{
MessageBox(NULL, "Failed to get your origin dll.\nPlease report this issue on github,\nand remove version.dll from your GTA:SA Folder until the problem is solved.", "Whoopsie", MB_OK);
MessageBox(NULL, TEXT("Failed to get your origin dll.\nPlease report this issue on GitHub,\nand remove version.dll from your GTA:SA folder until the problem is solved."), TEXT("Whoopsie"), MB_OK);
}

return false;
Expand Down
2 changes: 1 addition & 1 deletion hook/mod.def → sa-mp_masterlist_fix/mod.def
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ EXPORTS
VerLanguageNameA = _VerLanguageNameA @12
VerLanguageNameW = _VerLanguageNameW @13
VerQueryValueA = _VerQueryValueA @14
VerQueryValueW = _VerQueryValueW @15
VerQueryValueW = _VerQueryValueW @15
Loading

0 comments on commit 59b17e7

Please sign in to comment.