Skip to content

Commit

Permalink
Menu option to not show the \'Game Saved.\' confirmation message afte…
Browse files Browse the repository at this point in the history
…r saving.
  • Loading branch information
JadingTsunami committed Apr 17, 2024
1 parent fb5f139 commit e2919dc
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
10 changes: 7 additions & 3 deletions prboom2/src/g_game.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ mobj_t **bodyque = 0; // phares 8/10/98

dboolean organize_saves;
dboolean skip_quicksaveload_confirmation;
dboolean no_save_message;
dboolean enable_time_warping;
dboolean autoload_timeline;
dboolean autosave_timeline_on_exit;
Expand Down Expand Up @@ -2610,9 +2611,12 @@ static void G_DoSaveGame (dboolean menu)
}
}

doom_printf( "%s", M_WriteFile(name, savebuffer, save_p - savebuffer)
? s_GGSAVED /* Ty - externalised */
: "Game save failed!"); // CPhipps - not externalised
if (M_WriteFile(name, savebuffer, save_p - savebuffer)) {
if (!no_save_message)
doom_printf( "%s", s_GGSAVED);
} else {
doom_printf( "%s", "Game save failed!"); // CPhipps - not externalised
}

/* Print some information about the save game */
if (gamemode == commercial)
Expand Down
1 change: 1 addition & 0 deletions prboom2/src/g_game.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ extern int bodyquesize; // killough 2/8/98: adustable corpse limit

extern dboolean organize_saves;
extern dboolean skip_quicksaveload_confirmation;
extern dboolean no_save_message;
extern dboolean enable_time_warping;
extern dboolean autoload_timeline;
extern dboolean autosave_timeline_on_exit;
Expand Down
9 changes: 5 additions & 4 deletions prboom2/src/m_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -3339,10 +3339,11 @@ setup_menu_t gen_settings_prboomx[] = { // prboomX General Settings
{"Enhanced allmap power up" ,S_YESNO ,m_null,G_X,G_Y+3*8, {"map_enhanced_allmap"}},
{"Player map arrow appearance", S_CHOICE ,m_null,G_X,G_Y+4*8, {"map_player_arrow_appearance"}, 0, 0, NULL, map_player_arrow_appearance_list},
{"Skip QuickSave/Load confirmation" ,S_YESNO ,m_null,G_X,G_Y+5*8, {"skip_quicksaveload_confirmation"}},
{"Enable Time Warping" ,S_YESNO ,m_null,G_X,G_Y+6*8, {"enable_time_warping"}},
{"Autoload Time Warp Timelines" ,S_YESNO ,m_null,G_X,G_Y+7*8, {"autoload_timeline"}},
{"Autosave Timeline upon Quit" ,S_YESNO ,m_null,G_X,G_Y+8*8, {"autosave_timeline_on_exit"}},
{"Fix Blockmap bug" ,S_YESNO ,m_null,G_X,G_Y+9*8, {"comp_fix_blockmap"}},
{"No Save confirmation message" ,S_YESNO ,m_null,G_X,G_Y+6*8, {"no_save_message"}},
{"Enable Time Warping" ,S_YESNO ,m_null,G_X,G_Y+7*8, {"enable_time_warping"}},
{"Autoload Time Warp Timelines" ,S_YESNO ,m_null,G_X,G_Y+8*8, {"autoload_timeline"}},
{"Autosave Timeline upon Quit" ,S_YESNO ,m_null,G_X,G_Y+9*8, {"autosave_timeline_on_exit"}},
{"Fix Blockmap bug" ,S_YESNO ,m_null,G_X,G_Y+10*8, {"comp_fix_blockmap"}},

{"<- PREV",S_SKIP|S_PREV, m_null,KB_PREV, KB_Y+20*8, {gen_settings1}},
{"NEXT ->",S_SKIP|S_NEXT,m_null,KB_NEXT,KB_Y+20*8, {gen_settings2}},
Expand Down
1 change: 1 addition & 0 deletions prboom2/src/m_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ default_t defaults[] =
def_int,ss_stat},
{"boom_autoswitch", {(int*)&boom_autoswitch}, {1}, 0, 1, def_bool, ss_none},
{"skip_quicksaveload_confirmation", {(int*)&skip_quicksaveload_confirmation}, {0},0,1,def_bool,ss_auto},
{"no_save_message", {(int*)&no_save_message}, {0},0,1,def_bool,ss_auto},
{"enable_time_warping", {(int*)&enable_time_warping}, {0},0,1,def_bool,ss_auto},
{"autoload_timeline", {(int*)&autoload_timeline}, {0},0,1,def_bool,ss_auto},
{"autosave_timeline_on_exit", {(int*)&autosave_timeline_on_exit}, {0},0,1,def_bool,ss_auto},
Expand Down

0 comments on commit e2919dc

Please sign in to comment.