mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 06:20:26 +02:00
SaveState: Show warning on old / long use state.
Using save states instead of in game saves causes bugs in games, and preserves bugs from bad settings and old PPSSPP versions. This tells users when they might be affected.
This commit is contained in:
1 parent
6c494c3849
commit
a5efb85ab7
7 files changed
+101
-37
No files matched your search
+3
-3
@@ -238,9 +238,9 @@ void SaveSlotView::Draw(UIContext &dc) {
|
||||
UI::LinearLayout::Draw(dc);
|
||||
}
|
||||
|
||||
static void AfterSaveStateAction(bool status, const std::string &message, void *) {
|
||||
static void AfterSaveStateAction(SaveState::Status status, const std::string &message, void *) {
|
||||
if (!message.empty()) {
|
||||
osm.Show(message, 2.0);
|
||||
osm.Show(message, status == SaveState::Status::SUCCESS ? 2.0 : 5.0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -373,7 +373,7 @@ void GamePauseScreen::dialogFinished(const Screen *dialog, DialogResult dr) {
|
||||
ScreenshotViewScreen *s = (ScreenshotViewScreen *)dialog;
|
||||
int slot = s->GetSlot();
|
||||
g_Config.iCurrentStateSlot = slot;
|
||||
SaveState::LoadSlot(gamePath_, slot, SaveState::Callback(), 0);
|
||||
SaveState::LoadSlot(gamePath_, slot, &AfterSaveStateAction);
|
||||
|
||||
finishNextFrame_ = true;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user