MainWindow: Remove the check preventing Triforce volumes from booting without the Baseboard hardware attached.
The hardware is now automatically attached later in the boot process.
This commit is contained in:
@@ -1152,29 +1152,15 @@ void MainWindow::StartGame(std::unique_ptr<BootParameters>&& parameters)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// When booting Triforce games, we need to ensure that the hardware is set up correctly.
|
|
||||||
const auto volume_type =
|
const auto volume_type =
|
||||||
std::get<BootParameters::Disc>(parameters->parameters).volume->GetVolumeType();
|
std::get<BootParameters::Disc>(parameters->parameters).volume->GetVolumeType();
|
||||||
|
if (volume_type != DiscIO::Platform::Triforce)
|
||||||
|
{
|
||||||
const bool triforce_hardware_sp1 =
|
const bool triforce_hardware_sp1 =
|
||||||
Config::Get(Config::MAIN_SERIAL_PORT_1) == ExpansionInterface::EXIDeviceType::Baseboard;
|
Config::Get(Config::MAIN_SERIAL_PORT_1) == ExpansionInterface::EXIDeviceType::Baseboard;
|
||||||
const bool triforce_hardware_port_1 = Config::Get(Config::GetInfoForSIDevice(0)) ==
|
const bool triforce_hardware_port_1 = Config::Get(Config::GetInfoForSIDevice(0)) ==
|
||||||
SerialInterface::SIDevices::SIDEVICE_AM_BASEBOARD;
|
SerialInterface::SIDevices::SIDEVICE_AM_BASEBOARD;
|
||||||
|
|
||||||
if (volume_type == DiscIO::Platform::Triforce)
|
|
||||||
{
|
|
||||||
if (!triforce_hardware_sp1 || !triforce_hardware_port_1)
|
|
||||||
{
|
|
||||||
ModalMessageBox::critical(
|
|
||||||
this, tr("Error"),
|
|
||||||
tr("To boot a Triforce game, SP1 and Port 1 must be set to Triforce Baseboard."),
|
|
||||||
QMessageBox::Ok);
|
|
||||||
HideRenderWidget();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Some Triforce tools don't include a boot.id file, but they can still be launched.
|
// Some Triforce tools don't include a boot.id file, but they can still be launched.
|
||||||
if (triforce_hardware_sp1)
|
if (triforce_hardware_sp1)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user