Pixel-Composer/scripts/__initAddon/__initAddon.gml

16 lines
304 B
Plaintext
Raw Normal View History

2023-04-22 16:23:51 +02:00
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();
}
}