aboutsummaryrefslogtreecommitdiff
path: root/game/addons
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-05-17 20:11:57 +0200
committer GitHub <noreply@github.com>2023-05-17 20:11:57 +0200
commit6c7a1a7c8f55d92882d9364c0ad36a61a3f5614f (patch)
tree64dd37032c36da8e48d5d519ac840e11cc64dc58 /game/addons
parentaf6a96ed26bca3eaa28c6dca635918061fab7c80 (diff)
parent578eb8c332810656842f72e0bb94bb0d4dcb9f5e (diff)
Merge pull request #117 from OpenVicProject/openvic-rename
Changed from OpenVic2 to OpenVic
Diffstat (limited to 'game/addons')
-rw-r--r--game/addons/openvic-plugin/ReleaseExportEditorPlugin.gd (renamed from game/addons/openvic2-plugin/ReleaseExportEditorPlugin.gd)8
-rw-r--r--game/addons/openvic-plugin/openvic-plugin.gd (renamed from game/addons/openvic2-plugin/openvic2-plugin.gd)2
-rw-r--r--game/addons/openvic-plugin/plugin.cfg7
-rw-r--r--game/addons/openvic2-plugin/plugin.cfg7
4 files changed, 12 insertions, 12 deletions
diff --git a/game/addons/openvic2-plugin/ReleaseExportEditorPlugin.gd b/game/addons/openvic-plugin/ReleaseExportEditorPlugin.gd
index 4e03788..ac6c5bc 100644
--- a/game/addons/openvic2-plugin/ReleaseExportEditorPlugin.gd
+++ b/game/addons/openvic-plugin/ReleaseExportEditorPlugin.gd
@@ -6,7 +6,7 @@ var _repo_tag : StringName = "<tag missing>"
var _repo_release_name : StringName = "<release name missing>"
func _get_name():
- return "OpenVic2-ReleaseExportEditorPlugin"
+ return "OpenVic-ReleaseExportEditorPlugin"
func _export_file(path: String, type: String, features: PackedStringArray) -> void:
if path != "res://src/Utility/GIT_INFO.gd": return
@@ -29,7 +29,7 @@ var _cached_hash : StringName = &""
func _get_commit_hash() -> StringName:
if not _cached_hash.is_empty(): return _cached_hash
- var git_hash := OS.get_environment("OPENVIC2_COMMIT")
+ var git_hash := OS.get_environment("OPENVIC_COMMIT")
if not git_hash.is_empty():
_cached_hash = git_hash
return git_hash
@@ -69,7 +69,7 @@ func _get_commit_hash() -> StringName:
return git_hash
func _try_get_tag() -> StringName:
- var result : StringName = OS.get_environment("OPENVIC2_TAG")
+ var result : StringName = OS.get_environment("OPENVIC_TAG")
if result.is_empty():
var git_output := []
if OS.execute("git", ["describe", "--tags", "--abbrev=0"], git_output) == -1:
@@ -97,7 +97,7 @@ func _get_tag():
print("Tag: " + _repo_tag)
func _get_release_name():
- var result : StringName = OS.get_environment("OPENVIC2_RELEASE")
+ var result : StringName = OS.get_environment("OPENVIC_RELEASE")
if result.is_empty():
result = _try_get_tag()
if not result.is_empty():
diff --git a/game/addons/openvic2-plugin/openvic2-plugin.gd b/game/addons/openvic-plugin/openvic-plugin.gd
index 8cfa4e8..dec0312 100644
--- a/game/addons/openvic2-plugin/openvic2-plugin.gd
+++ b/game/addons/openvic-plugin/openvic-plugin.gd
@@ -1,7 +1,7 @@
@tool
extends EditorPlugin
-const ReleaseExportEditorPlugin := preload("res://addons/openvic2-plugin/ReleaseExportEditorPlugin.gd")
+const ReleaseExportEditorPlugin := preload("res://addons/openvic-plugin/ReleaseExportEditorPlugin.gd")
var release_export_editor_plugin := ReleaseExportEditorPlugin.new()
func _enter_tree() -> void:
diff --git a/game/addons/openvic-plugin/plugin.cfg b/game/addons/openvic-plugin/plugin.cfg
new file mode 100644
index 0000000..ee8ef07
--- /dev/null
+++ b/game/addons/openvic-plugin/plugin.cfg
@@ -0,0 +1,7 @@
+[plugin]
+
+name="OpenVicPlugin"
+description=""
+author=""
+version=""
+script="openvic-plugin.gd"
diff --git a/game/addons/openvic2-plugin/plugin.cfg b/game/addons/openvic2-plugin/plugin.cfg
deleted file mode 100644
index b3e5611..0000000
--- a/game/addons/openvic2-plugin/plugin.cfg
+++ /dev/null
@@ -1,7 +0,0 @@
-[plugin]
-
-name="OpenVic2Plugin"
-description=""
-author=""
-version=""
-script="openvic2-plugin.gd"