From a3a6dcabda10b99eac48d16ff91221e4be181c37 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Tue, 10 Aug 2021 21:42:44 -0700 Subject: [PATCH 1/2] UI: Fix reset of alt speed options in settings. --- UI/GameSettingsScreen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UI/GameSettingsScreen.cpp b/UI/GameSettingsScreen.cpp index 441e57ae63..382ca9cbfc 100644 --- a/UI/GameSettingsScreen.cpp +++ b/UI/GameSettingsScreen.cpp @@ -1218,9 +1218,6 @@ UI::EventReturn GameSettingsScreen::OnDumpNextFrameToLog(UI::EventParams &e) { void GameSettingsScreen::update() { UIScreen::update(); - g_Config.iFpsLimit1 = iAlternateSpeedPercent1_ < 0 ? -1 : (iAlternateSpeedPercent1_ * 60) / 100; - g_Config.iFpsLimit2 = iAlternateSpeedPercent2_ < 0 ? -1 : (iAlternateSpeedPercent2_ * 60) / 100; - bool vertical = UseVerticalLayout(); if (vertical != lastVertical_) { RecreateViews(); @@ -1266,6 +1263,9 @@ void GameSettingsScreen::sendMessage(const char *message, const char *value) { void GameSettingsScreen::dialogFinished(const Screen *dialog, DialogResult result) { if (result == DialogResult::DR_OK) { + g_Config.iFpsLimit1 = iAlternateSpeedPercent1_ < 0 ? -1 : (iAlternateSpeedPercent1_ * 60) / 100; + g_Config.iFpsLimit2 = iAlternateSpeedPercent2_ < 0 ? -1 : (iAlternateSpeedPercent2_ * 60) / 100; + RecreateViews(); } } From bd0881a0abc9de5dc0156947ef9cc55c5770f747 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Tue, 10 Aug 2021 21:43:04 -0700 Subject: [PATCH 2/2] UI: Fix enable/disable of reporting outside game. --- Core/Reporting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Reporting.cpp b/Core/Reporting.cpp index 4e69f353ee..49e9565564 100644 --- a/Core/Reporting.cpp +++ b/Core/Reporting.cpp @@ -523,7 +523,7 @@ namespace Reporting // Don't report from games without a version ID (i.e. random hashed homebrew IDs.) // The problem is, these aren't useful because the hashes end up different for different people. // TODO: Should really hash the ELF instead of the path, but then that affects savestates/cheats. - if (g_paramSFO.GetValueString("DISC_VERSION").empty()) + if (PSP_IsInited() && g_paramSFO.GetValueString("DISC_VERSION").empty()) return false; // Some users run the exe from a zip or something, and don't have fonts.