1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-30 17:27:57 +00:00

load scores before showing custom modes

This commit is contained in:
Zeno Rogue
2024-06-02 18:00:47 +02:00
parent 00644cb2ef
commit 70747f938d
3 changed files with 19 additions and 11 deletions

View File

@@ -816,7 +816,7 @@ EX void showChangeMode() {
dialog::addItem(XLAT("highlights & achievements"), 'h');
dialog::add_action_push(mode_higlights);
dialog::addItem(XLAT("custom mode manager"), 'm');
dialog::add_action_push(show_custom);
dialog::add_action([] { scores::load_only(); pushScreen(show_custom); });
dialog::addBack();
dialog::display();
@@ -1262,7 +1262,9 @@ int read_menu_args() {
PHASEFROM(2); launch_dialog(showChangeMode);
}
else if(argis("-d:custom")) {
PHASEFROM(2); launch_dialog(show_custom);
PHASEFROM(3);
scores::load_only();
launch_dialog(show_custom);
}
else if(argis("-d:history")) {
PHASEFROM(2); launch_dialog(history::history_menu);