From 334fc1717d30dd8aa5d1106fe29666db5beefef5 Mon Sep 17 00:00:00 2001 From: RSDuck Date: Sun, 21 Aug 2022 19:52:23 +0200 Subject: [PATCH] fix DSi SD newly inserted/removed IRQ bits we don't support SD card hot swapping and SDIO wifi is always inserted, so those bits are always zero special thanks to Evie --- src/DSi_SD.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DSi_SD.cpp b/src/DSi_SD.cpp index 8879a26a..70aa2eab 100644 --- a/src/DSi_SD.cpp +++ b/src/DSi_SD.cpp @@ -477,7 +477,7 @@ u16 DSi_SDHost::Read(u32 addr) { if (Ports[0]) // basic check of whether the SD card is inserted { - ret |= 0x0030; + ret |= 0x0020; if (!Ports[0]->ReadOnly) ret |= 0x0080; } else @@ -486,7 +486,7 @@ u16 DSi_SDHost::Read(u32 addr) else { // SDIO wifi is always inserted, I guess - ret |= 0x00B0; + ret |= 0x00A0; } return ret; }