Make all scripts lowercase again

I am stupid.
I changed 'release_' to 'version_' in src/core.gd and Test.gd btw.
This commit is contained in:
JeremyStar™ 2024-03-28 12:54:12 +01:00
parent 8167c3161f
commit 2485edfd87
12 changed files with 17 additions and 17 deletions

View file

@ -40,9 +40,9 @@ func _ready() -> void:
await core.complete_init()
# Print information about CORE
logger.info(await core.get_formatted_string("""Version information:
Release (semantic) = %release_semantic%
Release = %release%
Typerelease = %release_type%
Release (semantic) = %version_semantic%
Release = %version%
Typerelease = %version_type%
Type = %type%
Type (technical) = %type_technical%
Development mode = %devmode%

View file

@ -23,11 +23,11 @@ extends Node
class_name Core
# Constants
## The release number
const version_release: int = 1
## The release type
## The version number
const version_version: int = 1
## The version type
const version_type: CoreTypes.VersionType = CoreTypes.VersionType.BETA
## The release type number. Resets on every new release and release type.
## The version type number. Resets on every new version and version type.
const version_typerelease: int = 4
# Modules
@ -92,12 +92,12 @@ func initialize_modules() -> void:
edl.name = "EasyDownLoader"
storage.name = "Storage"
# Set scripts
logger.set_script(ResourceLoader.load(basepath + "src/Logger.gd"))
misc.set_script(ResourceLoader.load(basepath + "src/Misc.gd"))
sms.set_script(ResourceLoader.load(basepath + "src/Sms.gd"))
logui.set_script(ResourceLoader.load(basepath + "src/Logui.gd"))
edl.set_script(ResourceLoader.load(basepath + "src/Edl.gd"))
storage.set_script(ResourceLoader.load(basepath + "src/Storage.gd"))
logger.set_script(ResourceLoader.load(basepath + "src/logger.gd"))
misc.set_script(ResourceLoader.load(basepath + "src/misc.gd"))
sms.set_script(ResourceLoader.load(basepath + "src/sms.gd"))
logui.set_script(ResourceLoader.load(basepath + "src/logui.gd"))
edl.set_script(ResourceLoader.load(basepath + "src/edl.gd"))
storage.set_script(ResourceLoader.load(basepath + "src/storage.gd"))
# Set reference to self
logger.core = self
misc.core = self
@ -254,10 +254,10 @@ func is_devmode() -> bool:
## - [code]%headless%[/code]: Returns the headless mode status
func get_formatted_string(string: String) -> String:
# Version strings
string = string.replace("%release%", str(version_release))
string = string.replace("%release_type%", str(version_typerelease))
string = string.replace("%version%", str(version_version))
string = string.replace("%version_type%", str(version_typerelease))
var semantic_version: Array[int] = get_version_semantic()
string = string.replace("%release_semantic%", str(semantic_version[0]) + "." + str(semantic_version[1]) + "." + str(semantic_version[2]))
string = string.replace("%version_semantic%", str(semantic_version[0]) + "." + str(semantic_version[1]) + "." + str(semantic_version[2]))
match(version_type):
CoreTypes.VersionType.RELEASE:
string = string.replace("%type%", "Release")
@ -293,7 +293,7 @@ func get_version_semantic() -> Array[int]:
CoreTypes.VersionType.RELEASECANDIDATE: version_type_int = 2
CoreTypes.VersionType.BETA: version_type_int = 1
CoreTypes.VersionType.ALPHA: version_type_int = 0
return [version_release, version_type_int, version_typerelease]
return [version_version, version_type_int, version_typerelease]
# Determines CORE's installation/base path
## Determines CORE's installation/base path[br]