From 6ca02aab2c1878ad3c708097f5a7c3b37d8aa77b Mon Sep 17 00:00:00 2001 From: RSDuck Date: Wed, 20 Sep 2023 19:17:26 +0200 Subject: [PATCH] only recalculate extended access point checksum when firmware is a DSi one --- src/SPI_Firmware.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/SPI_Firmware.cpp b/src/SPI_Firmware.cpp index 57d6343f..44fbfe7d 100644 --- a/src/SPI_Firmware.cpp +++ b/src/SPI_Firmware.cpp @@ -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())