From: Ketmar Dark Date: Fri, 18 Aug 2017 15:07:38 +0000 (+0300) Subject: hidden "Game/DefaultMegawadStart" option to change default playing wads X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=ca040c47365ab1d900328e3d525def33202c8036;p=d2df-sdl.git hidden "Game/DefaultMegawadStart" option to change default playing wads --- diff --git a/src/game/g_menu.pas b/src/game/g_menu.pas index 298fab8..d8619f3 100644 --- a/src/game/g_menu.pas +++ b/src/game/g_menu.pas @@ -1124,12 +1124,12 @@ end; procedure ProcSingle1Player(); begin - g_Game_StartSingle('megawads/DOOM2D.WAD:\MAP01', False, 1); + g_Game_StartSingle(gDefaultMegawadStart, False, 1); end; procedure ProcSingle2Players(); begin - g_Game_StartSingle('megawads/DOOM2D.WAD:\MAP01', True, 2); + g_Game_StartSingle(gDefaultMegawadStart, True, 2); end; procedure ProcSelectMapMenu(); diff --git a/src/game/g_options.pas b/src/game/g_options.pas index 2efcb17..1644928 100644 --- a/src/game/g_options.pas +++ b/src/game/g_options.pas @@ -126,6 +126,7 @@ var gsSDLBufferSize: Integer = 2048; gSFSDebug: Boolean = False; gSFSFastMode: Boolean = False; + gDefaultMegawadStart: AnsiString = 'megawads/DOOM2D.WAD:\MAP01'; implementation @@ -432,6 +433,7 @@ begin gSFSFastMode := config.ReadBool('Game', 'SFSFastMode', False); wadoptFast := gSFSFastMode; e_FastScreenshots := config.ReadBool('Game', 'FastScreenshots', True); + gDefaultMegawadStart := config.ReadStr('Game', 'DefaultMegawadStart', 'megawads/DOOM2D.WAD:\MAP01'); // Ãåéìïëåé â ñâîåé èãðå gcMap := config.ReadStr('GameplayCustom', 'Map', ''); @@ -668,6 +670,7 @@ begin config.WriteBool('Game', 'SFSDebug', gSFSDebug); config.WriteBool('Game', 'SFSFastMode', gSFSFastMode); config.WriteBool('Game', 'FastScreenshots', e_FastScreenshots); + config.WriteStr('Game', 'DefaultMegawadStart', gDefaultMegawadStart); config.WriteStr ('GameplayCustom', 'Map', gcMap); config.WriteStr ('GameplayCustom', 'GameMode', gcGameMode);