summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Hilbrunner <mhilbrunner@users.noreply.github.com>2019-05-29 11:04:20 +0200
committerGitHub <noreply@github.com>2019-05-29 11:04:20 +0200
commit7a8dcb9a114d742f9bc1e269d738903c00729b8b (patch)
treef6321d03b9c8d7c67d77d218f07e9a8e6890c83b
parentc71f9b29ff914eefbd382fba05c3d45a889aeee0 (diff)
parentb10dd110e525ee7ce2dcf7721a51c93d782347de (diff)
Merge pull request #29244 from akien-mga/main-print-version
Print engine version to stdout when starting Godot
-rw-r--r--main/main.cpp6
-rw-r--r--methods.py1
-rw-r--r--version.py1
3 files changed, 7 insertions, 1 deletions
diff --git a/main/main.cpp b/main/main.cpp
index fdb5bca624..63ce165d80 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -204,7 +204,8 @@ void finalize_physics() {
void Main::print_help(const char *p_binary) {
- print_line(String(VERSION_NAME) + " v" + get_full_version_string() + " - https://godotengine.org");
+ print_line(String(VERSION_NAME) + " v" + get_full_version_string() + " - " + String(VERSION_WEBSITE));
+ OS::get_singleton()->print("Free and open source software under the terms of the MIT license.\n");
OS::get_singleton()->print("(c) 2007-2019 Juan Linietsky, Ariel Manzur.\n");
OS::get_singleton()->print("(c) 2014-2019 Godot Engine contributors.\n");
OS::get_singleton()->print("\n");
@@ -1091,6 +1092,9 @@ error:
Error Main::setup2(Thread::ID p_main_tid_override) {
+ // Print engine name and version
+ print_line(String(VERSION_NAME) + " v" + get_full_version_string() + " - " + String(VERSION_WEBSITE));
+
if (p_main_tid_override) {
Thread::_main_thread_id = p_main_tid_override;
}
diff --git a/methods.py b/methods.py
index 11efd68ce4..af20619416 100644
--- a/methods.py
+++ b/methods.py
@@ -61,6 +61,7 @@ def update_version(module_version_string=""):
f.write("#define VERSION_BUILD \"" + str(build_name) + "\"\n")
f.write("#define VERSION_MODULE_CONFIG \"" + str(version.module_config) + module_version_string + "\"\n")
f.write("#define VERSION_YEAR " + str(version.year) + "\n")
+ f.write("#define VERSION_WEBSITE \"" + str(version.website) + "\"\n")
f.close()
# NOTE: It is safe to generate this file here, since this is still executed serially
diff --git a/version.py b/version.py
index 3d7def727d..09219f60ad 100644
--- a/version.py
+++ b/version.py
@@ -5,3 +5,4 @@ minor = 2
status = "dev"
module_config = ""
year = 2019
+website = "https://godotengine.org"