Skip to content

Commit

Permalink
Also handle multi NANDs in GW EmuNAND format
Browse files Browse the repository at this point in the history
Fixes #48
  • Loading branch information
d0k3 committed Apr 19, 2017
1 parent f3b28ad commit f5d20aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/nand/nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ u32 InitEmuNandBase(bool reset)
return emunand_base_sector; // RedNAND type EmuNAND

// compact type multiNAND
if (last_valid % 0x2000 == 1) {
if (last_valid % 0x2000 <= 1) {
u32 compact_sectors = align(NAND_MIN_SECTORS + 1, 0x2000);
emunand_base_sector = last_valid + compact_sectors;
if (GetNandSizeSectors(NAND_EMUNAND) && CheckNandType(NAND_EMUNAND))
Expand Down

0 comments on commit f5d20aa

Please sign in to comment.