Add a warning in games that are affected badly by savestate timewarps

This commit is contained in:
Henrik Rydgård committed 2025-08-05 17:17:20 +02:00
1 parent 7537a17988
commit e29ba8f471
50 files changed
+112 -4

No files matched your search

+10
View File
@@ -373,6 +373,7 @@ void GamePauseScreen::CreateViews() {
auto pa = GetI18NCategory(I18NCat::PAUSE);
auto ac = GetI18NCategory(I18NCat::ACHIEVEMENTS);
auto nw = GetI18NCategory(I18NCat::NETWORKING);
auto di = GetI18NCategory(I18NCat::DIALOG);
root_ = new LinearLayout(ORIENT_HORIZONTAL);
@@ -440,6 +441,15 @@ void GamePauseScreen::CreateViews() {
}
if (showSavestateControls) {
if (PSP_CoreParameter().compat.flags().SaveStatesNotRecommended) {
LinearLayout *horiz = new LinearLayout(UI::ORIENT_HORIZONTAL);
leftColumnItems->Add(horiz);
horiz->Add(new NoticeView(NoticeLevel::WARN, pa->T("Using save states is not recommended in this game"), "", new LinearLayoutParams(1.0f)));
horiz->Add(new Button(di->T("More info")))->OnClick.Add([](UI::EventParams &e) {
System_LaunchUrl(LaunchUrlType::BROWSER_URL, "https://www.ppsspp.org/docs/troubleshooting/save-state-time-warps");
return UI::EVENT_DONE;
});
}
CreateSavestateControls(leftColumnItems, vertical);
} else {
// Let's show the active challenges.