aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2017-04-25 03:24:22 +0200
committerStapleButter <thetotalworm@gmail.com>2017-04-25 03:24:22 +0200
commit7ac538d5d2dd4ad44eab9f44d0b016e38ac51d0e (patch)
treee410ae58e946aeb779033eb4097c0f0880f101a6 /src
parent9b5f293a9e9f720e7b0939cf37c413481c4e156c (diff)
better heuristic for Flash save type
Diffstat (limited to 'src')
-rw-r--r--src/NDSCart.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/NDSCart.cpp b/src/NDSCart.cpp
index cf52009..bdace7e 100644
--- a/src/NDSCart.cpp
+++ b/src/NDSCart.cpp
@@ -246,7 +246,7 @@ void Write_Discover(u8 val, bool islast)
{
Discover_MemoryType = 5;
}
- else if (len > 2+128) // Flash
+ else if ((len > 2+128) || (len > 1+16 && CurCmd == 0xA)) // Flash
{
Discover_MemoryType = 4;
}