aboutsummaryrefslogtreecommitdiff
path: root/game/addons/openvic-plugin
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-07-21 18:02:38 +0200
committer GitHub <noreply@github.com>2023-07-21 18:02:38 +0200
commit40e412da4a11de97dda041287e306ca285c50ccf (patch)
treea0b28dffaba50d351cab1619f54516be23d2aa6f /game/addons/openvic-plugin
parentf3f240853b15a9f9b7cb561dc6626e7f342c5c74 (diff)
parent62d001b0fa209f259440e160503dc5ffe5bcaa8f (diff)
Merge pull request #142 from OpenVicProject/tidying
Tidying: missing req comments, submodules, hotkeys, user data folder
Diffstat (limited to 'game/addons/openvic-plugin')
-rw-r--r--game/addons/openvic-plugin/ReleaseExportEditorPlugin.gd8
1 files changed, 8 insertions, 0 deletions
diff --git a/game/addons/openvic-plugin/ReleaseExportEditorPlugin.gd b/game/addons/openvic-plugin/ReleaseExportEditorPlugin.gd
index 5deb761..0d7731b 100644
--- a/game/addons/openvic-plugin/ReleaseExportEditorPlugin.gd
+++ b/game/addons/openvic-plugin/ReleaseExportEditorPlugin.gd
@@ -25,6 +25,8 @@ func _export_file(path: String, type: String, features: PackedStringArray) -> vo
# Based on
# https://github.com/godotengine/godot/blob/6ef2f358c741c993b5cdc9680489e2c4f5da25cc/methods.py#L102-L133
+# REQUIREMENTS:
+# * UIFUN-298
var _cached_hash : StringName = &""
func _get_commit_hash() -> StringName:
if not _cached_hash.is_empty(): return _cached_hash
@@ -68,6 +70,8 @@ func _get_commit_hash() -> StringName:
return git_hash
+# REQUIREMENTS:
+# * UIFUN-296
func _try_get_tag() -> StringName:
var result : StringName = OS.get_environment("OPENVIC_TAG")
if result.is_empty():
@@ -84,6 +88,8 @@ func _get_commit_long():
_repo_hash = result
print("Hash: " + _repo_hash)
+# REQUIREMENTS:
+# * UIFUN-300
func _get_commit_short():
var result := _get_commit_hash().substr(0,7)
if not result.is_empty():
@@ -96,6 +102,8 @@ func _get_tag():
_repo_tag = result
print("Tag: " + _repo_tag)
+# REQUIREMENTS:
+# * UIFUN-295
func _get_release_name():
var result : StringName = OS.get_environment("OPENVIC_RELEASE")
if result.is_empty():