Qt: Hide apply image patches in game settings

Doesn't makes sense, because game settings are applied after
identification.
This commit is contained in:
Stenzek 2025-07-22 20:18:18 +10:00
parent a34aee68a7
commit a5826ea6ae
No known key found for this signature in database
4 changed files with 33 additions and 16 deletions

View File

@ -4407,7 +4407,8 @@ void FullscreenUI::DrawConsoleSettingsPage()
static constexpr std::array cdrom_read_seek_speed_values = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 0}; static constexpr std::array cdrom_read_seek_speed_values = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 0};
SettingsInterface* bsi = GetEditingSettingsInterface(); SettingsInterface* const bsi = GetEditingSettingsInterface();
const bool game_settings = IsEditingGameSettings(bsi);
BeginMenuButtons(); BeginMenuButtons();
ResetFocusHere(); ResetFocusHere();
@ -4492,10 +4493,17 @@ void FullscreenUI::DrawConsoleSettingsPage()
bsi, FSUI_ICONVSTR(ICON_FA_DOWNLOAD, "Preload Images to RAM"), bsi, FSUI_ICONVSTR(ICON_FA_DOWNLOAD, "Preload Images to RAM"),
FSUI_VSTR("Loads the game image into RAM. Useful for network paths that may become unreliable during gameplay."), FSUI_VSTR("Loads the game image into RAM. Useful for network paths that may become unreliable during gameplay."),
"CDROM", "LoadImageToRAM", false); "CDROM", "LoadImageToRAM", false);
DrawToggleSetting( if (!game_settings)
bsi, FSUI_ICONVSTR(ICON_FA_VEST_PATCHES, "Apply Image Patches"), {
FSUI_VSTR("Automatically applies patches to disc images when they are present, currently only PPF is supported."), DrawToggleSetting(
"CDROM", "LoadImagePatches", false); bsi, FSUI_ICONVSTR(ICON_FA_VEST_PATCHES, "Apply Image Patches"),
FSUI_VSTR("Automatically applies patches to disc images when they are present, currently only PPF is supported."),
"CDROM", "LoadImagePatches", false);
DrawToggleSetting(bsi, FSUI_ICONVSTR(ICON_FA_BAN, "Ignore Drive Subcode"),
FSUI_VSTR("Ignores the subchannel provided by the drive when using physical discs, instead "
"always generating subchannel data. Can improve read reliability on some drives."),
"CDROM", "IgnoreHostSubcode", false);
}
DrawToggleSetting(bsi, FSUI_ICONVSTR(ICON_FA_LIST_OL, "Switch to Next Disc on Stop"), DrawToggleSetting(bsi, FSUI_ICONVSTR(ICON_FA_LIST_OL, "Switch to Next Disc on Stop"),
FSUI_VSTR("Automatically switches to the next disc in the game when the game stops the CD-ROM " FSUI_VSTR("Automatically switches to the next disc in the game when the game stops the CD-ROM "
"motor. Does not work for all games."), "motor. Does not work for all games."),
@ -9675,6 +9683,8 @@ TRANSLATE_NOOP("FullscreenUI", "Identifies any new files added to the game direc
TRANSLATE_NOOP("FullscreenUI", "If enabled, the display will be blended with the transparency of the overlay image."); TRANSLATE_NOOP("FullscreenUI", "If enabled, the display will be blended with the transparency of the overlay image.");
TRANSLATE_NOOP("FullscreenUI", "If enabled, the transparency of the overlay image will be applied."); TRANSLATE_NOOP("FullscreenUI", "If enabled, the transparency of the overlay image will be applied.");
TRANSLATE_NOOP("FullscreenUI", "If not enabled, the current post processing chain will be ignored."); TRANSLATE_NOOP("FullscreenUI", "If not enabled, the current post processing chain will be ignored.");
TRANSLATE_NOOP("FullscreenUI", "Ignore Drive Subcode");
TRANSLATE_NOOP("FullscreenUI", "Ignores the subchannel provided by the drive when using physical discs, instead always generating subchannel data. Can improve read reliability on some drives.");
TRANSLATE_NOOP("FullscreenUI", "Image Path"); TRANSLATE_NOOP("FullscreenUI", "Image Path");
TRANSLATE_NOOP("FullscreenUI", "In the form below, specify the URLs to download covers from, with one template URL per line. The following variables are available:"); TRANSLATE_NOOP("FullscreenUI", "In the form below, specify the URLs to download covers from, with one template URL per line. The following variables are available:");
TRANSLATE_NOOP("FullscreenUI", "Includes the elapsed time since the application start in file logs."); TRANSLATE_NOOP("FullscreenUI", "Includes the elapsed time since the application start in file logs.");

View File

@ -66,18 +66,22 @@ ConsoleSettingsWidget::ConsoleSettingsWidget(SettingsWindow* dialog, QWidget* pa
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.enableCPUClockSpeedControl, "CPU", "OverclockEnable", false); SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.enableCPUClockSpeedControl, "CPU", "OverclockEnable", false);
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.recompilerICache, "CPU", "RecompilerICache", false); SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.recompilerICache, "CPU", "RecompilerICache", false);
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.cdromLoadImageToRAM, "CDROM", "LoadImageToRAM", false); SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.cdromLoadImageToRAM, "CDROM", "LoadImageToRAM", false);
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.cdromLoadImagePatches, "CDROM", "LoadImagePatches", false);
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.cdromAutoDiscChange, "CDROM", "AutoDiscChange", false); SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.cdromAutoDiscChange, "CDROM", "AutoDiscChange", false);
if (!m_dialog->isPerGameSettings()) if (!m_dialog->isPerGameSettings())
{ {
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.cdromLoadImagePatches, "CDROM", "LoadImagePatches", false);
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.cdromIgnoreDriveSubcode, "CDROM", "IgnoreHostSubcode", SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.cdromIgnoreDriveSubcode, "CDROM", "IgnoreHostSubcode",
false); false);
} }
else else
{ {
m_ui.cdromGridLayout->removeWidget(m_ui.cdromIgnoreDriveSubcode);
m_ui.cdromIgnoreDriveSubcode->setEnabled(false); delete m_ui.cdromIgnoreDriveSubcode;
m_ui.cdromIgnoreDriveSubcode = nullptr;
m_ui.cdromGridLayout->removeWidget(m_ui.cdromLoadImagePatches);
delete m_ui.cdromLoadImagePatches;
m_ui.cdromLoadImagePatches = nullptr;
} }
SettingWidgetBinder::BindWidgetToIntSetting(sif, m_ui.cdromSeekSpeedup, "CDROM", "SeekSpeedup", 1, SettingWidgetBinder::BindWidgetToIntSetting(sif, m_ui.cdromSeekSpeedup, "CDROM", "SeekSpeedup", 1,

View File

@ -308,7 +308,7 @@
</widget> </widget>
</item> </item>
<item row="2" column="0" colspan="2"> <item row="2" column="0" colspan="2">
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="cdromGridLayout">
<item row="0" column="0"> <item row="0" column="0">
<widget class="QCheckBox" name="cdromLoadImageToRAM"> <widget class="QCheckBox" name="cdromLoadImageToRAM">
<property name="text"> <property name="text">
@ -316,13 +316,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="1">
<widget class="QCheckBox" name="cdromLoadImagePatches">
<property name="text">
<string>Apply Image Patches</string>
</property>
</widget>
</item>
<item row="1" column="1"> <item row="1" column="1">
<widget class="QCheckBox" name="cdromIgnoreDriveSubcode"> <widget class="QCheckBox" name="cdromIgnoreDriveSubcode">
<property name="text"> <property name="text">
@ -331,6 +324,13 @@
</widget> </widget>
</item> </item>
<item row="1" column="0"> <item row="1" column="0">
<widget class="QCheckBox" name="cdromLoadImagePatches">
<property name="text">
<string>Apply Image Patches</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QCheckBox" name="cdromAutoDiscChange"> <widget class="QCheckBox" name="cdromAutoDiscChange">
<property name="text"> <property name="text">
<string>Switch to Next Disc on Stop</string> <string>Switch to Next Disc on Stop</string>

View File

@ -352,6 +352,9 @@ void SettingsWindow::onClearSettingsClicked()
void SettingsWindow::registerWidgetHelp(QObject* object, QString title, QString recommended_value, QString text) void SettingsWindow::registerWidgetHelp(QObject* object, QString title, QString recommended_value, QString text)
{ {
if (!object)
return;
// construct rich text with formatted description // construct rich text with formatted description
QString full_text; QString full_text;
full_text += "<table width='100%' cellpadding='0' cellspacing='0'><tr><td><strong>"; full_text += "<table width='100%' cellpadding='0' cellspacing='0'><tr><td><strong>";