From 61a144ba06b4163712663b4d4908a5eb408bdefd Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Mon, 9 May 2022 13:12:57 -0700 Subject: [PATCH] Show a panic alert if movie is missing its starting savestate --- Source/Core/Core/Movie.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Source/Core/Core/Movie.cpp b/Source/Core/Core/Movie.cpp index 17d33d2238..938a17f2eb 100644 --- a/Source/Core/Core/Movie.cpp +++ b/Source/Core/Core/Movie.cpp @@ -985,7 +985,16 @@ bool PlayInput(const std::string& movie_path, std::optional* savest { const std::string savestate_path_temp = movie_path + ".sav"; if (File::Exists(savestate_path_temp)) + { *savestate_path = savestate_path_temp; + } + else + { + PanicAlertFmtT("Movie {0} indicates that it starts from a savestate, but {1} doesn't exist. " + "The movie will likely not sync!", + movie_path, savestate_path_temp); + } + s_bRecordingFromSaveState = true; Movie::LoadInput(movie_path); }