Pixel-Composer/scripts/file_functions/file_functions.gml

19 lines
458 B
Plaintext
Raw Normal View History

function file_copy_override(src, dest) {
if(file_exists(dest)) file_delete(dest);
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);
_path = string_replace_all(_path, "%APP%/", working_directory);
return _path;
2023-11-08 04:48:09 +01:00
}
function get_open_filenames_compat(ext, sel) {
if(OS == os_windows) return get_open_filenames(ext, sel);
return get_open_filename(ext, sel);
}