1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-04 11:37:55 +00:00

allow_reset_config can now be disabled

This commit is contained in:
Zeno Rogue
2025-08-28 10:12:17 +02:00
parent 507b290a81
commit b360f33747

View File

@@ -3887,6 +3887,8 @@ EX void show_color_dialog() {
}
#if CAP_CONFIG
EX bool allow_reset_config = true;
EX void resetConfigMenu() {
cmode = sm::VR_MENU | sm::NOSCR;
gamescreen();
@@ -4217,8 +4219,10 @@ EX void showSettings() {
dialog::addItem(XLAT("save the current config"), 's');
dialog::add_action(saveConfig);
dialog::addItem(XLAT("reset all configuration"), 'R');
dialog::add_action_push(resetConfigMenu);
if(allow_reset_config) {
dialog::addItem(XLAT("reset all configuration"), 'R');
dialog::add_action_push(resetConfigMenu);
}
#endif
if(getcstat == 's') mouseovers = XLAT("Config file: %1", conffile);