generated from krampus/template-godot4
Revised debug version overlay to only try populating advanced info when running from editor
This commit is contained in:
parent
4854fd0aab
commit
dd15c88585
@ -9,6 +9,8 @@ func _ready() -> void:
|
||||
# Fall back on baked version info
|
||||
text = Game.settings.version
|
||||
|
||||
# Try to expand on version number if running from the editor
|
||||
if OS.has_feature("editor"):
|
||||
var output: Array[String] = []
|
||||
var status := OS.execute("git", ["describe", "--always", "HEAD"], output)
|
||||
if status == 0:
|
||||
|
Loading…
x
Reference in New Issue
Block a user