Skip to content

Commit 4a7b512

Browse files
authored
style: 🎨 added and removed whitespace (#292)
* style: 🎨 added and removed whitespace * fix: ✏️ updated comment for profile and cache path * style: 🎨 added space to params and return types
1 parent 97de024 commit 4a7b512

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

addons/mod_loader/api/mod.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,4 +171,4 @@ static func is_mod_loaded(mod_id: String) -> bool:
171171
if not ModLoaderStore.mod_data.has(mod_id) or not ModLoaderStore.mod_data[mod_id].is_loadable:
172172
return false
173173

174-
return true
174+
return true

addons/mod_loader/internal/script_extension.gd

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,36 +43,37 @@ static func handle_script_extensions() -> void:
4343

4444
# Inner class so the sort function can be called by handle_script_extensions()
4545
class InheritanceSorting:
46-
47-
static func _check_inheritances(extension_a:ScriptExtensionData, extension_b:ScriptExtensionData)->bool:
46+
47+
static func _check_inheritances(extension_a: ScriptExtensionData, extension_b: ScriptExtensionData) -> bool:
4848
var a_stack := []
4949
var parent_script: Script = load(extension_a.extension_path)
5050
while parent_script:
5151
a_stack.push_front(parent_script.resource_path)
5252
parent_script = parent_script.get_base_script()
5353
a_stack.pop_back()
54-
54+
5555
var b_stack := []
5656
parent_script = load(extension_b.extension_path)
5757
while parent_script:
5858
b_stack.push_front(parent_script.resource_path)
5959
parent_script = parent_script.get_base_script()
6060
b_stack.pop_back()
61-
61+
6262
var last_index: int
6363
for index in a_stack.size():
6464
if index >= b_stack.size():
6565
return false
6666
if a_stack[index] != b_stack[index]:
6767
return a_stack[index] < b_stack[index]
6868
last_index = index
69-
69+
7070
if last_index < b_stack.size():
7171
# 'a' has a shorter stack
7272
return true
73-
73+
7474
return extension_a.extension_path < extension_b.extension_path
7575

76+
7677
static func apply_extension(extension_path: String) -> Script:
7778
# Check path to file exists
7879
if not File.new().file_exists(extension_path):

addons/mod_loader/mod_loader_store.gd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,11 @@ var logged_messages := {
8080

8181
# Active user profile
8282
var current_user_profile: ModUserProfile
83-
# List of user profiles loaded from user://mods.json
83+
84+
# List of user profiles loaded from user://mod_user_profiles.json
8485
var user_profiles := {}
8586

86-
# ModLoader cache is stored in user://ModLoaderCache.json
87+
# ModLoader cache is stored in user://mod_loader_cache.json
8788
var cache := {}
8889

8990
# These variables handle various options, which can be changed either via

0 commit comments

Comments
 (0)