add a "SNES with Snes9x" menu item, only visisble in developer builds
This commit is contained in:
parent
d219573594
commit
c1e866c9c9
|
@ -305,7 +305,12 @@ namespace BizHawk.Client.Common
|
|||
switch (game.System)
|
||||
{
|
||||
case "SNES":
|
||||
if (true)
|
||||
if (Global.Config.SNES_InSnes9x)
|
||||
{
|
||||
var snes = new Emulation.Cores.Nintendo.SNES9X.Snes9x(nextComm, rom.FileData);
|
||||
nextEmulator = snes;
|
||||
}
|
||||
else
|
||||
{
|
||||
// need to get rid of this hack at some point
|
||||
((CoreFileProvider)nextComm.CoreFileProvider).SubfileDirectory = Path.GetDirectoryName(path.Replace("|", String.Empty)); // Dirty hack to get around archive filenames (since we are just getting the directory path, it is safe to mangle the filename
|
||||
|
@ -315,11 +320,6 @@ namespace BizHawk.Client.Common
|
|||
var xmlData = isXml ? rom.FileData : null;
|
||||
snes.Load(game, romData, Deterministic, xmlData);
|
||||
}
|
||||
else
|
||||
{
|
||||
var snes = new Emulation.Cores.Nintendo.SNES9X.Snes9x(nextComm, rom.FileData);
|
||||
nextEmulator = snes;
|
||||
}
|
||||
|
||||
break;
|
||||
case "SMS":
|
||||
|
|
|
@ -604,6 +604,7 @@ namespace BizHawk.Client.Common
|
|||
// it hasn't been absorbed into the new system
|
||||
public bool GB_AsSGB = false;
|
||||
public bool NES_InQuickNES = true;
|
||||
public bool SNES_InSnes9x = true;
|
||||
|
||||
// LuaWriter Settings
|
||||
public int LuaDefaultTextColor = -16777216;
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -844,6 +844,9 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
GBInSGBMenuItem.Checked = Global.Config.GB_AsSGB;
|
||||
NesInQuickNESMenuItem.Checked = Global.Config.NES_InQuickNES;
|
||||
SnesWithSnes9xMenuItem.Checked = Global.Config.SNES_InSnes9x;
|
||||
|
||||
SnesWithSnes9xMenuItem.Visible = VersionInfo.DeveloperBuild;
|
||||
}
|
||||
|
||||
private void ControllersMenuItem_Click(object sender, EventArgs e)
|
||||
|
@ -1025,6 +1028,12 @@ namespace BizHawk.Client.EmuHawk
|
|||
FlagNeedsReboot();
|
||||
}
|
||||
|
||||
private void SnesWithSnes9xMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
Global.Config.SNES_InSnes9x ^= true;
|
||||
FlagNeedsReboot();
|
||||
}
|
||||
|
||||
private void N64VideoPluginSettingsMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
N64PluginSettingsMenuItem_Click(sender, e);
|
||||
|
|
|
@ -3436,7 +3436,5 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
_master = null;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue