diff --git a/nyx/nyx_gui/frontend/fe_emmc_tools.c b/nyx/nyx_gui/frontend/fe_emmc_tools.c index 8a5a3ea..1d2b825 100644 --- a/nyx/nyx_gui/frontend/fe_emmc_tools.c +++ b/nyx/nyx_gui/frontend/fe_emmc_tools.c @@ -71,7 +71,7 @@ static void get_valid_partition(u32 *sector_start, u32 *sector_size, u32 *part_i curr_part_size = *(u32 *)&mbr[0x0C + (0x10 * i)]; *sector_start = *(u32 *)&mbr[0x08 + (0x10 * i)]; u8 type = mbr[0x04 + (0x10 * i)]; - if ((curr_part_size >= *sector_size) && *sector_start && type != 0x83 && (!backup || type == 0xEE)) + if ((curr_part_size >= *sector_size) && *sector_start && type != 0x83 && (!backup || type == 0xE0)) break; } if (i < 4) diff --git a/nyx/nyx_gui/frontend/gui_emummc_tools.c b/nyx/nyx_gui/frontend/gui_emummc_tools.c index 1cecd1d..6114b8e 100644 --- a/nyx/nyx_gui/frontend/gui_emummc_tools.c +++ b/nyx/nyx_gui/frontend/gui_emummc_tools.c @@ -276,7 +276,7 @@ static void _change_raw_emummc_part_type() { u8 *mbr = (u8 *)malloc(0x200); sdmmc_storage_read(&sd_storage, 0, 1, mbr); - mbr[MBR_1ST_PART_TYPE_OFF + (0x10 * part_idx)] = 0xEE; + mbr[MBR_1ST_PART_TYPE_OFF + (0x10 * part_idx)] = 0xE0; sdmmc_storage_write(&sd_storage, 0, 1, mbr); free(mbr); }