Refactor emmcsn_path_impl and return serial number if needed

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

No files matched your search

+1 -1
View File
@@ -45,7 +45,7 @@
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 void _get_valid_partition(u32 *sector_start, u32 *sector_size, u32 *part_idx, bool backup)
{