Skip to content

Attempt to integrate Razer Chroma lighting effects to SGG Hades

Notifications You must be signed in to change notification settings

opariffazman/Apollo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Ariff Azman
Sep 30, 2021
c1a3816 · Sep 30, 2021

History

9 Commits
Sep 30, 2021
Sep 24, 2021
Sep 24, 2021
Sep 24, 2021
Sep 24, 2021
Sep 24, 2021
Sep 24, 2021
Sep 30, 2021
Sep 30, 2021
Sep 24, 2021
Sep 24, 2021
Sep 30, 2021
Sep 24, 2021
Sep 30, 2021
Sep 24, 2021
Sep 24, 2021
Sep 24, 2021
Sep 30, 2021
Sep 24, 2021
Sep 24, 2021
Sep 24, 2021
Sep 24, 2021

Repository files navigation

Apollo

Attempt to integrate Razer Chroma lighting effects for SuperGiantGames Hades.

Once saw a reddit post showing how their controllers light up according to the god boons their getting.

Feelsbadman no such functionalities for PC/MKB players even where there's so much potential for RGB goodness.

image

Methodology

As of now, here's what I've managed to achieve so far.

  • Hades EngineWin64s.dll is patched with Ghidra, so that my ApolloInjector.exe can hook a specific function call
  • Specifically SDL2::SDL_JoystickSetLED from SDL2.dll, an API which responsible for setting the lights for controller
  • Scrapped some functions of from the official Razer Chroma SDK examples
  • Hooked the function call and replace it with some razer chroma effects whenever the loots/boons are from gods then return the appropriate function back

Limitation

  • Currently, the patched EngineWin64s.dll will still require any controller to be connected so the SDL2.dll function call actually being triggered
  • Reckon would require a little bit more patching on EngineWin64s.dll so that the call will be triggered without any controller connected

Credits

Huge thanks to nbusseneau the author of hephaistos, which offers the best ultrawide experience you could ever get from Hades, for taking his time helping me throughout the overall process of reverse engineering, memory injection & patching, plus some x86 assembly :D

Also, of course SupergiantGames themselve for this masterpiece.

About

Attempt to integrate Razer Chroma lighting effects to SGG Hades

Resources

Stars

Watchers

Forks

Packages

No packages published