Skip to content

Instantly share code, notes, and snippets.

@vittee
Created August 19, 2015 09:48
Show Gist options
  • Save vittee/de6c70ed2b76fb8f725b to your computer and use it in GitHub Desktop.
Save vittee/de6c70ed2b76fb8f725b to your computer and use it in GitHub Desktop.
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