mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	fix to RELHELL standalone
This commit is contained in:
		| @@ -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) { | ||||||
|       set_config(); |  | ||||||
|       enable_canvas(); |  | ||||||
|       if(arg::curphase == 1) |  | ||||||
|         conffile = "relhell.ini"; |         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 | #endif | ||||||
|  |  | ||||||
|  | auto hook2 = addHook(hooks_configfile, 300, default_settings) | ||||||
|  |   + arg::add3("-relhell", [] { | ||||||
|  |       set_config(); | ||||||
|  |       enable_canvas(); | ||||||
|  |       showstartmenu = false; popScreenAll(); pushScreen(pick_the_game); | ||||||
|  |      }); | ||||||
|  |  | ||||||
| } | } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue