fix bug in mnemonics generator that made it not as versatile as it was meant to be
This commit is contained in:
parent
9fb0393b7f
commit
7ea52dfc8d
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue