mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-11 04:54:06 +01:00
16 lines
304 B
Plaintext
16 lines
304 B
Plaintext
|
function __initAddon() {
|
||
|
var dirPath = DIRECTORY + "Addons";
|
||
|
globalvar ADDONS;
|
||
|
ADDONS = [];
|
||
|
|
||
|
if(!directory_exists(dirPath)) {
|
||
|
directory_create(dirPath);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
var f = file_find_first(dirPath + "\\*", fa_directory);
|
||
|
while(f != "") {
|
||
|
array_push(ADDONS, f);
|
||
|
f = file_find_next();
|
||
|
}
|
||
|
}
|