From 983d0be5920f43b281154a167693ceaad86d8da4 Mon Sep 17 00:00:00 2001 From: Matthew Wozniak Date: Sat, 16 Nov 2024 22:39:29 -0500 Subject: add 5288 support --- main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'main.c') 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); } -- cgit v1.2.3-54-g00ecf