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