]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
Detect appended data to the DP executable.
[xonotic/darkplaces.git] / host.c
diff --git a/host.c b/host.c
index f90173f3413e332f615abb4f8cbd4babf4753743..e51b3914fe6909cb8b40724cd3bab835e5888e47 100644 (file)
--- a/host.c
+++ b/host.c
@@ -1006,6 +1006,7 @@ qboolean sys_nostdout = false;
 extern void u8_Init(void);
 extern void Render_Init(void);
 extern void Mathlib_Init(void);
+extern void FS_Init_SelfPack(void);
 extern void FS_Init(void);
 extern void FS_Shutdown(void);
 extern void PR_Cmd_Init(void);
@@ -1083,6 +1084,9 @@ static void Host_Init (void)
        // initialize console window (only used by sys_win.c)
        Sys_InitConsole();
 
+       // initialize the self-pack (must be before COM_InitGameType as it may add command line options)
+       FS_Init_SelfPack();
+
        // detect gamemode from commandline options or executable name
        COM_InitGameType();