File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ func load_mod_config() -> void:
77
77
config = ModConfig .new ()
78
78
config .save_path = _ModLoaderPath .get_path_to_configs ().plus_file ("%s .json" % dir_name )
79
79
config .schema = manifest .config_schema
80
+ config .mod_id = dir_name
80
81
81
82
# Generate config_default based on the default values in config_schema
82
83
_get_config_default_data (config .schema .properties )
Original file line number Diff line number Diff line change @@ -98,16 +98,11 @@ func _load_mods() -> void:
98
98
for dir_name in ModLoaderStore .mod_data :
99
99
var mod : ModData = ModLoaderStore .mod_data [dir_name ]
100
100
mod .load_manifest ()
101
- if not mod .manifest .get ("config_schema" ) and not mod .manifest .config_schema .empty ():
101
+ if mod .manifest .get ("config_schema" ) and not mod .manifest .config_schema .empty ():
102
102
mod .load_mod_config ()
103
103
104
- # Set up mod configs. If a mod's JSON file is found, its data gets added
105
- # to mod_data.{dir_name}.config
106
- _load_mod_configs ()
107
-
108
104
ModLoaderLog .success ("DONE: Loaded all meta data" , LOG_NAME )
109
105
110
-
111
106
# Check for mods with load_before. If a mod is listed in load_before,
112
107
# add the current mod to the dependencies of the the mod specified
113
108
# in load_before.
You can’t perform that action at this time.
0 commit comments