Skip to content

Commit

Permalink
fix DSi SD newly inserted/removed IRQ bits
Browse files Browse the repository at this point in the history
we don't support SD card hot swapping and SDIO wifi is always inserted, so those bits are always zero
special thanks to Evie
  • Loading branch information
RSDuck committed Aug 21, 2022
1 parent f0657e1 commit 334fc17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DSi_SD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -486,7 +486,7 @@ u16 DSi_SDHost::Read(u32 addr)
else
{
// SDIO wifi is always inserted, I guess
ret |= 0x00B0;
ret |= 0x00A0;
}
return ret;
}
Expand Down

0 comments on commit 334fc17

Please sign in to comment.