make diva.exe exit cleanly (with double-tap esc)

This commit is contained in:
somewhatlurker
2019-09-03 01:07:25 +10:00
parent 2f7375c5e7
commit 0e937ce4e2
2 changed files with 4 additions and 1 deletions
@@ -296,7 +296,7 @@ namespace TLAC::Components
inputKey = 0x20;
if (keyboard->IsDoubleTapped(VK_ESCAPE))
exit(0);
((void(*)(unsigned int, int, int))DOEXIT_ADDRESS)(0, 0, 0);
return inputKey;
}
@@ -82,6 +82,9 @@ constexpr uint64_t GET_SLIDER_TAPPED_ADDRESS = 0x0000000140618C60;
constexpr uint64_t GET_SLIDER_RELEASED_ADDRESS = 0x0000000140618C40;
constexpr uint64_t GET_SLIDER_DOWN_ADDRESS = 0x0000000140618C20;
constexpr uint64_t SHOULD_EXIT_BOOL_ADDRESS = 0x0000000140EDA6B0;
constexpr uint64_t DOEXIT_ADDRESS = 0x000000014085B574;
#define XINPUT_A 0x00
#define XINPUT_B 0x01
#define XINPUT_X 0x02