mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-26 06:56:45 +01:00
10 lines
No EOL
195 B
Text
10 lines
No EOL
195 B
Text
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;
|
|
} |