@@ -26,7 +26,7 @@ extends Node
26
26
# Most of these settings should never need to change, aside from the DEBUG_*
27
27
# options (which should be `false` when distributing compiled PCKs)
28
28
29
- const MODLOADER_VERSION = "5.0.1 "
29
+ const MODLOADER_VERSION = "5.0.0 "
30
30
31
31
# If true, a complete array of filepaths is stored for each mod. This is
32
32
# disabled by default because the operation can be very expensive, but may
@@ -40,6 +40,7 @@ const MOD_LOG_PATH := "user://mods.log"
40
40
# This is where mod ZIPs are unpacked to
41
41
const UNPACKED_DIR := "res://mods-unpacked/"
42
42
43
+
43
44
# Set to true to require using "--enable-mods" to enable them
44
45
const REQUIRE_CMD_LINE := false
45
46
@@ -509,10 +510,6 @@ func register_global_classes_from_array(new_global_classes: Array) -> void:
509
510
# file should have been created in Godot already: When you improt a CSV, such
510
511
# a file will be created for you.
511
512
func add_translation_from_resource (resource_path : String ) -> void :
512
- if not File .new ().file_exists (resource_path ):
513
- ModLoaderUtils .log_fatal ("Tried to load a translation resource from a file that doesn't exist. The invalid path was: %s " % [resource_path ], LOG_NAME )
514
- return
515
-
516
513
var translation_object : Translation = load (resource_path )
517
514
TranslationServer .add_translation (translation_object )
518
515
ModLoaderUtils .log_info ("Added Translation from Resource -> %s " % resource_path , LOG_NAME )
0 commit comments