diff options
author | Simon Howard | 2008-11-09 16:39:12 +0000 |
---|---|---|
committer | Simon Howard | 2008-11-09 16:39:12 +0000 |
commit | e4aa75977e5a2e7ace5e7742193cfef427adaa77 (patch) | |
tree | d0fe54ad46f19873e560fdf5c21d59824c400c15 /src/hexen/h2_main.c | |
parent | 71d013a435a6801e82279acb0678a30b526d91ad (diff) | |
download | chocolate-doom-e4aa75977e5a2e7ace5e7742193cfef427adaa77.tar.gz chocolate-doom-e4aa75977e5a2e7ace5e7742193cfef427adaa77.tar.bz2 chocolate-doom-e4aa75977e5a2e7ace5e7742193cfef427adaa77.zip |
Recreate Hexen graphical startup in SDL.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1380
Diffstat (limited to 'src/hexen/h2_main.c')
-rw-r--r-- | src/hexen/h2_main.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/hexen/h2_main.c b/src/hexen/h2_main.c index 8a1622f8..f1d6ca90 100644 --- a/src/hexen/h2_main.c +++ b/src/hexen/h2_main.c @@ -159,6 +159,7 @@ void D_BindVariables(void) M_BindHereticControls(); M_BindHexenControls(); + M_BindVariable("graphical_startup", &graphical_startup); M_BindVariable("mouse_sensitivity", &mouseSensitivity); M_BindVariable("sfx_volume", &snd_MaxVolume); M_BindVariable("music_volume", &snd_MusicVolume); @@ -279,6 +280,8 @@ void D_DoomMain(void) HandleArgs(); + I_PrintStartupBanner("Hexen"); + ST_Message("MN_Init: Init menu system.\n"); MN_Init(); @@ -301,8 +304,6 @@ void D_DoomMain(void) ST_Message("ST_Init: Init startup screen.\n"); ST_Init(); - S_StartSongName("orb", true); - // Show version message now, so it's visible during R_Init() ST_Message("R_Init: Init Hexen refresh daemon"); R_Init(); @@ -330,6 +331,8 @@ void D_DoomMain(void) ST_Message("SB_Init: Loading patches.\n"); SB_Init(); + ST_Done(); + CheckRecordFrom(); p = M_CheckParm("-record"); @@ -490,9 +493,15 @@ static void ExecOptionPLAYDEMO(char **args, int tag) { char file[256]; - sprintf(file, "%s.lmp", args[1]); + strcpy(file, args[1]); + + if (strcasecmp(file + strlen(file) - 4, ".lmp") != 0) + { + strcat(file, ".lmp"); + } + W_AddFile(file); - ST_Message("Playing demo %s.lmp.\n", args[1]); + ST_Message("Playing demo %s.\n", file); } //========================================================================== @@ -820,6 +829,7 @@ static void CheckRecordFrom(void) G_LoadGame(atoi(myargv[p + 1])); G_DoLoadGame(); // Load the gameskill etc info from savegame G_RecordDemo(gameskill, 1, gameepisode, gamemap, myargv[p + 2]); + H2_GameLoop(); // Never returns } |