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:
parent
8e80f4e8be
commit
fbbb889296
12 changed files with 17 additions and 17 deletions
6
Test.gd
6
Test.gd
|
@ -40,9 +40,9 @@ func _ready() -> void:
|
||||||
await core.complete_init()
|
await core.complete_init()
|
||||||
# Print information about CORE
|
# Print information about CORE
|
||||||
logger.info(await core.get_formatted_string("""Version information:
|
logger.info(await core.get_formatted_string("""Version information:
|
||||||
Release (semantic) = %release_semantic%
|
Release (semantic) = %version_semantic%
|
||||||
Release = %release%
|
Release = %version%
|
||||||
Typerelease = %release_type%
|
Typerelease = %version_type%
|
||||||
Type = %type%
|
Type = %type%
|
||||||
Type (technical) = %type_technical%
|
Type (technical) = %type_technical%
|
||||||
Development mode = %devmode%
|
Development mode = %devmode%
|
||||||
|
|
|
@ -23,11 +23,11 @@ extends Node
|
||||||
class_name Core
|
class_name Core
|
||||||
|
|
||||||
# Constants
|
# Constants
|
||||||
## The release number
|
## The version number
|
||||||
const version_release: int = 1
|
const version_version: int = 1
|
||||||
## The release type
|
## The version type
|
||||||
const version_type: CoreTypes.VersionType = CoreTypes.VersionType.BETA
|
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
|
const version_typerelease: int = 4
|
||||||
|
|
||||||
# Modules
|
# Modules
|
||||||
|
@ -92,12 +92,12 @@ func initialize_modules() -> void:
|
||||||
edl.name = "EasyDownLoader"
|
edl.name = "EasyDownLoader"
|
||||||
storage.name = "Storage"
|
storage.name = "Storage"
|
||||||
# Set scripts
|
# Set scripts
|
||||||
logger.set_script(ResourceLoader.load(basepath + "src/Logger.gd"))
|
logger.set_script(ResourceLoader.load(basepath + "src/logger.gd"))
|
||||||
misc.set_script(ResourceLoader.load(basepath + "src/Misc.gd"))
|
misc.set_script(ResourceLoader.load(basepath + "src/misc.gd"))
|
||||||
sms.set_script(ResourceLoader.load(basepath + "src/Sms.gd"))
|
sms.set_script(ResourceLoader.load(basepath + "src/sms.gd"))
|
||||||
logui.set_script(ResourceLoader.load(basepath + "src/Logui.gd"))
|
logui.set_script(ResourceLoader.load(basepath + "src/logui.gd"))
|
||||||
edl.set_script(ResourceLoader.load(basepath + "src/Edl.gd"))
|
edl.set_script(ResourceLoader.load(basepath + "src/edl.gd"))
|
||||||
storage.set_script(ResourceLoader.load(basepath + "src/Storage.gd"))
|
storage.set_script(ResourceLoader.load(basepath + "src/storage.gd"))
|
||||||
# Set reference to self
|
# Set reference to self
|
||||||
logger.core = self
|
logger.core = self
|
||||||
misc.core = self
|
misc.core = self
|
||||||
|
@ -254,10 +254,10 @@ func is_devmode() -> bool:
|
||||||
## - [code]%headless%[/code]: Returns the headless mode status
|
## - [code]%headless%[/code]: Returns the headless mode status
|
||||||
func get_formatted_string(string: String) -> String:
|
func get_formatted_string(string: String) -> String:
|
||||||
# Version strings
|
# Version strings
|
||||||
string = string.replace("%release%", str(version_release))
|
string = string.replace("%version%", str(version_version))
|
||||||
string = string.replace("%release_type%", str(version_typerelease))
|
string = string.replace("%version_type%", str(version_typerelease))
|
||||||
var semantic_version: Array[int] = get_version_semantic()
|
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):
|
match(version_type):
|
||||||
CoreTypes.VersionType.RELEASE:
|
CoreTypes.VersionType.RELEASE:
|
||||||
string = string.replace("%type%", "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.RELEASECANDIDATE: version_type_int = 2
|
||||||
CoreTypes.VersionType.BETA: version_type_int = 1
|
CoreTypes.VersionType.BETA: version_type_int = 1
|
||||||
CoreTypes.VersionType.ALPHA: version_type_int = 0
|
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
|
||||||
## Determines CORE's installation/base path[br]
|
## Determines CORE's installation/base path[br]
|
Loading…
Reference in a new issue