mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 05:31:01 +00:00 
			
		
		
		
	Flush remaining messages before quitting the game when loading fails
This change allows error messages to be printed in the editor debugger when the game fails on load, instead of displaying them in the console terminal only.
This commit is contained in:
		
							parent
							
								
									fa0e682027
								
							
						
					
					
						commit
						85a955fc56
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -2090,6 +2090,11 @@ void Main::cleanup() { | |||
| 
 | ||||
| 	ERR_FAIL_COND(!_start_success); | ||||
| 
 | ||||
| 	if (script_debugger) { | ||||
| 		// Flush any remaining messages
 | ||||
| 		script_debugger->idle_poll(); | ||||
| 	} | ||||
| 
 | ||||
| 	ResourceLoader::remove_custom_loaders(); | ||||
| 	ResourceSaver::remove_custom_savers(); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 PouleyKetchoupp
						PouleyKetchoupp