Prompt to disable cheats when starting movie playback (resolves #3389)
This commit is contained in:
parent
28c53cfa21
commit
7930a79cef
|
@ -13,6 +13,15 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
if (movie is null) throw new ArgumentNullException(paramName: nameof(movie));
|
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);
|
var oldPreferredCores = new Dictionary<string, string>(Config.PreferredCores);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue