emuSD & other fixes

This commit is contained in:
NaGa
2026-04-08 17:03:38 +02:00
parent 17425831d5
commit 1c7792e386
7 changed files with 43 additions and 30 deletions

View File

@@ -1040,12 +1040,17 @@ void dump_emummc_raw(emmc_tool_gui_t *gui, int part_idx, u32 sector_start, u32 r
sdmmc_storage_t *emu_storage = drive == DRIVE_SD ? &sd_storage : &emmc_storage;
boot_storage_mount();
if (drive == DRIVE_SD && !sd_initialize(false))
if (drive == DRIVE_SD)
{
lv_label_set_text(gui->label_info, "#FFDD00 Failed to init SD!#");
goto out;
if (!sd_mount())
{
lv_label_set_text(gui->label_info, "#FFDD00 Failed to init SD!#");
goto out;
}
}
else
{
boot_storage_mount();
}
if (!emmc_initialize(false))
@@ -1168,6 +1173,9 @@ out_failed:
out:
free(txt_buf);
free(gui->base_path);
boot_storage_unmount();
if (drive == DRIVE_SD)
sd_unmount();
else
boot_storage_unmount();
emmc_end();
}