From d4ef18c422aee6c75a820875a5abba2a16eba367 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sat, 15 Dec 2012 20:29:37 +0000 Subject: [PATCH] ATari 7800 - add pause to mnemonics, however, something is very wrong, can't get a movie to sync, will have to investigate --- BizHawk.MultiClient/movie/InputAdapters.cs | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/BizHawk.MultiClient/movie/InputAdapters.cs b/BizHawk.MultiClient/movie/InputAdapters.cs index 1d11858a72..41aadcda23 100644 --- a/BizHawk.MultiClient/movie/InputAdapters.cs +++ b/BizHawk.MultiClient/movie/InputAdapters.cs @@ -341,7 +341,7 @@ namespace BizHawk.MultiClient case "A26": return "|..|.....|.....|"; case "A78": - return "|..|......|......|"; + return "|...|......|......|"; case "TI83": return "|..................................................|.|"; case "NES": @@ -453,9 +453,10 @@ namespace BizHawk.MultiClient private string GetA78ControllersAsMnemonic() { StringBuilder input = new StringBuilder("|"); - input.Append(IsBasePressed("Reset") ? "r" : "."); - input.Append(IsBasePressed("Select") ? "s" : "."); - + input.Append(IsBasePressed("Reset") ? 'r' : '.'); + input.Append(IsBasePressed("Select") ? 's' : '.'); + input.Append(IsBasePressed("Pause") ? 'p' : '.'); + input.Append('|'); for (int player = 1; player <= Global.PLAYERS[ControlType]; player++) { foreach (string button in Global.BUTTONS[ControlType].Keys) @@ -810,7 +811,7 @@ namespace BizHawk.MultiClient MnemonicChecker c = new MnemonicChecker(mnemonic); MyBoolButtons.Clear(); - if (mnemonic.Length < 2) + if (mnemonic.Length < 4) { return; } @@ -822,13 +823,16 @@ namespace BizHawk.MultiClient { Force("Select", true); } - + else if (mnemonic[3] == 'p') + { + Force("Pause", true); + } for (int player = 1; player <= Global.PLAYERS[ControlType]; player++) { 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; }