From bfd53f46b1bdbca92d332b2bd41dcf3ed133b12a Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Fri, 26 Apr 2024 19:54:16 +0200 Subject: [PATCH] Add fork indicator to match SOSVS v1 --- src/core.gd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core.gd b/src/core.gd index 197fd70..b642365 100644 --- a/src/core.gd +++ b/src/core.gd @@ -29,6 +29,8 @@ const version_version: int = 1 const version_type: CoreTypes.VersionType = CoreTypes.VersionType.RELEASE ## The version type number. Resets on every new version and version type. const version_typerelease: int = 1 +## The fork indicator. Update this if you intend on soft or hard forking this framework. +const version_fork: String = "" # Modules ## Used internally for loading, managing and unloading modules. @@ -360,6 +362,7 @@ func get_formatted_string(string: String) -> String: # Version strings string = string.replace("%version%", str(version_version)) string = string.replace("%version_typerelease%", str(version_typerelease)) + string = string.replace("%version_fork%", "" if version_fork == "" else "-" + version_fork) var semantic_version: Array[int] = get_version_semantic() string = string.replace("%version_semantic%", str(semantic_version[0]) + "." + str(semantic_version[1]) + "." + str(semantic_version[2])) match(version_type):