From f1bde3d5212cab46aa9f40bec29e8a72013f8a41 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Fri, 5 Apr 2013 21:01:45 +0000 Subject: Use two-stage startup for Hexen, and add netgame startup callback for the spinal loading screen. Subversion-branch: /branches/v2-branch Subversion-revision: 2585 --- src/hexen/h2_main.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'src/hexen/h2_main.c') diff --git a/src/hexen/h2_main.c b/src/hexen/h2_main.c index 3d9ae87d..7b7a8168 100644 --- a/src/hexen/h2_main.c +++ b/src/hexen/h2_main.c @@ -76,6 +76,7 @@ typedef struct // EXTERNAL FUNCTION PROTOTYPES -------------------------------------------- void R_ExecuteSetViewSize(void); +void D_ConnectNetGame(void); void D_CheckNetGame(void); boolean F_Responder(event_t * ev); void I_StartupKeyboard(void); @@ -331,11 +332,6 @@ void D_DoomMain(void) ST_Message("MN_Init: Init menu system.\n"); MN_Init(); -#ifdef FEATURE_MULTIPLAYER - ST_Message("NET_Init: Init networking subsystem.\n"); - NET_Init(); -#endif - ST_Message("CT_Init: Init chat mode data.\n"); CT_Init(); @@ -351,6 +347,12 @@ void D_DoomMain(void) I_InitTimer(); I_InitJoystick(); +#ifdef FEATURE_MULTIPLAYER + ST_Message("NET_Init: Init networking subsystem.\n"); + NET_Init(); +#endif + D_ConnectNetGame(); + S_Init(); S_Start(); @@ -372,17 +374,14 @@ void D_DoomMain(void) // MAPINFO.TXT script must be already processed. WarpCheck(); - ST_Done(); - - // Netgame start must be here, after the splash screen has finished. ST_Message("D_CheckNetGame: Checking network game status.\n"); D_CheckNetGame(); - // SB_Init has been moved here; the status bar must be initialized - // *after* the netgame has started. ST_Message("SB_Init: Loading patches.\n"); SB_Init(); + ST_Done(); + if (autostart) { ST_Message("Warp to Map %d (\"%s\":%d), Skill %d\n", -- cgit v1.2.3