mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-25 14:36:13 +01:00
24 lines
No EOL
490 B
Text
24 lines
No EOL
490 B
Text
function __path_get(path) {
|
|
INLINE
|
|
|
|
if(directory_exists(path)) return path;
|
|
if(file_exists_empty(path)) return path;
|
|
|
|
var local_path = $"{filename_dir(PROJECT.path)}/{path}";
|
|
if(file_exists_empty(local_path))
|
|
return local_path;
|
|
|
|
return "";
|
|
}
|
|
|
|
function path_get(path) {
|
|
INLINE
|
|
|
|
if(!is_array(path)) return __path_get(path);
|
|
|
|
var _res = array_create(array_length(path));
|
|
for( var i = 0, n = array_length(path); i < n; i++ )
|
|
_res[i] = __path_get(path[i]);
|
|
|
|
return _res;
|
|
} |