Created
August 19, 2015 09:48
-
-
Save vittee/de6c70ed2b76fb8f725b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef int(__thiscall *gameui_runcmd)(void* _this, char *cmd); | |
void runSettings() { | |
HMODULE gameui = GetModuleHandle("GameUI.dll"); | |
gameui_runcmd runcmd_func = (gameui_runcmd) ((uintptr_t) gameui + 0x2D1E0); | |
void *gameui_instance = (void*) ((uintptr_t)gameui + 0xC5184); | |
// | |
runcmd_func(gameui_instance, "OpenOptionsDialog"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment