diff options
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); } |