Pixel-Composer/scripts/path_parser/path_parser.gml
2023-07-06 19:49:16 +02:00

10 lines
195 B
Plaintext

function try_get_path(path) {
if(file_exists(path))
return path;
var local_path = filename_dir(PROJECT.path) + "/" + path;
if(file_exists(local_path))
return local_path;
return -1;
}