mirror of
https://github.com/CTCaer/hekate.git
synced 2024-12-23 08:32:04 +00:00
[emuMMC] Change partition type to xE0
This commit is contained in:
parent
fed15a2f2f
commit
ac7eb092d5
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue