From 333b1247d9f42bd200f43f64cbe76daad52e779d Mon Sep 17 00:00:00 2001 From: Arisotura Date: Sun, 21 Nov 2021 16:05:48 +0100 Subject: remove remains of SDIOFile --- src/DSi.cpp | 5 +---- src/DSi.h | 1 - src/frontend/Util_ROM.cpp | 9 --------- 3 files changed, 1 insertion(+), 14 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3