1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-07-07 11:52:51 +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 #ifdef RELHELL
auto hook1= auto hook1=
addHook(hooks_config, 100, [] { addHook(hooks_config, 100, [] {
default_settings(); if(arg::curphase == 1) {
conffile = "relhell.ini";
}
if(arg::curphase == 2) {
set_config(); set_config();
enable_canvas(); enable_canvas();
if(arg::curphase == 1) }
conffile = "relhell.ini"; if(arg::curphase == 3) {
if(arg::curphase == 3) { showstartmenu = false; popScreenAll(); pushScreen(pick_the_game); } showstartmenu = false;
popScreenAll();
pushScreen(pick_the_game);
}
}); });
#else
auto hook2 = addHook(hooks_configfile, 300, default_settings);
#endif #endif
auto hook2 = addHook(hooks_configfile, 300, default_settings)
+ arg::add3("-relhell", [] {
set_config();
enable_canvas();
showstartmenu = false; popScreenAll(); pushScreen(pick_the_game);
});
} }
} }