From 9698cbc9d71b1f26e79bcb70edc6d136ea043aee Mon Sep 17 00:00:00 2001 From: CTCaer Date: Tue, 5 May 2020 21:24:28 +0300 Subject: [PATCH] nyx: Fix archive bits fixer and extention folders --- nyx/nyx_gui/frontend/gui_tools.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nyx/nyx_gui/frontend/gui_tools.c b/nyx/nyx_gui/frontend/gui_tools.c index d4bcfaa..bdbfe77 100644 --- a/nyx/nyx_gui/frontend/gui_tools.c +++ b/nyx/nyx_gui/frontend/gui_tools.c @@ -839,8 +839,13 @@ static int _fix_attributes(lv_obj_t *lb_val, char *path, u32 *total) // Is it a directory? if (fno.fattrib & AM_DIR) { + // Check if it's a HOS single file folder. + strcat(path, "/00"); + bool is_hos_special = !f_stat(path, NULL); + path[strlen(path) - 3] = 0; + // Set archive bit to folders with 3 char extension suffix. - if (fno.fname[strlen(fno.fname) - 4] == '.') + if (is_hos_special && fno.fname[strlen(fno.fname) - 4] == '.') { if (!(fno.fattrib & AM_ARC)) {