Pixel-Composer/scripts/path_parser/path_parser.gml
2022-01-13 11:24:03 +07:00

11 lines
211 B
Plaintext

function try_get_path(path) {
if(!file_exists(path)) {
var local_path = filename_dir(CURRENT_PATH) + "\\" + path;
if(file_exists(local_path))
return local_path;
else
return -1;
}
return path;
}