mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Implement DirectX hook + ImGui console
/* PROTOTYPE */
This commit is contained in:
parent
21bc365a71
commit
341d8fc638
@ -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>
|
||||
|
@ -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">
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
#include "opcptc.h"
|
||||
|
||||
/*-----------------------------------------------------------------------------
|
||||
* opcptc.cpp
|
||||
* _opcptc.cpp
|
||||
*-----------------------------------------------------------------------------*/
|
||||
|
||||
void InstallOpcodes()
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include "hooks.h"
|
||||
|
||||
/*-----------------------------------------------------------------------------
|
||||
* utility.cpp
|
||||
* _utility.cpp
|
||||
*-----------------------------------------------------------------------------*/
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user