diff --git a/objects/o_dialog_image_array_edit/Draw_64.gml b/objects/o_dialog_image_array_edit/Draw_64.gml index e556b02af..567309f40 100644 --- a/objects/o_dialog_image_array_edit/Draw_64.gml +++ b/objects/o_dialog_image_array_edit/Draw_64.gml @@ -29,7 +29,7 @@ if !target exit; var by = dialog_y + ui(18); if(buttonInstant(THEME.button_hide, bx, by, bw, bh, mouse_ui, sFOCUS, sHOVER, __txt("Add") + "...", THEME.add,, COLORS._main_value_positive) == 2) { - var path = get_open_filenames(".png", ""); + var path = get_open_filenames_compat(".png", ""); key_release(); if(path != "") { var paths = paths_to_array(path); diff --git a/scripts/file_functions/file_functions.gml b/scripts/file_functions/file_functions.gml index 8ab2edf8e..f38192eca 100644 --- a/scripts/file_functions/file_functions.gml +++ b/scripts/file_functions/file_functions.gml @@ -11,4 +11,9 @@ function filepath_resolve(path) { _path = string_replace_all(_path, "%APP%/", working_directory); return _path; +} + +function get_open_filenames_compat(ext, sel) { + if(OS == os_windows) return get_open_filenames(ext, sel); + return get_open_filename(ext, sel); } \ No newline at end of file diff --git a/scripts/node_image_animated/node_image_animated.gml b/scripts/node_image_animated/node_image_animated.gml index 3b6ff4edb..d6449988a 100644 --- a/scripts/node_image_animated/node_image_animated.gml +++ b/scripts/node_image_animated/node_image_animated.gml @@ -1,7 +1,7 @@ function Node_create_Image_Animated(_x, _y, _group = noone) { var path = ""; if(!LOADING && !APPENDING && !CLONING) { - path = get_open_filenames(".png", ""); + path = get_open_filenames_compat(".png", ""); key_release(); if(path == "") return noone; } diff --git a/scripts/node_image_sequence/node_image_sequence.gml b/scripts/node_image_sequence/node_image_sequence.gml index e605908a5..f532813f0 100644 --- a/scripts/node_image_sequence/node_image_sequence.gml +++ b/scripts/node_image_sequence/node_image_sequence.gml @@ -1,7 +1,7 @@ function Node_create_Image_Sequence(_x, _y, _group = noone) { var path = ""; if(!LOADING && !APPENDING && !CLONING) { - path = get_open_filenames(".png", ""); + path = get_open_filenames_compat(".png", ""); key_release(); if(path == "") return noone; } diff --git a/scripts/pathArrayBox/pathArrayBox.gml b/scripts/pathArrayBox/pathArrayBox.gml index 8e103a8d3..5d514df58 100644 --- a/scripts/pathArrayBox/pathArrayBox.gml +++ b/scripts/pathArrayBox/pathArrayBox.gml @@ -4,7 +4,7 @@ function pathArrayBox(_target, _data, _onClick) : widget() constructor { onClick = _onClick; openPath = button(function() { - var path = get_open_filenames(data[0], data[1]); + var path = get_open_filenames_compat(data[0], data[1]); key_release(); if(path == "") return noone;