diff --git a/addons/godot-openmpt/bin/libgdmpt-linux.debug.64.so b/addons/godot-openmpt/bin/libgdmpt-linux.debug.64.so index 428429c..2cc7e09 100644 Binary files a/addons/godot-openmpt/bin/libgdmpt-linux.debug.64.so and b/addons/godot-openmpt/bin/libgdmpt-linux.debug.64.so differ diff --git a/addons/godot-openmpt/bin/libgdmpt-linux.release.64.so b/addons/godot-openmpt/bin/libgdmpt-linux.release.64.so index 8f5444d..968b56d 100644 Binary files a/addons/godot-openmpt/bin/libgdmpt-linux.release.64.so and b/addons/godot-openmpt/bin/libgdmpt-linux.release.64.so differ diff --git a/addons/godot-openmpt/bin/libgdmpt-windows.debug.64.dll b/addons/godot-openmpt/bin/libgdmpt-windows.debug.64.dll index 2254182..eddee46 100644 Binary files a/addons/godot-openmpt/bin/libgdmpt-windows.debug.64.dll and b/addons/godot-openmpt/bin/libgdmpt-windows.debug.64.dll differ diff --git a/addons/godot-openmpt/bin/libgdmpt-windows.release.64.dll b/addons/godot-openmpt/bin/libgdmpt-windows.release.64.dll index 555c209..aeee875 100644 Binary files a/addons/godot-openmpt/bin/libgdmpt-windows.release.64.dll and b/addons/godot-openmpt/bin/libgdmpt-windows.release.64.dll differ diff --git a/addons/godot-openmpt/mpt_importer.gd b/addons/godot-openmpt/mpt_importer.gd index a7af69b..a072da6 100644 --- a/addons/godot-openmpt/mpt_importer.gd +++ b/addons/godot-openmpt/mpt_importer.gd @@ -34,6 +34,16 @@ func _get_import_options(path, preset_index) -> Array[Dictionary]: "property_hint": PROPERTY_HINT_ENUM, "hint_string": "Disabled,Enabled", "default_value": 0 + }, + { + "name": "load/skip_plugins", + "type": TYPE_BOOL, + "default_value": false + }, + { + "name": "load/skip_subsongs_init", + "type": TYPE_BOOL, + "default_value": false }] func _get_option_visibility(path, option_name, options) -> bool: @@ -57,6 +67,8 @@ func _import(source_file, save_path, options, r_platform_variants, r_gen_files) return ERR_PARSE_ERROR var stream = AudioStreamMPT.new() + stream.skip_plugins = options["load/skip_plugins"] + stream.skip_subsongs_init = options["load/skip_subsongs_init"] stream.data = file_data if stream.data.is_empty(): return stream.get_module_error() diff --git a/addons/godot-openmpt/openmpt.gdextension b/addons/godot-openmpt/openmpt.gdextension index 459a638..4b1a16b 100644 --- a/addons/godot-openmpt/openmpt.gdextension +++ b/addons/godot-openmpt/openmpt.gdextension @@ -7,11 +7,7 @@ compatibility_minimum = "4.2" macos.debug = "bin/libgdmpt-macos.debug.64.framework" macos.release = "bin/libgdmpt-macos.release.64.framework" -windows.debug.x86_32 = "bin/libgdmpt-windows.debug.32.dll" -windows.release.x86_32 = "bin/libgdmpt-windows.release.32.dll" windows.debug.x86_64 = "bin/libgdmpt-windows.debug.64.dll" windows.release.x86_64 = "bin/libgdmpt-windows.release.64.dll" -linux.debug.x86_32 = "bin/libgdmpt-linux.debug.32.so" -linux.release.x86_32 = "bin/libgdmpt-linux.release.32.so" linux.debug.x86_64 = "bin/libgdmpt-linux.debug.64.so" linux.release.x86_64 = "bin/libgdmpt-linux.release.64.so" diff --git a/addons/godot-openmpt/plugin.cfg b/addons/godot-openmpt/plugin.cfg index fcd185d..d0c2bcb 100644 --- a/addons/godot-openmpt/plugin.cfg +++ b/addons/godot-openmpt/plugin.cfg @@ -3,5 +3,5 @@ name="Godot OpenMPT" description="Integrates OpenMPT as a playable AudioStream" author="Dudejoe870" -version="1.0.0" +version="1.3" script="mpt_import.gd"