@@ -170,7 +170,6 @@ func _update_ml_options_from_options_resource() -> void:
170
170
for key in ml_options :
171
171
ml_options [key ] = current_options [key ]
172
172
173
-
174
173
# Get options overrides by feature tags
175
174
# An override is saved as Dictionary[String: ModLoaderOptionsProfile]
176
175
for feature_tag in options_resource .feature_override_options .keys ():
@@ -182,20 +181,24 @@ func _update_ml_options_from_options_resource() -> void:
182
181
"https://docs.godotengine.org/en/3.5/tutorials/export/feature_tags.html"
183
182
), LOG_NAME )
184
183
continue
184
+
185
185
if not OS .has_feature (feature_tag ):
186
- var override_options = options_resource .feature_override_options [feature_tag ]
187
- if not override_options is ModLoaderOptionsProfile :
188
- ModLoaderLog .error (str (
189
- "Options override is not a valid Resource of type ModLoaderOptionsProfile. " ,
190
- "Options override key with invalid resource: \" %s \" . " % feature_tag ,
191
- "Please edit your options at %s . " % ml_options_path
192
- ), LOG_NAME )
193
- continue
194
- # Update from the options in the resource
195
- for key in ml_options :
196
- ml_options [key ] = override_options [key ]
186
+ ModLoaderLog .info ("Options override feature tag \" %s \" . does not apply, skipping." % feature_tag , LOG_NAME )
187
+ continue
197
188
189
+ ModLoaderLog .info ("Applying options override with feature tag \" %s \" ." % feature_tag , LOG_NAME )
190
+ var override_options = options_resource .feature_override_options [feature_tag ]
191
+ if not override_options is ModLoaderOptionsProfile :
192
+ ModLoaderLog .error (str (
193
+ "Options override is not a valid Resource of type ModLoaderOptionsProfile. " ,
194
+ "Options override key with invalid resource: \" %s \" . " % feature_tag ,
195
+ "Please edit your options at %s . " % ml_options_path
196
+ ), LOG_NAME )
197
+ continue
198
198
199
+ # Update from the options in the resource
200
+ for key in ml_options :
201
+ ml_options [key ] = override_options [key ]
199
202
200
203
201
204
# Update ModLoader's options, via CLI args
0 commit comments