diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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
|