From 9619417b07376e23274f468910d33ff7cb269415 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Sun, 14 Jun 2020 13:09:10 +0300 Subject: [PATCH] nyx: Allow arc bits tool to work on all compat folders --- nyx/nyx_gui/frontend/gui_tools.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nyx/nyx_gui/frontend/gui_tools.c b/nyx/nyx_gui/frontend/gui_tools.c index dc3bdb6..35fc2e1 100644 --- a/nyx/nyx_gui/frontend/gui_tools.c +++ b/nyx/nyx_gui/frontend/gui_tools.c @@ -844,8 +844,8 @@ static int _fix_attributes(lv_obj_t *lb_val, char *path, u32 *total) bool is_hos_special = !f_stat(path, NULL); path[strlen(path) - 3] = 0; - // Set archive bit to folders with 3 char extension suffix. - if (is_hos_special && fno.fname[strlen(fno.fname) - 4] == '.') + // Set archive bit to HOS single file folders. + if (is_hos_special) { if (!(fno.fattrib & AM_ARC)) {