2023-12-08 03:50:09 +01:00
|
|
|
function file_exists_empty(path) { INLINE return path != "" && file_exists(path); }
|
|
|
|
|
2023-09-27 14:55:21 +02:00
|
|
|
function file_copy_override(src, dest) {
|
2023-12-08 03:50:09 +01:00
|
|
|
if(file_exists_empty(dest)) file_delete(dest);
|
2023-09-27 14:55:21 +02:00
|
|
|
file_copy(src, dest);
|
2023-11-01 08:10:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
function filepath_resolve(path) {
|
2023-11-08 08:38:04 +01:00
|
|
|
INLINE
|
2023-11-01 08:10:25 +01:00
|
|
|
var _path = path;
|
|
|
|
|
|
|
|
_path = string_replace_all(_path, "%DIR%/", DIRECTORY);
|
2023-11-19 09:05:42 +01:00
|
|
|
_path = string_replace_all(_path, "%APP%/", APP_LOCATION);
|
2023-11-01 08:10:25 +01:00
|
|
|
|
|
|
|
return _path;
|
2023-11-08 04:48:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
function get_open_filenames_compat(ext, sel) {
|
2023-12-12 14:41:50 +01:00
|
|
|
INLINE
|
2023-12-15 12:56:36 +01:00
|
|
|
//return get_open_filenames(ext, sel);
|
2023-12-13 11:09:06 +01:00
|
|
|
|
2023-12-15 12:56:36 +01:00
|
|
|
if(OS == os_windows) return get_open_filenames(ext, sel);
|
|
|
|
return get_open_filename(ext, sel);
|
2023-09-27 14:55:21 +02:00
|
|
|
}
|