mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-01 06:01:14 +00:00 
			
		
		
		
	Fix crash on GDNative API json generator exit.
This commit is contained in:
		
							parent
							
								
									f6d5b2f3c2
								
							
						
					
					
						commit
						a4423c82f8
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -41,6 +41,8 @@ | |||
| #include "core/os/file_access.h" | ||||
| #include "core/os/os.h" | ||||
| 
 | ||||
| #include "main/main.h" | ||||
| 
 | ||||
| #include "scene/main/scene_tree.h" | ||||
| #include "scene/resources/resource_format_text.h" | ||||
| 
 | ||||
|  | @ -1248,6 +1250,7 @@ void NativeScriptLanguage::init() { | |||
| 		if (generate_c_api(E->next()->get()) != OK) { | ||||
| 			ERR_PRINT("Failed to generate C API\n"); | ||||
| 		} | ||||
| 		Main::cleanup(true); | ||||
| 		exit(0); | ||||
| 	} | ||||
| 
 | ||||
|  | @ -1257,6 +1260,7 @@ void NativeScriptLanguage::init() { | |||
| 		if (generate_c_builtin_api(E->next()->get()) != OK) { | ||||
| 			ERR_PRINT("Failed to generate C builtin API\n"); | ||||
| 		} | ||||
| 		Main::cleanup(true); | ||||
| 		exit(0); | ||||
| 	} | ||||
| #endif | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 bruvzg
						bruvzg