1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-07-07 20:02:50 +00:00

fix to RELHELL standalone

This commit is contained in:
Zeno Rogue 2025-06-25 00:28:34 +02:00
parent 878ee0c275
commit f642db223b

View File

@ -370,18 +370,28 @@ auto shot_hooks =
#ifdef RELHELL
auto hook1=
addHook(hooks_config, 100, [] {
default_settings();
set_config();
enable_canvas();
if(arg::curphase == 1)
if(arg::curphase == 1) {
conffile = "relhell.ini";
if(arg::curphase == 3) { showstartmenu = false; popScreenAll(); pushScreen(pick_the_game); }
}
if(arg::curphase == 2) {
set_config();
enable_canvas();
}
if(arg::curphase == 3) {
showstartmenu = false;
popScreenAll();
pushScreen(pick_the_game);
}
});
#else
auto hook2 = addHook(hooks_configfile, 300, default_settings);
#endif
auto hook2 = addHook(hooks_configfile, 300, default_settings)
+ arg::add3("-relhell", [] {
set_config();
enable_canvas();
showstartmenu = false; popScreenAll(); pushScreen(pick_the_game);
});
}
}