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-03-08 12:14:01 +01:00
var local_path = filename_dir(CURRENT_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
}