aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/DSi.cpp5
-rw-r--r--src/DSi.h1
-rw-r--r--src/frontend/Util_ROM.cpp9
3 files changed, 1 insertions, 14 deletions
diff --git a/src/DSi.cpp b/src/DSi.cpp
index 1150d74..692a700 100644
--- a/src/DSi.cpp
+++ b/src/DSi.cpp
@@ -79,8 +79,7 @@ DSi_NDMA* NDMAs[8];
DSi_SDHost* SDMMC;
DSi_SDHost* SDIO;
-FILE* SDMMCFile;
-FILE* SDIOFile;
+FILE* SDMMCFile = nullptr;
u64 ConsoleID;
u8 eMMC_CID[16];
@@ -827,8 +826,6 @@ void CloseDSiNAND()
{
if (DSi::SDMMCFile)
fclose(DSi::SDMMCFile);
- if (DSi::SDIOFile)
- fclose(DSi::SDIOFile);
}
void RunNDMAs(u32 cpu)
diff --git a/src/DSi.h b/src/DSi.h
index 187dc52..1236527 100644
--- a/src/DSi.h
+++ b/src/DSi.h
@@ -40,7 +40,6 @@ extern DSi_SDHost* SDMMC;
extern DSi_SDHost* SDIO;
extern FILE* SDMMCFile;
-extern FILE* SDIOFile;
const u32 NWRAMSize = 0x40000;
diff --git a/src/frontend/Util_ROM.cpp b/src/frontend/Util_ROM.cpp
index 2fb8dac..4d23c70 100644
--- a/src/frontend/Util_ROM.cpp
+++ b/src/frontend/Util_ROM.cpp
@@ -223,15 +223,6 @@ int SetupDSiNAND()
DSi::SDMMCFile = f;
- /*if (Config::DSiSDEnable)
- {
- f = Platform::OpenLocalFile(Config::DSiSDPath, "r+b");
- if (f)
- DSi::SDIOFile = f;
- else
- DSi::SDIOFile = Platform::OpenLocalFile(Config::DSiSDPath, "w+b");
- }*/
-
return Load_OK;
}