mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
Config: Port WiiSDCard setting to new config system.
This commit is contained in:
parent
2aa44b10ba
commit
f19cf1753b
5 changed files with 9 additions and 12 deletions
|
@ -696,14 +696,14 @@ void Settings::SetBatchModeEnabled(bool batch)
|
|||
|
||||
bool Settings::IsSDCardInserted() const
|
||||
{
|
||||
return SConfig::GetInstance().m_WiiSDCard;
|
||||
return Config::Get(Config::MAIN_WII_SD_CARD);
|
||||
}
|
||||
|
||||
void Settings::SetSDCardInserted(bool inserted)
|
||||
{
|
||||
if (IsSDCardInserted() != inserted)
|
||||
{
|
||||
SConfig::GetInstance().m_WiiSDCard = inserted;
|
||||
Config::SetBaseOrCurrent(Config::MAIN_WII_SD_CARD, inserted);
|
||||
emit SDCardInsertionChanged(inserted);
|
||||
|
||||
auto* ios = IOS::HLE::GetIOS();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue