mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
Fix installing FIRMs
This commit is contained in:
parent
760052f20d
commit
5799d99c4c
@ -106,8 +106,8 @@ u32 ValidateFirm(void* firm, u32 firm_size, bool installable) {
|
||||
if (resv[0x2D] == 'B' && resv[0x2E] == '9' && resv[0x2F] == 'S')
|
||||
skipchk_mask |= BIT(3);
|
||||
|
||||
if ((header->sections[1].size = 0x200) &&
|
||||
(header->sections[1].address = 0x07FFFE8C))
|
||||
if ((header->sections[1].size == 0x200) &&
|
||||
(header->sections[1].address == 0x07FFFE8C))
|
||||
skipchk_mask |= BIT(1);
|
||||
}
|
||||
|
||||
|
@ -637,7 +637,7 @@ u32 VerifyFirmFile(const char* path) {
|
||||
// hash verify all available sections
|
||||
FirmHeader header;
|
||||
memcpy(&header, firm_buffer, sizeof(FirmHeader));
|
||||
for (u32 i = 0; i < 4; i++) {
|
||||
for (u32 i = 0; i < 4; i++) {
|
||||
FirmSectionHeader* sct = header.sections + i;
|
||||
void* section = ((u8*) firm_buffer) + sct->offset;
|
||||
if (!(sct->size)) continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user