diff options
author | RSDuck <RSDuck@users.noreply.github.com> | 2022-08-21 19:52:23 +0200 |
---|---|---|
committer | RSDuck <RSDuck@users.noreply.github.com> | 2022-08-21 19:52:23 +0200 |
commit | 334fc1717d30dd8aa5d1106fe29666db5beefef5 (patch) | |
tree | 57860e265e021a45d0a818b5c5a185d56488fd78 /src/DSi_SD.cpp | |
parent | f0657e1a9b0827c04e5512f1ab9b6949720eca78 (diff) |
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
Diffstat (limited to 'src/DSi_SD.cpp')
-rw-r--r-- | src/DSi_SD.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DSi_SD.cpp b/src/DSi_SD.cpp index 8879a26..70aa2ea 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; } |