Pixel-Composer/scripts/path_parser/path_parser.gml

10 lines
195 B
Text
Raw Normal View History

2022-01-13 05:24:03 +01:00
function try_get_path(path) {
2022-12-27 13:30:02 +01:00
if(file_exists(path))
return path;
2023-07-06 19:49:16 +02:00
var local_path = filename_dir(PROJECT.path) + "/" + path;
2022-12-27 13:30:02 +01:00
if(file_exists(local_path))
return local_path;
2022-01-13 05:24:03 +01:00
2022-12-27 13:30:02 +01:00
return -1;
2022-01-13 05:24:03 +01:00
}