mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 05:31:01 +00:00 
			
		
		
		
	Pass engine name and version parts as proper strings
Removes the need for _MKSTR all over the place which has the drawback of converting _MKSTR(UNKNOWN_DEFINE) to "UKNOWN_DEFINE" instead of throwing a compilation error.
This commit is contained in:
		
							parent
							
								
									ecf80fbbba
								
							
						
					
					
						commit
						6947bed015
					
				
					 15 changed files with 28 additions and 31 deletions
				
			
		|  | @ -147,7 +147,7 @@ void EditorNode::_update_scene_tabs() { | |||
| void EditorNode::_update_title() { | ||||
| 
 | ||||
| 	String appname = ProjectSettings::get_singleton()->get("application/config/name"); | ||||
| 	String title = appname.empty() ? String(VERSION_FULL_NAME) : String(_MKSTR(VERSION_NAME) + String(" - ") + appname); | ||||
| 	String title = appname.empty() ? String(VERSION_FULL_NAME) : String(VERSION_NAME + String(" - ") + appname); | ||||
| 	String edited = editor_data.get_edited_scene_root() ? editor_data.get_edited_scene_root()->get_filename() : String(); | ||||
| 	if (!edited.empty()) | ||||
| 		title += " - " + String(edited.get_file()); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Rémi Verschelde
						Rémi Verschelde