From d00096fe2ea3dd64cff9878879c077f23a783e4a Mon Sep 17 00:00:00 2001 From: Matthew Wozniak Date: Sun, 3 Nov 2024 00:16:00 -0400 Subject: find videomode --- main.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 376c615..47f6dec 100644 --- a/main.c +++ b/main.c @@ -13,10 +13,8 @@ void (*orig_cbuf_addtext)(char *); void hook_cbuf_addtext(char *str) { orig_cbuf_addtext(str); - info("%s", str); // this is the last thing that happens when the game is opened if (!strcmp(str, "exec modsettings.cfg mod\n")) { - demoplayer->vt->start_playback(demoplayer, "demo.dem", false); } } @@ -36,7 +34,6 @@ 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; - info("loaded %s", basename); if (!strcmp(basename, "engine.dll")) { if (!api_init()) die("couldn't get apis"); @@ -49,7 +46,7 @@ void WINAPI *hook_LoadLibraryExA(const char *filename, void *hfile, int flags) { typedef int (*LauncherMain_t)(void *instance, void *prev_inst, char *cmdline, int cmd_show); -int main(/* int argc, char **argv */) { +int main(void/* int argc, char **argv */) { SetDllDirectoryA("bin/"); // TODO: make this changeable by the user -- cgit v1.2.3-54-g00ecf