1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 01:00:25 +00:00

nilrider:: save config

This commit is contained in:
Zeno Rogue 2022-08-20 16:44:41 +02:00
parent 121b3f2d58
commit 764afbcd11

View File

@ -377,6 +377,15 @@ void settings() {
dialog::add_key_action('r', [] {
pushScreen(showSettings);
});
#if CAP_FILES && !ISWEB
dialog::addItem("save the current config", 's');
dialog::add_action([] {
dynamicval<eGeometry> g(geometry, gNormal);
saveConfig();
});
#endif
dialog::addBreak(100);
dialog::addBack();
dialog::display();