Prompt to disable cheats when starting movie playback (resolves #3389)

This commit is contained in:
YoshiRulz 2022-10-08 10:42:10 +10:00
parent 28c53cfa21
commit 7930a79cef
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 9 additions and 0 deletions

View File

@ -13,6 +13,15 @@ namespace BizHawk.Client.EmuHawk
{
if (movie is null) throw new ArgumentNullException(paramName: nameof(movie));
if (CheatList.AnyActive)
{
var result = this.ModalMessageBox3(
caption: "Cheats warning",
text: "Continue playback with cheats enabled?\nChoosing \"No\" will disable cheats but not remove them.",
icon: EMsgBoxIcon.Question);
if (result is null) return false;
if (result is false) CheatList.DisableAll();
}
var oldPreferredCores = new Dictionary<string, string>(Config.PreferredCores);
try
{