aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/main.c b/main.c
index 440e9c3..0761665 100644
--- a/main.c
+++ b/main.c
@@ -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);
}