@@ -255,8 +255,8 @@ func _load_zips_in_folder(folder_path: String) -> int:
255
255
if OS .has_feature ("editor" ) and not ModLoaderStore .has_shown_editor_zips_warning :
256
256
ModLoaderLog .warning (str (
257
257
"Loading any resource packs (.zip/.pck) with `load_resource_pack` will WIPE the entire virtual res:// directory. " ,
258
- "If you have any unpacked mods in " , ModLoaderStore . UNPACKED_DIR , ", they will not be loaded. " ,
259
- "Please unpack your mod ZIPs instead, and add them to " , ModLoaderStore . UNPACKED_DIR ), LOG_NAME )
258
+ "If you have any unpacked mods in " , _ModLoaderPath . get_unpacked_mods_dir_path () , ", they will not be loaded. " ,
259
+ "Please unpack your mod ZIPs instead, and add them to " , _ModLoaderPath . get_unpacked_mods_dir_path () ), LOG_NAME )
260
260
ModLoaderStore .has_shown_editor_zips_warning = true
261
261
262
262
ModLoaderLog .debug ("Found mod ZIP: %s " % mod_folder_global_path , LOG_NAME )
@@ -323,7 +323,7 @@ func _load_steam_workshop_zips() -> int:
323
323
# which adds their data to mod_data.
324
324
func _setup_mods () -> int :
325
325
# Path to the unpacked mods folder
326
- var unpacked_mods_path := ModLoaderStore . UNPACKED_DIR
326
+ var unpacked_mods_path := _ModLoaderPath . get_unpacked_mods_dir_path ()
327
327
328
328
var dir := Directory .new ()
329
329
if not dir .open (unpacked_mods_path ) == OK :
@@ -413,7 +413,7 @@ func _init_mod_data(mod_folder_path: String) -> void:
413
413
var dir_name := _ModLoaderPath .get_file_name_from_path (mod_folder_path , false , true )
414
414
415
415
# Path to the mod in UNPACKED_DIR (eg "res://mods-unpacked/My-Mod")
416
- var local_mod_path := ModLoaderStore . UNPACKED_DIR .plus_file (dir_name )
416
+ var local_mod_path := _ModLoaderPath . get_unpacked_mods_dir_path () .plus_file (dir_name )
417
417
418
418
var mod := ModData .new (local_mod_path )
419
419
mod .dir_name = dir_name
0 commit comments