瀏覽代碼

Add godot version in backtrace message

lupoDharkael 6 年之前
父節點
當前提交
92ea1c3cca
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      main/main.cpp

+ 1 - 1
main/main.cpp

@@ -353,7 +353,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
 	ClassDB::register_class<Performance>();
 	ClassDB::register_class<Performance>();
 	engine->add_singleton(Engine::Singleton("Performance", performance));
 	engine->add_singleton(Engine::Singleton("Performance", performance));
 
 
-	GLOBAL_DEF("debug/settings/crash_handler/message", String("Please include this when reporting the bug on https://github.com/godotengine/godot/issues"));
+	GLOBAL_DEF("debug/settings/crash_handler/message", "Godot version: " + get_full_version_string() + String("\nPlease include this when reporting the bug on https://github.com/godotengine/godot/issues"));
 
 
 	MAIN_PRINT("Main: Parse CMDLine");
 	MAIN_PRINT("Main: Parse CMDLine");