Merge pull request #11646 from AdmiralCurtiss/si-class

HW/SerialInterface: Refactor to class.
This commit is contained in:
Mai
2023-03-13 13:09:51 -04:00
committed by GitHub
28 changed files with 533 additions and 520 deletions

View File

@ -19,6 +19,7 @@
#include "Core/HW/SI/SI.h"
#include "Core/HW/SI/SI_Device.h"
#include "Core/NetPlayProto.h"
#include "Core/System.h"
#include "DolphinQt/Config/Mapping/GCPadWiiUConfigDialog.h"
#include "DolphinQt/Config/Mapping/MappingWindow.h"
@ -192,7 +193,10 @@ void GamecubeControllersWidget::SaveSettings()
Config::SetBaseOrCurrent(Config::GetInfoForSIDevice(static_cast<int>(i)), si_device);
if (Core::IsRunning())
SerialInterface::ChangeDevice(si_device, static_cast<s32>(i));
{
Core::System::GetInstance().GetSerialInterface().ChangeDevice(si_device,
static_cast<s32>(i));
}
}
if (GCAdapter::UseAdapter())