From 006ef96b195a333af2b9deae4387baf65562f231 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Thu, 14 Jun 2018 17:54:13 -0700 Subject: [PATCH] SaveState: Add a setting to ignore warnings. In case you like to collect old and obscure bugs - everyone's got a hobby. --- Core/Config.cpp | 1 + Core/Config.h | 1 + Core/SaveState.cpp | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Core/Config.cpp b/Core/Config.cpp index b458914d10..c3947bd22c 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -416,6 +416,7 @@ static ConfigSetting cpuSettings[] = { ConfigSetting("FastMemoryAccess", &g_Config.bFastMemory, true, true, true), ReportedConfigSetting("FuncReplacements", &g_Config.bFuncReplacements, true, true, true), ConfigSetting("HideSlowWarnings", &g_Config.bHideSlowWarnings, false, true, false), + ConfigSetting("HideStateWarnings", &g_Config.bHideStateWarnings, false, true, true), ConfigSetting("PreloadFunctions", &g_Config.bPreloadFunctions, false, true, true), ReportedConfigSetting("CPUSpeed", &g_Config.iLockedCPUSpeed, 0, true, true), diff --git a/Core/Config.h b/Core/Config.h index c7c7e02b13..978b15614f 100644 --- a/Core/Config.h +++ b/Core/Config.h @@ -129,6 +129,7 @@ public: bool bForceLagSync; bool bFuncReplacements; bool bHideSlowWarnings; + bool bHideStateWarnings; bool bPreloadFunctions; bool bSeparateSASThread; diff --git a/Core/SaveState.cpp b/Core/SaveState.cpp index 7b3fd33138..d665e33689 100644 --- a/Core/SaveState.cpp +++ b/Core/SaveState.cpp @@ -705,14 +705,14 @@ namespace SaveState callbackResult = Status::SUCCESS; hasLoadedState = true; - if (IsStale()) { + if (!g_Config.bHideStateWarnings && IsStale()) { // For anyone wondering why (too long to put on the screen in an osm): // Using save states instead of saves simulates many hour play sessions. // Sometimes this exposes game bugs that were rarely seen on real devices, // because few people played on a real PSP for 10 hours straight. callbackMessage = sc->T("Loaded. Save in game, restart, and load for less bugs."); callbackResult = Status::WARNING; - } else if (IsOldVersion()) { + } else if (!g_Config.bHideStateWarnings && IsOldVersion()) { // Save states also preserve bugs from old PPSSPP versions, so warn. callbackMessage = sc->T("Loaded. Save in game, restart, and load for less bugs."); callbackResult = Status::WARNING;