Implement DirectX hook + ImGui console

/* PROTOTYPE */
This commit is contained in:
Amos 2021-06-14 17:58:48 -07:00
parent 21bc365a71
commit 341d8fc638
5 changed files with 21 additions and 2 deletions

View File

@ -194,7 +194,9 @@
<ClInclude Include="..\imgui\include\imstb_truetype.h" />
<ClInclude Include="include\console.h" />
<ClInclude Include="include\hooks.h" />
<ClInclude Include="include\id3dx.h" />
<ClInclude Include="include\opcptc.h" />
<ClInclude Include="include\overlay.h" />
<ClInclude Include="include\patterns.h" />
<ClInclude Include="include\r5dev.h" />
<ClInclude Include="include\structs.h" />
@ -211,7 +213,9 @@
<ClCompile Include="src\console.cpp" />
<ClCompile Include="src\dllmain.cpp" />
<ClCompile Include="src\hooks.cpp" />
<ClCompile Include="src\id3dx.cpp" />
<ClCompile Include="src\opcptc.cpp" />
<ClCompile Include="src\overlay.cpp" />
<ClCompile Include="src\utility.cpp" />
</ItemGroup>
<ItemGroup>

View File

@ -69,6 +69,12 @@
<ClCompile Include="..\imgui\src\imgui_demo.cpp">
<Filter>External Libraries\ImGui\Source Files</Filter>
</ClCompile>
<ClCompile Include="src\id3dx.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="src\overlay.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="include\console.h">
@ -125,6 +131,12 @@
<ClInclude Include="..\imgui\include\imgui_impl_dx11.h">
<Filter>External Libraries\ImGui\Header Files</Filter>
</ClInclude>
<ClInclude Include="include\id3dx.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\overlay.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="r5dev.def">

View File

@ -2,6 +2,7 @@
#include <string>
#include "r5dev.h"
#include "id3dx.h"
#include "hooks.h"
#include "opcptc.h"
#include "console.h"
@ -40,12 +41,14 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpReserved)
case DLL_PROCESS_ATTACH:
{
InitializeR5Dev();
SetupDXSwapChain();
break;
}
case DLL_PROCESS_DETACH:
{
TerminateR5Dev();
RemoveDXHooks();
break;
}
}

View File

@ -2,7 +2,7 @@
#include "opcptc.h"
/*-----------------------------------------------------------------------------
* opcptc.cpp
* _opcptc.cpp
*-----------------------------------------------------------------------------*/
void InstallOpcodes()

View File

@ -5,7 +5,7 @@
#include "hooks.h"
/*-----------------------------------------------------------------------------
* utility.cpp
* _utility.cpp
*-----------------------------------------------------------------------------*/
/////////////////////////////////////////////////////////////////////////////