Add fork indicator to match SOSVS v1
This commit is contained in:
parent
4f1e263708
commit
bfd53f46b1
1 changed files with 3 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue