1
0
mirror of synced 2025-01-31 19:55:26 +01:00

Modified HOTD4 & Updated ToolSet

This commit is contained in:
Aaron M 2019-10-27 15:03:02 +13:00
parent f6ea9454c6
commit 264bba26fb
3 changed files with 14 additions and 8 deletions

View File

@ -119,33 +119,33 @@
<ProjectGuid>{023441F6-2554-440F-9FFB-7E185AB7CF41}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>Dinput8Wrapper</RootNamespace>
<WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
<ProjectName>DInput8Wrapper</ProjectName>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<PlatformToolset>v142</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<PlatformToolset>v142</PlatformToolset>
<WholeProgramOptimization>false</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<PlatformToolset>v142</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<PlatformToolset>v142</PlatformToolset>
<WholeProgramOptimization>false</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>

View File

@ -838,6 +838,7 @@ SDL_Joystick* GameController2 = NULL;
SDL_Haptic* ControllerHaptic2 = NULL;
HINSTANCE gl_hOriginalDll = NULL;
HINSTANCE gl_hjgtDll = NULL;
HINSTANCE gl_cgGLDll = NULL;
HINSTANCE gl_hlibavs = NULL;
int joystick_index1;
int joystick1Index = -1;
@ -1919,6 +1920,10 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ulReasonForCall, LPVOID lpReserved)
gl_hjgtDll = LoadLibraryA("jgt.dll");
gl_hlibavs = LoadLibraryA("libavs-win32-ea3.dll");
}
if (configGameId == 4)
{
gl_cgGLDll = LoadLibraryA("cgGL.dll");
}
}
else
{

View File

@ -23,6 +23,7 @@ extern SDL_Haptic* haptic2;
static EffectTriggers *myTriggers;
static EffectConstants *myConstants;
static Helpers *myHelpers;
extern HINSTANCE gl_cgGLDll;
SDL_Event e;
static int RunningThread(void *ptr)
@ -30,9 +31,9 @@ static int RunningThread(void *ptr)
int cnt;
for (cnt = 0; cnt >= 0; ++cnt)
{
INT_PTR Base = myHelpers->ReadIntPtr(0x1CCEC0, true);
INT_PTR Base1 = myHelpers->ReadIntPtr(Base + 0xF8, false);
INT_PTR Base2 = myHelpers->ReadIntPtr(Base1 + 0x38, false);
INT_PTR Base = myHelpers->ReadIntPtr((INT_PTR)gl_cgGLDll + 0x9164, false);
INT_PTR Base1 = myHelpers->ReadIntPtr(Base + 0x11C, false);
INT_PTR Base2 = myHelpers->ReadIntPtr(Base1 + 0x50, false);
INT_PTR Base3 = myHelpers->ReadIntPtr(Base2 + 0x20, false);
UINT8 Health = myHelpers->ReadByte(Base3 + 0x3C, false);
UINT8 Bullet = myHelpers->ReadByte(Base3 + 0x274, false);