1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-08 13:25:59 +00:00

added some missing guards for CAP_RACING and CAP_COMMANDLINE

This commit is contained in:
Zeno Rogue
2022-07-12 13:19:18 +02:00
parent de5e0505a3
commit ff16f35e0b
4 changed files with 22 additions and 0 deletions

View File

@@ -1737,8 +1737,10 @@ EX void choose() {
dialog::openFileDialog(tes, XLAT("open a tiling"), ".tes",
[] () {
run(tes);
#if CAP_COMMANDLINE
if(!current.options.empty())
dialog::push_confirm_dialog([] { arg::run_arguments(current.options); start_game(); }, "load the settings defined in this file?");
#endif
return true;
});
}