fix bug in mnemonics generator that made it not as versatile as it was meant to be

This commit is contained in:
zeromus 2012-02-18 20:44:54 +00:00
parent 9fb0393b7f
commit 7ea52dfc8d
1 changed files with 4 additions and 6 deletions

View File

@ -164,15 +164,13 @@ namespace BizHawk.MultiClient
bool IsBasePressed(string name)
{
bool ret = Source.IsPressed(name);
if (ret)
{
//int zzz=9;
}
return ret;
}
public string GetControllersAsMnemonic()
{
bool hasGlobalEmulator = Global.Emulator != null;
StringBuilder input = new StringBuilder("|");
if (ControlType == "Genesis 3-Button Controller")
@ -249,8 +247,8 @@ namespace BizHawk.MultiClient
if (ControlType == "NES Controls")
{
input.Append(IsBasePressed("Reset") ? "r" :
Global.Emulator.IsLagFrame ? "L" : ".");
input.Append(IsBasePressed("Reset") ? "r" :
(hasGlobalEmulator && Global.Emulator.IsLagFrame) ? "L" : ".");
input.Append("|");
for (int player = 1; player <= 4; player++)
{