aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorGravatar Matthew Wozniak <me@woz.blue> 2024-11-16 22:39:29 -0500
committerGravatar Matthew Wozniak <me@woz.blue> 2024-11-16 22:39:29 -0500
commit983d0be5920f43b281154a167693ceaad86d8da4 (patch)
tree971d36825bf5762c979f21be610cabb04f5b8b27 /main.c
parentde0cd8796d835061898edb3ea89d9a3c84df859f (diff)
downloadrt-983d0be5920f43b281154a167693ceaad86d8da4.tar.gz
rt-983d0be5920f43b281154a167693ceaad86d8da4.zip
add 5288 support
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);
}