Skip to content

Commit 692652c

Browse files
committed
feat: ✨ option to disable game version validation
1 parent 5c61730 commit 692652c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

addons/mod_loader/resources/mod_manifest.gd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ func validate(manifest: Dictionary, path: String) -> bool:
113113
config_schema = ModLoaderUtils.get_dict_from_dict(godot_details, "config_schema")
114114
steam_workshop_id = ModLoaderUtils.get_string_from_dict(godot_details, "steam_workshop_id")
115115

116-
_is_game_version_compatible(mod_id)
116+
if not ModLoaderStore.ml_options.disable_game_version_validation:
117+
_is_game_version_compatible(mod_id)
117118

118119
is_mod_id_array_valid(mod_id, dependencies, "dependency")
119120
is_mod_id_array_valid(mod_id, incompatibilities, "incompatibility")

addons/mod_loader/resources/options_profile.gd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,8 @@ extends Resource
6161
@export_dir var restart_notification_scene_path := "res://addons/mod_loader/restart_notification.tscn"
6262
## Can be used to disable the mod loader's restart logic. Use the [signal ModLoader.new_hooks_created] to implement your own restart logic.
6363
@export var disable_restart := false
64+
65+
@export_group("Mod Validation")
66+
## Activate this option to disable validation of the game version specified in [member semantic_version]
67+
## and the mod's [member ModManifest.compatible_game_version].
68+
@export var disable_game_version_validation := false

0 commit comments

Comments
 (0)