File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,10 @@ func _init() -> void:
8080 for mod_path in mod_paths :
8181 var is_zip := _ModLoaderPath .is_zip (mod_path )
8282
83+ if not is_in_editor and not ModLoaderStore .ml_options .load_from_unpacked :
84+ ModLoaderLog .debug ("The mod from path \" %s \" is not loaded because loading from mods-unpacked has been disabled in the options." % mod_path , LOG_NAME )
85+ continue
86+
8387 # Load manifest file
8488 var manifest_data : Dictionary = _ModLoaderFile .load_manifest_file (mod_path )
8589
Original file line number Diff line number Diff line change @@ -74,6 +74,12 @@ enum VERSION_VALIDATION {
7474@export var load_from_steam_workshop : bool = false
7575## Indicates whether to load mods from the "mods" folder located at the game's install directory, or the overridden mods path.
7676@export var load_from_local : bool = true
77+ ## Indicates whether to load mods from [code]"res://mods-unpacked"[/code] in the exported game.[br]
78+ ## ===[br]
79+ ## [b]Note:[color=note "Load from unpacked in the editor"][/color][/b][br]
80+ ## In the editor, mods inside [code]"res://mods-unpacked"[/code] are always loaded. Use [member enable_mods] to disable mod loading completely.[br]
81+ ## ===[br]
82+ @export var load_from_unpacked : bool = true
7783## Path to a folder containing mods [br]
7884## Mod zips should be directly in this folder
7985@export_dir var override_path_to_mods = ""
You can’t perform that action at this time.
0 commit comments