BootManager: Automatically attach Triforce Baseboard hardware.
This commit is contained in:
1 parent
6a53c8f512
commit
b15c593eec
1 file changed
+15
@@ -133,6 +133,21 @@ bool BootCore(Core::System& system, std::unique_ptr<BootParameters> boot,
|
|||||||
if (!boot->riivolution_patches.empty())
|
if (!boot->riivolution_patches.empty())
|
||||||
Config::SetCurrent(Config::MAIN_FAST_DISC_SPEED, true);
|
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();
|
system.Initialize();
|
||||||
|
|
||||||
Core::UpdateWantDeterminism(system, /*initial*/ true);
|
Core::UpdateWantDeterminism(system, /*initial*/ true);
|
||||||
|
|||||||
Reference in new issue
Block a user