Change the snes performance core recording nag so that it doesn't allow the choice to continue, as of this commit we do not support the use of the performance profile for movie recording

This commit is contained in:
adelikat 2014-07-21 18:30:54 +00:00
parent ee93e988bc
commit bee1dfcb02
4 changed files with 421 additions and 421 deletions

View File

@ -55,7 +55,6 @@ namespace BizHawk.Client.Common
public string FFMpegPath = "%exe%/dll/ffmpeg.exe"; public string FFMpegPath = "%exe%/dll/ffmpeg.exe";
// General Client Settings // General Client Settings
public bool DontAskPerformanceCoreRecordingNag = false;
public int Input_Hotkey_OverrideOptions = 0; public int Input_Hotkey_OverrideOptions = 0;
public bool StackOSDMessages = true; public bool StackOSDMessages = true;
public int TargetZoomFactor = 2; public int TargetZoomFactor = 2;

View File

@ -7,7 +7,7 @@ using System.Text;
using System.Windows.Forms; using System.Windows.Forms;
// http://www.codeproject.com/Articles/154680/A-customizable-NET-WinForms-Message-Box // http://www.codeproject.com/Articles/154680/A-customizable-NET-WinForms-Message-Box
namespace BizHawk.Client.EmuHawk namespace BizHawk.Client.EmuHawk.CustomControls
{ {
/// <summary> /// <summary>
/// A customizable Dialog box with 3 buttons, custom icon, and checkbox. /// A customizable Dialog box with 3 buttons, custom icon, and checkbox.
@ -342,7 +342,7 @@ namespace BizHawk.Client.EmuHawk
#endregion #endregion
} }
enum DialogBoxResult public enum DialogBoxResult
{ {
Button1, Button1,
Button2, Button2,

View File

@ -1,4 +1,4 @@
namespace BizHawk.Client.EmuHawk namespace BizHawk.Client.EmuHawk.CustomControls
{ {
partial class MsgBox partial class MsgBox
{ {

View File

@ -3,8 +3,8 @@ using System.Drawing;
using System.IO; using System.IO;
using System.Windows.Forms; using System.Windows.Forms;
using BizHawk.Client.Common;
using BizHawk.Emulation.Common; using BizHawk.Emulation.Common;
using BizHawk.Emulation.Common.IEmulatorExtensions;
using BizHawk.Emulation.Cores.Calculators; using BizHawk.Emulation.Cores.Calculators;
using BizHawk.Emulation.Cores.ColecoVision; using BizHawk.Emulation.Cores.ColecoVision;
using BizHawk.Emulation.Cores.Nintendo.Gameboy; using BizHawk.Emulation.Cores.Nintendo.Gameboy;
@ -13,8 +13,10 @@ using BizHawk.Emulation.Cores.Nintendo.SNES;
using BizHawk.Emulation.Cores.PCEngine; using BizHawk.Emulation.Cores.PCEngine;
using BizHawk.Emulation.Cores.Sega.MasterSystem; using BizHawk.Emulation.Cores.Sega.MasterSystem;
using BizHawk.Emulation.Cores.Consoles.Nintendo.QuickNES; using BizHawk.Emulation.Cores.Consoles.Nintendo.QuickNES;
using BizHawk.Client.Common;
using BizHawk.Client.EmuHawk.config.NES; using BizHawk.Client.EmuHawk.config.NES;
using BizHawk.Emulation.Common.IEmulatorExtensions; using BizHawk.Client.EmuHawk.CustomControls;
namespace BizHawk.Client.EmuHawk namespace BizHawk.Client.EmuHawk
{ {
@ -404,21 +406,20 @@ namespace BizHawk.Client.EmuHawk
else if (Global.Emulator is LibsnesCore) else if (Global.Emulator is LibsnesCore)
{ {
var ss = (LibsnesCore.SnesSyncSettings)Global.Emulator.GetSyncSettings(); var ss = (LibsnesCore.SnesSyncSettings)Global.Emulator.GetSyncSettings();
if (ss.Profile == "Performance" && !Global.Config.DontAskPerformanceCoreRecordingNag) if (ss.Profile == "Performance")
{ {
var box = new MsgBox( var box = new MsgBox(
"While the performance core is faster, it is recommended that you use the Compatibility profile when recording movies for better accuracy and stability\n\nSwitch to Compatibility?", "While the performance core is faster, it is not stable enough for movie recording\n\nSwitch to Compatibility?",
"Stability Warning", "Stability Warning",
MessageBoxIcon.Warning); MessageBoxIcon.Warning);
box.SetButtons( box.SetButtons(
new[] { "Switch", "Continue", "Cancel" }, new[] { "Switch", "Cancel" },
new[] { DialogResult.Yes, DialogResult.No, DialogResult.Cancel }); new[] { DialogResult.Yes, DialogResult.Cancel });
box.SetCheckbox("Don't ask me again");
box.MaximumSize = new Size(450, 350); box.MaximumSize = new Size(450, 350);
box.SetMessageToAutoSize(); box.SetMessageToAutoSize();
var result = box.ShowDialog(); var result = box.ShowDialog();
Global.Config.DontAskPerformanceCoreRecordingNag = box.CheckboxChecked;
if (result == DialogResult.Yes) if (result == DialogResult.Yes)
{ {