Qt: Expose "Ignore Drive Subcode" option

This commit is contained in:
Stenzek 2024-03-26 00:49:49 +10:00
parent 98d2d866d6
commit 28fd6c0ea4
No known key found for this signature in database
2 changed files with 12 additions and 0 deletions

View File

@ -52,6 +52,7 @@ ConsoleSettingsWidget::ConsoleSettingsWidget(SettingsWindow* dialog, QWidget* pa
Settings::DEFAULT_CDROM_READAHEAD_SECTORS);
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.cdromLoadImageToRAM, "CDROM", "LoadImageToRAM", false);
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.cdromLoadImagePatches, "CDROM", "LoadImagePatches", false);
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.cdromIgnoreDriveSubcode, "CDROM", "IgnoreHostSubcode", false);
SettingWidgetBinder::BindWidgetToIntSetting(sif, m_ui.cdromSeekSpeedup, "CDROM", "SeekSpeedup", 1);
SettingWidgetBinder::BindWidgetToIntSetting(sif, m_ui.cdromReadSpeedup, "CDROM", "ReadSpeedup", 1, 1);
@ -100,6 +101,10 @@ ConsoleSettingsWidget::ConsoleSettingsWidget(SettingsWindow* dialog, QWidget* pa
dialog->registerWidgetHelp(m_ui.cdromLoadImagePatches, tr("Apply Image Patches"), tr("Unchecked"),
tr("Automatically applies patches to disc images when they are present in the same "
"directory. Currently only PPF patches are supported with this option."));
dialog->registerWidgetHelp(
m_ui.cdromIgnoreDriveSubcode, tr("Ignore Drive Subcode"), tr("Unchecked"),
tr("Ignores the subchannel provided by the drive when using physical discs, instead always generating subchannel "
"data. Won't work with libcrypt games, but can improve read reliability on some drives."));
m_ui.cpuClockSpeed->setEnabled(m_dialog->getEffectiveBoolValue("CPU", "OverclockEnable", false));

View File

@ -308,6 +308,13 @@
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QCheckBox" name="cdromIgnoreDriveSubcode">
<property name="text">
<string>Ignore Drive Subcode</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="0">