aboutsummaryrefslogtreecommitdiff
path: root/src/NDSCart.cpp
diff options
context:
space:
mode:
authorRaphaƫl Zumer <rzumer@tebako.net>2021-05-16 12:15:34 -0400
committerGitHub <noreply@github.com>2021-05-16 18:15:34 +0200
commit4a39a8421698d933c60fdcd82d2e828acf1fe9f0 (patch)
treeb308593863649247bebb8e8a13a519181cc24a7e /src/NDSCart.cpp
parenteb7bedfc79d9c86ea4628dd12293d17d28dfcfef (diff)
Propagate common ImportSRAM return value from NAND cartridge function (#1104)
Diffstat (limited to 'src/NDSCart.cpp')
-rw-r--r--src/NDSCart.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/NDSCart.cpp b/src/NDSCart.cpp
index af70cbd..a0bd68c 100644
--- a/src/NDSCart.cpp
+++ b/src/NDSCart.cpp
@@ -887,8 +887,9 @@ void CartRetailNAND::LoadSave(const char* path, u32 type)
int CartRetailNAND::ImportSRAM(const u8* data, u32 length)
{
- CartRetail::ImportSRAM(data, length);
+ int ret = CartRetail::ImportSRAM(data, length);
BuildSRAMID();
+ return ret;
}
int CartRetailNAND::ROMCommandStart(u8* cmd, u8* data, u32 len)