Skip to content

Commit

Permalink
rename Modules to Scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
katzerax authored Nov 15, 2024
1 parent af3511f commit 6bb4578
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ func _register_kmod_titles():
title_api.register_title(76561198799078563, "[color=#f6a4f3]Paw tuah[/color]", false)

func _ready():
var dependency_check_script = preload("res://mods/KMod/Modules/DependencyChecks/dependency_checks.gd").new()
var dependency_check_script = preload("res://mods/KMod/Scripts/DependencyChecks/dependency_checks.gd").new()
var has_title = dependency_check_script._check_for_title_api()
if has_title:
yield(wait_for_title_api(), "completed")
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var size_max = 1.4
var dependency_check_script : Node = null

func _ready():
dependency_check_script = preload("res://mods/KMod/Modules/DependencyChecks/dependency_checks.gd").new() # Load the dependency check script
dependency_check_script = preload("res://mods/KMod/Scripts/DependencyChecks/dependency_checks.gd").new() # Load the dependency check script
_apply_size_unlocker()
initialize()
dependency_check_script.queue_free()
Expand Down
8 changes: 4 additions & 4 deletions main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ var prefix = "[KMOD.main] "
var config_handler

func _ready():
var k_recognizer = preload("res://mods/KMod/Modules/KRecognizer/k_recognizer.gd").new()
var k_recognizer = preload("res://mods/KMod/Scripts/KRecognizer/k_recognizer.gd").new()
add_child(k_recognizer)

config_handler = preload("res://mods/KMod/Modules/ConfigHandler/config_handler.gd").new()
config_handler = preload("res://mods/KMod/Scripts/ConfigHandler/config_handler.gd").new()
add_child(config_handler)
config_handler.load_config()
var config_data = config_handler.config_data

if config_data.has("SizeChanger") and config_data["SizeChanger"]:
var size_changer = preload("res://mods/KMod/Modules/SizeChanger/size_changer.gd").new()
var size_changer = preload("res://mods/KMod/Scripts/SizeChanger/size_changer.gd").new()
add_child(size_changer)

if config_data.has("KeybindFix") and config_data["KeybindFix"]:
var keybind_fix = preload("res://mods/KMod/Modules/KeybindFix/keybind_fix.gd").new()
var keybind_fix = preload("res://mods/KMod/Scripts/KeybindFix/keybind_fix.gd").new()
add_child(keybind_fix)

0 comments on commit 6bb4578

Please sign in to comment.