mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-04-24 23:32:39 -05:00
BootManager: Automatically attach Triforce Baseboard hardware.
This commit is contained in:
parent
6a53c8f512
commit
b15c593eec
|
|
@ -133,6 +133,21 @@ bool BootCore(Core::System& system, std::unique_ptr<BootParameters> boot,
|
|||
if (!boot->riivolution_patches.empty())
|
||||
Config::SetCurrent(Config::MAIN_FAST_DISC_SPEED, true);
|
||||
|
||||
if (system.IsTriforce())
|
||||
{
|
||||
// Attach Triforce Baseboard hardware if not overridden in any layer.
|
||||
// Users may set these in their GameConfig if they want them not automatically attached.
|
||||
if (GetActiveLayerForConfig(Config::MAIN_SERIAL_PORT_1) == Config::LayerType::Base)
|
||||
{
|
||||
Config::SetCurrent(Config::MAIN_SERIAL_PORT_1, ExpansionInterface::EXIDeviceType::Baseboard);
|
||||
}
|
||||
if (GetActiveLayerForConfig(Config::GetInfoForSIDevice(0)) == Config::LayerType::Base)
|
||||
{
|
||||
Config::SetCurrent(Config::GetInfoForSIDevice(0),
|
||||
SerialInterface::SIDevices::SIDEVICE_AM_BASEBOARD);
|
||||
}
|
||||
}
|
||||
|
||||
system.Initialize();
|
||||
|
||||
Core::UpdateWantDeterminism(system, /*initial*/ true);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user