hekate: use the new dirlist

This commit is contained in:
CTCaer authored and NaGa committed 2026-03-27 09:44:07 +01:00
1 parent af72bb5b94
commit 23ac454b1d
4 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -68,7 +68,7 @@ static int _config_kip1(launch_ctxt_t *ctxt, const char *value)
u32 dirlen = 0;
dir[strlen(dir) - 2] = 0;
dirlist_t *filelist = dirlist(dir, "*.kip*", false, false);
dirlist_t *filelist = dirlist(dir, "*.kip*", 0);
strcat(dir, "/");
dirlen = strlen(dir);
@@ -172,7 +172,7 @@ static int _config_stock(launch_ctxt_t *ctxt, const char *value)
{
if (*value == '1')
{
DPRINTF("Disabled all patching\n");
DPRINTF("Enabled stock mode\n");
ctxt->stock = true;
}
return 1;
+1 -1
View File
@@ -277,7 +277,7 @@ static void _launch_payloads()
dir = (char *)malloc(256);
memcpy(dir, "bootloader/payloads", 20);
filelist = dirlist(dir, NULL, false, false);
filelist = dirlist(dir, NULL, 0);
u32 i = 0;
+1 -1
View File
@@ -1401,7 +1401,7 @@ static lv_res_t _create_mbox_payloads(lv_obj_t *btn)
goto out_end;
}
dirlist_t *filelist = dirlist("bootloader/payloads", NULL, false, false);
dirlist_t *filelist = dirlist("bootloader/payloads", NULL, 0);
sd_unmount();
u32 i = 0;
+1 -1
View File
@@ -1641,7 +1641,7 @@ static lv_res_t _create_change_emummc_window(lv_obj_t *btn_caller)
emummc_img->part_type[i - 1] = mbr->partitions[i].type;
}
emummc_img->dirlist = dirlist("emuMMC", NULL, false, true);
emummc_img->dirlist = dirlist("emuMMC", NULL, DIR_SHOW_DIRS);
if (!emummc_img->dirlist)
goto out0;