Skip to content

Commit a5c78a0

Browse files
committed
re-enable logging in ModData
1 parent 34420bd commit a5c78a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

addons/mod_loader/mod_data.gd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ func load_manifest() -> void:
4040
if not has_required_files():
4141
return
4242

43-
# ModLoader.mod_log("Loading mod_manifest (manifest.json) for -> %s" % dir_name, LOG_NAME)
43+
ModLoaderUtils.log_info("Loading mod_manifest (manifest.json) for -> %s" % dir_name, LOG_NAME)
4444

4545
# Load meta data file
4646
var manifest_path = get_required_mod_file_path(required_mod_files.MANIFEST)
4747
var manifest_dict = _get_json_as_dict(manifest_path) # todo get from utils
4848

49-
# ModLoader.mod_log("%s loaded manifest data -> %s" % [dir_name, manifest_dict], LOG_NAME)
49+
ModLoaderUtils.log_info("%s loaded manifest data -> %s" % [dir_name, manifest_dict], LOG_NAME)
5050

5151
var mod_manifest := ModManifest.new(manifest_dict)
5252

@@ -61,7 +61,7 @@ func load_manifest() -> void:
6161
func is_mod_dir_name_same_as_id() -> bool:
6262
var manifest_id = manifest.get_mod_id()
6363
if dir_name != manifest_id:
64-
# ModLoader.mod_log('ERROR - Mod directory name "%s" does not match the data in manifest.json. Expected "%s"' % [ dir_name, manifest_id ], LOG_NAME)
64+
ModLoaderUtils.log_fatal('Mod directory name "%s" does not match the data in manifest.json. Expected "%s"' % [ dir_name, manifest_id ], LOG_NAME)
6565
is_loadable = false
6666
return false
6767
return true
@@ -75,7 +75,7 @@ func has_required_files() -> bool:
7575
var file_path = get_required_mod_file_path(required_mod_files[required_file])
7676

7777
if !file_check.file_exists(file_path):
78-
# ModLoader.mod_log("ERROR - %s is missing a required file: %s" % [dir_name, file_path], LOG_NAME)
78+
ModLoaderUtils.log_fatal("ERROR - %s is missing a required file: %s" % [dir_name, file_path], LOG_NAME)
7979
is_loadable = false
8080
return is_loadable
8181

0 commit comments

Comments
 (0)