make diva.exe exit cleanly (with double-tap esc)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user