Skip to content

A Vulkan & DirectX 12 hook that allows you to create ImGui menus for Red Dead Redemption 2

License

Notifications You must be signed in to change notification settings

Halen84/ImGuiRDR2Hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ImGuiRDR2Hook

A Vulkan & DirectX 12 hook that allows you to create ImGui menus for RDR2

Prerequisites

How To Use

Before trying to compile the main project, you must first compile MinHook (libMinHook) so the main project can reference some required files. There's really not much to set up, but you must first make sure you have Vulkan SDK installed, which can be found here: https://vulkan.lunarg.com/sdk/home. You may need to restart Visual Studio after installing the Vulkan SDK.

  • Note: Use WaitAndRender() instead of WAIT() to prevent a crash! This function renders ImGui while yielding. Also see #2
  • Do not touch anything in the hooks folder unless you know what you're doing!
  • script.cpp still contains the main loop for the script.
  • menu.cpp/.h is where the ImGui menu is drawn.
  • main.cpp is where the hook functions are called
  • See hooks/vulkan.cpp --> RenderImGui_Vulkan() for drawing the mouse cursor and changing the style in Vulkan
  • See hooks/dx12.cpp --> hk_Present() for drawing the mouse cursor and changing the style in DirectX 12
  • See main.cpp for reading from the config file and system.xml

Credits

About

A Vulkan & DirectX 12 hook that allows you to create ImGui menus for Red Dead Redemption 2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages