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

mode changes moved to config.cpp

This commit is contained in:
Zeno Rogue 2018-07-20 00:07:30 +02:00
parent 9d682aee45
commit 262d6f2a92
3 changed files with 12 additions and 10 deletions

View File

@ -91,16 +91,6 @@ int arg::readCommon() {
else if(argis("-font")) { PHASE(1); shift(); fontpath = args(); }
#endif
// mode changes:
TOGGLE('o', vid.usingGL, switchGL())
TOGGLE('C', chaosmode, stop_game_and_switch_mode(rg::chaos))
TOGGLE('f', vid.full, switchFullscreen())
TOGGLE('S', shmup::on, stop_game_and_switch_mode(rg::shmup))
TOGGLE('H', hardcore, switchHardcore())
TOGGLE('R', randomPatternsMode, stop_game_and_switch_mode(rg::randpattern))
TOGGLE('i', inv::on, stop_game_and_switch_mode(rg::inv))
else if(argis("-test"))
callhooks(hooks_tests);
else if(argis("-offline")) {

View File

@ -1445,6 +1445,17 @@ int read_config_args() {
else if(argis("-els")) {
shift(); conformal::extra_line_steps = argf();
}
// mode changes:
TOGGLE('o', vid.usingGL, switchGL())
TOGGLE('C', chaosmode, stop_game_and_switch_mode(rg::chaos))
TOGGLE('f', vid.full, switchFullscreen())
TOGGLE('S', shmup::on, stop_game_and_switch_mode(rg::shmup))
TOGGLE('H', hardcore, switchHardcore())
TOGGLE('R', randomPatternsMode, stop_game_and_switch_mode(rg::randpattern))
TOGGLE('i', inv::on, stop_game_and_switch_mode(rg::inv))
else return 1;
return 0;
}

View File

@ -3712,4 +3712,5 @@ extern bool need_reset_geometry;
extern ld hexshift;
extern bool noshadow, bright, nohelp, dont_face_pc;
extern void switchHardcore();
}