MNTM Settings: Hide hidden folders from asset packs

This commit is contained in:
Willy-JL
2024-08-27 01:32:57 +02:00
parent 33a54c1d63
commit 1c66d42d5c

View File

@@ -322,7 +322,7 @@ MomentumApp* momentum_app_alloc() {
char* name = malloc(ASSET_PACKS_NAME_LEN);
if(storage_dir_open(folder, ASSET_PACKS_PATH)) {
while(storage_dir_read(folder, &info, name, ASSET_PACKS_NAME_LEN)) {
if(info.flags & FSF_DIRECTORY) {
if(info.flags & FSF_DIRECTORY && name[0] != '.') {
char* copy = strdup(name);
size_t idx = 0;
for(; idx < CharList_size(app->asset_pack_names); idx++) {