aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/NDSCart.cpp7
-rw-r--r--src/ROMList.h2
2 files changed, 5 insertions, 4 deletions
diff --git a/src/NDSCart.cpp b/src/NDSCart.cpp
index b40529b..488bd9a 100644
--- a/src/NDSCart.cpp
+++ b/src/NDSCart.cpp
@@ -426,7 +426,7 @@ void CartRetail::LoadSave(const char* path, u32 type)
512,
8192, 65536, 128*1024,
256*1024, 512*1024, 1024*1024,
- 8192*1024, 16384*1024
+ 8192*1024, 16384*1024, 65536*1024
};
SRAMLength = sramlen[type];
@@ -458,7 +458,8 @@ void CartRetail::LoadSave(const char* path, u32 type)
case 6:
case 7: SRAMType = 3; break; // FLASH
case 8:
- case 9: SRAMType = 4; break; // NAND
+ case 9:
+ case 10: SRAMType = 4; break; // NAND
default: SRAMType = 0; break; // ...whatever else
}
}
@@ -1508,7 +1509,7 @@ bool LoadROMCommon(u32 filelength, const char *sram, bool direct)
else
CartID |= (0x100 - (CartROMSize >> 28)) << 8;
- if (romparams.SaveMemType == 8 || romparams.SaveMemType == 9)
+ if (romparams.SaveMemType >= 8 && romparams.SaveMemType <= 10)
CartID |= 0x08000000; // NAND flag
if (CartIsDSi)
diff --git a/src/ROMList.h b/src/ROMList.h
index c853fc1..af2eab1 100644
--- a/src/ROMList.h
+++ b/src/ROMList.h
@@ -6384,7 +6384,7 @@ ROMListEntry ROMList[] =
{0x564A4956, 0x08000000, 0x00000003},
{0x564B4356, 0x08000000, 0x00000002},
{0x564B4D56, 0x02000000, 0x00000003},
- {0x564B5355, 0x08000000, 0xFFFFFFFF},
+ {0x564B5355, 0x08000000, 0x0000000A},
{0x564B5356, 0x04000000, 0x00000001},
{0x564C4156, 0x04000000, 0x00000002},
{0x564C4256, 0x02000000, 0x00000002},