Refactor emmcsn_path_impl and return serial number if needed

The refactoring also makes consecutive requests instantaneous.
This commit is contained in:
CTCaer
2021-01-03 14:45:06 +02:00
parent 8ce5d55eb8
commit 53b44a525d
6 changed files with 48 additions and 29 deletions

View File

@@ -48,7 +48,7 @@ extern volatile boot_cfg_t *b_cfg;
extern hekate_config h_cfg;
extern nyx_config n_cfg;
extern void emmcsn_path_impl(char *path, char *sub_dir, char *filename, sdmmc_storage_t *storage);
extern char *emmcsn_path_impl(char *path, char *sub_dir, char *filename, sdmmc_storage_t *storage);
static lv_obj_t *_create_container(lv_obj_t *parent)
{