GeneralPane: Add Hardcore Mode tooltip clarifications
When Hardcore Mode is active, clarify in the Enable Cheats tooltip that the setting is disabled, and in the Speed Limit tooltip that values less than 100% won't slow emulation. Addresses https://bugs.dolphin-emu.org/issues/13639.
This commit is contained in:
parent
2cb124bd3a
commit
1aa7efb56c
|
@ -97,6 +97,8 @@ void GeneralPane::OnEmulationStateChanged(Core::State state)
|
|||
m_checkbox_discord_presence->setEnabled(!running);
|
||||
#endif
|
||||
m_combobox_fallback_region->setEnabled(!running);
|
||||
|
||||
UpdateDescriptionsUsingHardcoreStatus(hardcore);
|
||||
}
|
||||
|
||||
void GeneralPane::ConnectLayout()
|
||||
|
@ -375,11 +377,6 @@ void GeneralPane::AddDescriptions()
|
|||
"improves performance. However, it can result in glitches and crashes."
|
||||
"<br><br>This setting cannot be changed while emulation is active."
|
||||
"<br><br><dolphin_emphasis>If unsure, leave this checked.</dolphin_emphasis>");
|
||||
static constexpr char TR_CHEATS_DESCRIPTION[] = QT_TR_NOOP(
|
||||
"Enables the use of AR and Gecko cheat codes which can be used to modify games' behavior. "
|
||||
"These codes can be configured with the Cheats Manager in the Tools menu."
|
||||
"<br><br>This setting cannot be changed while emulation is active."
|
||||
"<br><br><dolphin_emphasis>If unsure, leave this unchecked.</dolphin_emphasis>");
|
||||
static constexpr char TR_OVERRIDE_REGION_SETTINGS_DESCRIPTION[] =
|
||||
QT_TR_NOOP("Lets you use languages and other region-related settings that the game may not "
|
||||
"be designed for. May cause various crashes and bugs."
|
||||
|
@ -400,12 +397,6 @@ void GeneralPane::AddDescriptions()
|
|||
"<br><br>This setting cannot be changed while emulation is active."
|
||||
"<br><br><dolphin_emphasis>If unsure, leave this checked.</dolphin_emphasis>");
|
||||
#endif
|
||||
static constexpr char TR_SPEEDLIMIT_DESCRIPTION[] =
|
||||
QT_TR_NOOP("Controls how fast emulation runs relative to the original hardware."
|
||||
"<br><br>Values higher than 100% will emulate faster than the original hardware "
|
||||
"can run, if your hardware is able to keep up. Values lower than 100% will slow "
|
||||
"emulation instead. Unlimited will emulate as fast as your hardware is able to."
|
||||
"<br><br><dolphin_emphasis>If unsure, select 100%.</dolphin_emphasis>");
|
||||
static constexpr char TR_UPDATE_TRACK_DESCRIPTION[] = QT_TR_NOOP(
|
||||
"Selects which update track Dolphin uses when checking for updates at startup. If a new "
|
||||
"update is available, Dolphin will show a list of changes made since your current version "
|
||||
|
@ -442,8 +433,6 @@ void GeneralPane::AddDescriptions()
|
|||
|
||||
m_checkbox_dualcore->SetDescription(tr(TR_DUALCORE_DESCRIPTION));
|
||||
|
||||
m_checkbox_cheats->SetDescription(tr(TR_CHEATS_DESCRIPTION));
|
||||
|
||||
m_checkbox_override_region_settings->SetDescription(tr(TR_OVERRIDE_REGION_SETTINGS_DESCRIPTION));
|
||||
|
||||
m_checkbox_auto_disc_change->SetDescription(tr(TR_AUTO_DISC_CHANGE_DESCRIPTION));
|
||||
|
@ -453,7 +442,6 @@ void GeneralPane::AddDescriptions()
|
|||
#endif
|
||||
|
||||
m_combobox_speedlimit->SetTitle(tr("Speed Limit"));
|
||||
m_combobox_speedlimit->SetDescription(tr(TR_SPEEDLIMIT_DESCRIPTION));
|
||||
|
||||
if (AutoUpdateChecker::SystemSupportsAutoUpdates())
|
||||
{
|
||||
|
@ -471,3 +459,39 @@ void GeneralPane::AddDescriptions()
|
|||
m_button_generate_new_identity->SetDescription(tr(TR_GENERATE_NEW_IDENTITY_DESCRIPTION));
|
||||
#endif
|
||||
}
|
||||
|
||||
void GeneralPane::UpdateDescriptionsUsingHardcoreStatus(const bool enabled)
|
||||
{
|
||||
static constexpr char TR_CHEATS_DESCRIPTION[] = QT_TR_NOOP(
|
||||
"Enables the use of AR and Gecko cheat codes which can be used to modify games' behavior. "
|
||||
"These codes can be configured with the Cheats Manager in the Tools menu."
|
||||
"<br><br>This setting cannot be changed while emulation is active."
|
||||
"<br><br><dolphin_emphasis>If unsure, leave this unchecked.</dolphin_emphasis>");
|
||||
static constexpr char TR_SPEEDLIMIT_DESCRIPTION[] =
|
||||
QT_TR_NOOP("Controls how fast emulation runs relative to the original hardware."
|
||||
"<br><br>Values higher than 100% will emulate faster than the original hardware "
|
||||
"can run, if your hardware is able to keep up. Values lower than 100% will slow "
|
||||
"emulation instead. Unlimited will emulate as fast as your hardware is able to."
|
||||
"<br><br><dolphin_emphasis>If unsure, select 100%.</dolphin_emphasis>");
|
||||
static constexpr char TR_DISABLED_IN_HARDCORE_DESCRIPTION[] =
|
||||
QT_TR_NOOP("<dolphin_emphasis>Disabled in Hardcore Mode.</dolphin_emphasis>");
|
||||
static constexpr char TR_SPEEDLIMIT_RESTRICTION_IN_HARDCORE_DESCRIPTION[] =
|
||||
QT_TR_NOOP("<dolphin_emphasis>When Hardcore Mode is enabled, Speed Limit values less than "
|
||||
"100% will be treated as 100%.</dolphin_emphasis>");
|
||||
|
||||
if (enabled)
|
||||
{
|
||||
m_checkbox_cheats->SetDescription(tr("%1<br><br>%2")
|
||||
.arg(tr(TR_CHEATS_DESCRIPTION))
|
||||
.arg(tr(TR_DISABLED_IN_HARDCORE_DESCRIPTION)));
|
||||
m_combobox_speedlimit->SetDescription(
|
||||
tr("%1<br><br>%2")
|
||||
.arg(tr(TR_SPEEDLIMIT_DESCRIPTION))
|
||||
.arg(tr(TR_SPEEDLIMIT_RESTRICTION_IN_HARDCORE_DESCRIPTION)));
|
||||
}
|
||||
else
|
||||
{
|
||||
m_checkbox_cheats->SetDescription(tr(TR_CHEATS_DESCRIPTION));
|
||||
m_combobox_speedlimit->SetDescription(tr(TR_SPEEDLIMIT_DESCRIPTION));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,6 +39,7 @@ private:
|
|||
void LoadConfig();
|
||||
void OnSaveConfig();
|
||||
void OnEmulationStateChanged(Core::State state);
|
||||
void UpdateDescriptionsUsingHardcoreStatus(bool enabled);
|
||||
|
||||
// Widgets
|
||||
QVBoxLayout* m_main_layout;
|
||||
|
|
Loading…
Reference in New Issue