From 7ac538d5d2dd4ad44eab9f44d0b016e38ac51d0e Mon Sep 17 00:00:00 2001 From: StapleButter Date: Tue, 25 Apr 2017 03:24:22 +0200 Subject: [PATCH] better heuristic for Flash save type --- src/NDSCart.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NDSCart.cpp b/src/NDSCart.cpp index cf52009b..bdace7e4 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; }