Skip to content

Commit

Permalink
only recalculate extended access point checksum when firmware is a DS…
Browse files Browse the repository at this point in the history
…i one
  • Loading branch information
RSDuck committed Sep 20, 2023
1 parent 5bfe51e commit 6ca02aa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/SPI_Firmware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,12 @@ void SPI_Firmware::Firmware::UpdateChecksums()
ap.UpdateChecksum();
}

for (SPI_Firmware::ExtendedWifiAccessPoint& eap : ExtendedAccessPoints())
if (Header().ConsoleType == FirmwareConsoleType::DSi)
{
eap.UpdateChecksum();
for (SPI_Firmware::ExtendedWifiAccessPoint& eap : ExtendedAccessPoints())
{
eap.UpdateChecksum();
}
}

for (SPI_Firmware::UserData& u : UserData())
Expand Down

0 comments on commit 6ca02aa

Please sign in to comment.