diff options
author | Matthew Wozniak <me@woz.blue> | 2024-11-16 22:39:29 -0500 |
---|---|---|
committer | Matthew Wozniak <me@woz.blue> | 2024-11-16 22:39:29 -0500 |
commit | 983d0be5920f43b281154a167693ceaad86d8da4 (patch) | |
tree | 971d36825bf5762c979f21be610cabb04f5b8b27 /main.c | |
parent | de0cd8796d835061898edb3ea89d9a3c84df859f (diff) | |
download | rt-983d0be5920f43b281154a167693ceaad86d8da4.tar.gz rt-983d0be5920f43b281154a167693ceaad86d8da4.zip |
add 5288 support
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -70,9 +70,10 @@ void WINAPI *hook_LoadLibraryExA(const char *filename, void *hfile, int flags) { const char *basename = filename; for (const char *p = filename; *p; p++) if (*p == '\\') basename = p + 1; - - if (!strcmp(basename, "gameui.dll")) { - if (!api_init()) die("couldn't get apis"); + if (!strcmp(basename, "gameui.dll") || !strcmp(basename, "GameUI.dll")) { + if (!api_init(basename[0] == 'G')) + die("couldn't get apis"); + cbuf_addtext("echo THIS WORKS!!!!!!!!!!!!;"); orig_cbuf_addtext = (void (*)(char *)) hook_inline((void *)cbuf_addtext, (void *)hook_cbuf_addtext); } |