mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	log exceptions not caught
This commit is contained in:
		| @@ -77,6 +77,7 @@ EX void hyper_loop() { | ||||
|   } | ||||
|  | ||||
| EX int hyper_main(int argc, char **argv) { | ||||
|   try { | ||||
|   if(!hyper_init(argc, argv)) return 0; | ||||
| #if !ISWEB | ||||
|   if(showstartmenu && !vid.skipstart) { | ||||
| @@ -89,6 +90,10 @@ EX int hyper_main(int argc, char **argv) { | ||||
|   progress_warning(); | ||||
|   mainloop(); | ||||
|   finishAll(); | ||||
|   } catch(hr_exception& e) { | ||||
|     println(hlog, "exception not caught: ", e.what()); | ||||
|     } | ||||
|   fflush(stdout); | ||||
|   return 0; | ||||
|   } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue