mac remove libdlmod dependency

This commit is contained in:
Tanasart 2023-11-08 10:48:09 +07:00
parent 663150fb00
commit f2af871678
5 changed files with 9 additions and 4 deletions

View file

@ -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);

View file

@ -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);
}

View file

@ -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;
}

View file

@ -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;
}

View file

@ -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;