You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Core: Move generated VERSION_HASH to a .cpp file
This lets us have its definition in `core/version.h` and avoid rebuilding a handful of files every time the commit hash changes.
This commit is contained in:
@@ -50,7 +50,6 @@
|
||||
#include "core/register_core_types.h"
|
||||
#include "core/string/translation.h"
|
||||
#include "core/version.h"
|
||||
#include "core/version_hash.gen.h"
|
||||
#include "drivers/register_driver_types.h"
|
||||
#include "main/app_icon.gen.h"
|
||||
#include "main/main_timer_sync.h"
|
||||
@@ -200,7 +199,7 @@ static String unescape_cmdline(const String &p_str) {
|
||||
|
||||
static String get_full_version_string() {
|
||||
String hash = String(VERSION_HASH);
|
||||
if (hash.length() != 0) {
|
||||
if (!hash.is_empty()) {
|
||||
hash = "." + hash.left(9);
|
||||
}
|
||||
return String(VERSION_FULL_BUILD) + hash;
|
||||
|
||||
Reference in New Issue
Block a user