Make mupen-style lag a setting not a sync-setting

This commit is contained in:
adelikat 2014-08-03 13:06:53 +00:00
parent cf75851e50
commit da3f9db018
4 changed files with 11 additions and 9 deletions

View File

@ -1787,8 +1787,8 @@ namespace BizHawk.Client.EmuHawk
N64CircularAnalogRangeMenuItem.Checked = Global.Config.N64UseCircularAnalogConstraint;
var ss = (N64SyncSettings)Global.Emulator.GetSyncSettings();
MupenStyleLagMenuItem.Checked = ss.UseMupenStyleLag;
var s = (N64Settings)Global.Emulator.GetSettings();
MupenStyleLagMenuItem.Checked = s.UseMupenStyleLag;
}
private void N64PluginSettingsMenuItem_Click(object sender, EventArgs e)
@ -1831,9 +1831,9 @@ namespace BizHawk.Client.EmuHawk
private void MupenStyleLagMenuItem_Click(object sender, EventArgs e)
{
var ss = (N64SyncSettings)Global.Emulator.GetSyncSettings();
ss.UseMupenStyleLag ^= true;
Global.Emulator.PutSyncSettings(ss);
var s = (N64Settings)Global.Emulator.GetSettings();
s.UseMupenStyleLag ^= true;
Global.Emulator.PutSettings(s);
}
#endregion

View File

@ -240,7 +240,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.N64
{
get
{
if (_syncSettings.UseMupenStyleLag)
if (_settings.UseMupenStyleLag)
{
return !IsVIFrame;
}
@ -250,7 +250,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.N64
set
{
if (_syncSettings.UseMupenStyleLag)
if (_settings.UseMupenStyleLag)
{
IsVIFrame = !value;
}

View File

@ -5,12 +5,16 @@
public int VideoSizeX = 320;
public int VideoSizeY = 240;
public bool UseMupenStyleLag { get; set; }
public N64Settings Clone()
{
return new N64Settings
{
VideoSizeX = VideoSizeX,
VideoSizeY = VideoSizeY,
UseMupenStyleLag = UseMupenStyleLag
};
}
}

View File

@ -29,8 +29,6 @@ namespace BizHawk.Emulation.Cores.Nintendo.N64
JaboPlugin = new N64JaboPluginSettings();
}
public bool UseMupenStyleLag { get; set; }
public CoreType Core { get; set; }
public RspType Rsp { get; set; }
public PluginType VideoPlugin { get; set; }