aboutsummaryrefslogtreecommitdiff
path: root/src/DSi_SD.cpp
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2022-09-23 22:53:23 +0200
committerArisotura <thetotalworm@gmail.com>2022-09-23 22:53:23 +0200
commit86786738cc91dbea5f9dcdf0e147bd6615e1ca46 (patch)
tree090abb961c3b990517a8b5d6c5018d7801c71202 /src/DSi_SD.cpp
parentfc112580710a1a96b38ded2481e54a1ba42a3e0d (diff)
properly make the DSi NAND instance-unique
Diffstat (limited to 'src/DSi_SD.cpp')
-rw-r--r--src/DSi_SD.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/DSi_SD.cpp b/src/DSi_SD.cpp
index c6932d4..e603347 100644
--- a/src/DSi_SD.cpp
+++ b/src/DSi_SD.cpp
@@ -136,7 +136,10 @@ void DSi_SDHost::Reset()
else
sd = nullptr;
- mmc = new DSi_MMCStorage(this, true, Platform::GetConfigString(Platform::DSi_NANDPath));
+ std::string nandpath = Platform::GetConfigString(Platform::DSi_NANDPath);
+ std::string instnand = nandpath + Platform::InstanceFileSuffix();
+
+ mmc = new DSi_MMCStorage(this, true, instnand);
mmc->SetCID(DSi::eMMC_CID);
Ports[0] = sd;