Skip to content

Commit

Permalink
v1.3
Browse files Browse the repository at this point in the history
Commit 2892d65
  • Loading branch information
Dudejoe870 committed Jul 2, 2024
1 parent e469a26 commit 3d07e72
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 5 deletions.
Binary file modified addons/godot-openmpt/bin/libgdmpt-linux.debug.64.so
Binary file not shown.
Binary file modified addons/godot-openmpt/bin/libgdmpt-linux.release.64.so
Binary file not shown.
Binary file modified addons/godot-openmpt/bin/libgdmpt-windows.debug.64.dll
Binary file not shown.
Binary file modified addons/godot-openmpt/bin/libgdmpt-windows.release.64.dll
Binary file not shown.
12 changes: 12 additions & 0 deletions addons/godot-openmpt/mpt_importer.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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()
Expand Down
4 changes: 0 additions & 4 deletions addons/godot-openmpt/openmpt.gdextension
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion addons/godot-openmpt/plugin.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 3d07e72

Please sign in to comment.