Use config changed callback to detect SD insertion/ejection

This saves the GUI from having to manually call SDIO_EventNotify.
With that out of the way, we can let users change the
"Insert SD Card" setting on Android while a game is running.
This commit is contained in:
JosJuice
2022-01-25 22:04:58 +01:00
parent db0ca3fc96
commit 90c576e075
6 changed files with 40 additions and 31 deletions

View File

@ -705,10 +705,6 @@ void Settings::SetSDCardInserted(bool inserted)
{
Config::SetBaseOrCurrent(Config::MAIN_WII_SD_CARD, inserted);
emit SDCardInsertionChanged(inserted);
auto* ios = IOS::HLE::GetIOS();
if (ios)
ios->SDIO_EventNotify();
}
}