aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorGravatar Matthew Wozniak <me@woz.blue> 2024-11-03 00:16:00 -0400
committerGravatar Matthew Wozniak <me@woz.blue> 2024-11-03 00:16:00 -0400
commitd00096fe2ea3dd64cff9878879c077f23a783e4a (patch)
tree38da364a01d63d8796dc5c38b20ff73539ac1c82 /main.c
parenta2f7e37d8adf2047e1f3b0ea1227ac9d51514783 (diff)
downloadrt-d00096fe2ea3dd64cff9878879c077f23a783e4a.tar.gz
rt-d00096fe2ea3dd64cff9878879c077f23a783e4a.zip
find videomode
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 1 insertions, 4 deletions
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