mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Add a hotkey for inserting/ejecting the SD card
This commit is contained in:
@ -18,6 +18,7 @@
|
||||
#include "Core/Config/MainSettings.h"
|
||||
#include "Core/ConfigManager.h"
|
||||
#include "Core/Core.h"
|
||||
#include "Core/IOS/IOS.h"
|
||||
#include "Core/NetPlayClient.h"
|
||||
#include "Core/NetPlayServer.h"
|
||||
|
||||
@ -534,6 +535,24 @@ void Settings::SetBatchModeEnabled(bool batch)
|
||||
m_batch = batch;
|
||||
}
|
||||
|
||||
bool Settings::IsSDCardInserted() const
|
||||
{
|
||||
return SConfig::GetInstance().m_WiiSDCard;
|
||||
}
|
||||
|
||||
void Settings::SetSDCardInserted(bool inserted)
|
||||
{
|
||||
if (IsSDCardInserted() != inserted)
|
||||
{
|
||||
SConfig::GetInstance().m_WiiSDCard = inserted;
|
||||
emit SDCardInsertionChanged(inserted);
|
||||
|
||||
auto* ios = IOS::HLE::GetIOS();
|
||||
if (ios)
|
||||
ios->SDIO_EventNotify();
|
||||
}
|
||||
}
|
||||
|
||||
bool Settings::IsUSBKeyboardConnected() const
|
||||
{
|
||||
return SConfig::GetInstance().m_WiiKeyboard;
|
||||
|
Reference in New Issue
Block a user