ios_exploit: Fix checking the size of ios_fs

This commit is contained in:
Maschell 2023-03-11 17:05:48 +01:00
parent b7428c9157
commit 6cf8c3b391

View File

@ -327,8 +327,7 @@ static void uhs_exploit_init(int dev_uhs_0_handle) {
payloads->size = sizeof(ios_mcp); payloads->size = sizeof(ios_mcp);
memcpy(payloads->data, ios_mcp, payloads->size); memcpy(payloads->data, ios_mcp, payloads->size);
static_assert(sizeof(ios_fs) < 0xF417FEF0 - 0xF4170000, "IOS_FS is too big");
static_assert(sizeof(ios_mcp) < 0xF4180000 - 0xF4170000, "IOS_FS is too big");
payloads = (payload_info_t *) 0xF4170000; payloads = (payload_info_t *) 0xF4170000;
payloads->size = sizeof(ios_fs); payloads->size = sizeof(ios_fs);
memcpy(payloads->data, ios_fs, payloads->size); memcpy(payloads->data, ios_fs, payloads->size);