aboutsummaryrefslogtreecommitdiff
path: root/src/NDSCart.cpp
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2021-04-30 01:13:35 +0200
committerArisotura <thetotalworm@gmail.com>2021-04-30 01:13:35 +0200
commit8a5078abe3c5d4cc86c4e7e5a8b41f6e9e56d992 (patch)
treecba8d416984210630ea868a246bdb6355934173c /src/NDSCart.cpp
parent0a718adc77798a8547792529623ae35d61d719ef (diff)
support savemem for Face Training (NAND, atleast 32MB, likely 64MB)
Diffstat (limited to 'src/NDSCart.cpp')
-rw-r--r--src/NDSCart.cpp7
1 files changed, 4 insertions, 3 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)