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:
parent
ee93e988bc
commit
bee1dfcb02
|
@ -55,7 +55,6 @@ namespace BizHawk.Client.Common
|
|||
public string FFMpegPath = "%exe%/dll/ffmpeg.exe";
|
||||
|
||||
// General Client Settings
|
||||
public bool DontAskPerformanceCoreRecordingNag = false;
|
||||
public int Input_Hotkey_OverrideOptions = 0;
|
||||
public bool StackOSDMessages = true;
|
||||
public int TargetZoomFactor = 2;
|
||||
|
|
|
@ -7,7 +7,7 @@ using System.Text;
|
|||
using System.Windows.Forms;
|
||||
|
||||
// http://www.codeproject.com/Articles/154680/A-customizable-NET-WinForms-Message-Box
|
||||
namespace BizHawk.Client.EmuHawk
|
||||
namespace BizHawk.Client.EmuHawk.CustomControls
|
||||
{
|
||||
/// <summary>
|
||||
/// A customizable Dialog box with 3 buttons, custom icon, and checkbox.
|
||||
|
@ -342,7 +342,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
#endregion
|
||||
}
|
||||
|
||||
enum DialogBoxResult
|
||||
public enum DialogBoxResult
|
||||
{
|
||||
Button1,
|
||||
Button2,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace BizHawk.Client.EmuHawk
|
||||
namespace BizHawk.Client.EmuHawk.CustomControls
|
||||
{
|
||||
partial class MsgBox
|
||||
{
|
||||
|
|
|
@ -3,8 +3,8 @@ using System.Drawing;
|
|||
using System.IO;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using BizHawk.Client.Common;
|
||||
using BizHawk.Emulation.Common;
|
||||
using BizHawk.Emulation.Common.IEmulatorExtensions;
|
||||
using BizHawk.Emulation.Cores.Calculators;
|
||||
using BizHawk.Emulation.Cores.ColecoVision;
|
||||
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.Sega.MasterSystem;
|
||||
using BizHawk.Emulation.Cores.Consoles.Nintendo.QuickNES;
|
||||
|
||||
using BizHawk.Client.Common;
|
||||
using BizHawk.Client.EmuHawk.config.NES;
|
||||
using BizHawk.Emulation.Common.IEmulatorExtensions;
|
||||
using BizHawk.Client.EmuHawk.CustomControls;
|
||||
|
||||
namespace BizHawk.Client.EmuHawk
|
||||
{
|
||||
|
@ -404,21 +406,20 @@ namespace BizHawk.Client.EmuHawk
|
|||
else if (Global.Emulator is LibsnesCore)
|
||||
{
|
||||
var ss = (LibsnesCore.SnesSyncSettings)Global.Emulator.GetSyncSettings();
|
||||
if (ss.Profile == "Performance" && !Global.Config.DontAskPerformanceCoreRecordingNag)
|
||||
if (ss.Profile == "Performance")
|
||||
{
|
||||
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",
|
||||
MessageBoxIcon.Warning);
|
||||
|
||||
box.SetButtons(
|
||||
new[] { "Switch", "Continue", "Cancel" },
|
||||
new[] { DialogResult.Yes, DialogResult.No, DialogResult.Cancel });
|
||||
box.SetCheckbox("Don't ask me again");
|
||||
new[] { "Switch", "Cancel" },
|
||||
new[] { DialogResult.Yes, DialogResult.Cancel });
|
||||
|
||||
box.MaximumSize = new Size(450, 350);
|
||||
box.SetMessageToAutoSize();
|
||||
var result = box.ShowDialog();
|
||||
Global.Config.DontAskPerformanceCoreRecordingNag = box.CheckboxChecked;
|
||||
|
||||
if (result == DialogResult.Yes)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue