Pixel-Composer/scripts/path_parser/path_parser.gml
2022-12-27 19:30:02 +07:00

10 lines
No EOL
196 B
Text

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