ATari 7800 - add pause to mnemonics, however, something is very wrong, can't get a movie to sync, will have to investigate

This commit is contained in:
adelikat 2012-12-15 20:29:37 +00:00
parent 59ea6d86ff
commit d4ef18c422
1 changed files with 11 additions and 7 deletions

View File

@ -341,7 +341,7 @@ namespace BizHawk.MultiClient
case "A26": case "A26":
return "|..|.....|.....|"; return "|..|.....|.....|";
case "A78": case "A78":
return "|..|......|......|"; return "|...|......|......|";
case "TI83": case "TI83":
return "|..................................................|.|"; return "|..................................................|.|";
case "NES": case "NES":
@ -453,9 +453,10 @@ namespace BizHawk.MultiClient
private string GetA78ControllersAsMnemonic() private string GetA78ControllersAsMnemonic()
{ {
StringBuilder input = new StringBuilder("|"); StringBuilder input = new StringBuilder("|");
input.Append(IsBasePressed("Reset") ? "r" : "."); input.Append(IsBasePressed("Reset") ? 'r' : '.');
input.Append(IsBasePressed("Select") ? "s" : "."); input.Append(IsBasePressed("Select") ? 's' : '.');
input.Append(IsBasePressed("Pause") ? 'p' : '.');
input.Append('|');
for (int player = 1; player <= Global.PLAYERS[ControlType]; player++) for (int player = 1; player <= Global.PLAYERS[ControlType]; player++)
{ {
foreach (string button in Global.BUTTONS[ControlType].Keys) foreach (string button in Global.BUTTONS[ControlType].Keys)
@ -810,7 +811,7 @@ namespace BizHawk.MultiClient
MnemonicChecker c = new MnemonicChecker(mnemonic); MnemonicChecker c = new MnemonicChecker(mnemonic);
MyBoolButtons.Clear(); MyBoolButtons.Clear();
if (mnemonic.Length < 2) if (mnemonic.Length < 4)
{ {
return; return;
} }
@ -822,13 +823,16 @@ namespace BizHawk.MultiClient
{ {
Force("Select", true); Force("Select", true);
} }
else if (mnemonic[3] == 'p')
{
Force("Pause", true);
}
for (int player = 1; player <= Global.PLAYERS[ControlType]; player++) for (int player = 1; player <= Global.PLAYERS[ControlType]; player++)
{ {
int srcindex = (player - 1) * (Global.BUTTONS[ControlType].Count + 1); int srcindex = (player - 1) * (Global.BUTTONS[ControlType].Count + 1);
if (mnemonic.Length < srcindex + 4 + Global.BUTTONS[ControlType].Count - 1) if (mnemonic.Length < srcindex + 6 + Global.BUTTONS[ControlType].Count - 1)
{ {
return; return;
} }