summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 94896ca)
raw | patch | inline | side by side (parent: 94896ca)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Fri, 18 Aug 2017 15:07:38 +0000 (18:07 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Fri, 18 Aug 2017 18:29:11 +0000 (21:29 +0300) |
src/game/g_menu.pas | patch | blob | history | |
src/game/g_options.pas | patch | blob | history |
diff --git a/src/game/g_menu.pas b/src/game/g_menu.pas
index 298fab8c2b0f033fca626e3cc70f54e2711e49f1..d8619f34fe0ed793f57a66838edb56f04d193613 100644 (file)
--- a/src/game/g_menu.pas
+++ b/src/game/g_menu.pas
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 2efcb174ed9d39daf56fac8fe094f81cebfc2bab..1644928c89dea12d8de0f22be94800970d6d9a4d 100644 (file)
--- a/src/game/g_options.pas
+++ b/src/game/g_options.pas
gsSDLBufferSize: Integer = 2048;
gSFSDebug: Boolean = False;
gSFSFastMode: Boolean = False;
+ gDefaultMegawadStart: AnsiString = 'megawads/DOOM2D.WAD:\MAP01';
implementation
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', '');
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);