aboutsummaryrefslogtreecommitdiff
path: root/src/NDSCart.cpp
diff options
context:
space:
mode:
authorJesse Talavera-Greenberg <jesse@jesse.tg>2023-10-24 17:28:14 -0400
committerGitHub <noreply@github.com>2023-10-24 23:28:14 +0200
commit21590b070976f8fe343fdc44d4fee599cbda94f4 (patch)
tree89296cfb050314748f090b9d3e6e3f66109b9735 /src/NDSCart.cpp
parent8c4e5af737ab0dddb91bd593f51d815d1a04a7b1 (diff)
Miscellaneous DSi NAND fixes (#1852)
* Replace some standard I/O calls with Platform equivalents - I missed a spot when I submitted that PR a few months ago * Include <memory> in DSi_NAND.h - Because it uses unique_ptr * Split DSi_NAND::ReadHardwareInfo into ReadSerialData and ReadHardwareInfoN * Add a RegionMask enum * Move DSi NAND patching to the frontend * Add DSiSupportedLanguageMask - Not currently used by the frontend, but I use it in melonDS DS * Remove some Platform::ConfigEntry values - The core no longer needs to know about them - The corresponding Config values are unchanged * Mark NANDMount's destructor as noexcept
Diffstat (limited to 'src/NDSCart.cpp')
-rw-r--r--src/NDSCart.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/NDSCart.cpp b/src/NDSCart.cpp
index f1598eb..400f7d6 100644
--- a/src/NDSCart.cpp
+++ b/src/NDSCart.cpp
@@ -1650,8 +1650,7 @@ std::unique_ptr<CartCommon> ParseROM(const u8* romdata, u32 romlen)
bool dsi = header.IsDSi();
bool badDSiDump = false;
- u32 dsiRegion = header.DSiRegionMask;
- if (dsi && dsiRegion == 0)
+ if (dsi && header.DSiRegionMask == RegionMask::NoRegion)
{
Log(LogLevel::Info, "DS header indicates DSi, but region is zero. Going in bad dump mode.\n");
badDSiDump = true;