Atari - fix recording and playback of atari resets

This commit is contained in:
adelikat 2012-03-30 03:43:25 +00:00
parent 8a199f0e3a
commit 52fd33153a
1 changed files with 9 additions and 1 deletions

View File

@ -194,7 +194,11 @@ namespace BizHawk.MultiClient
* PC Engine: some kind of command key, since reset isn't used (adelikat: unimplmented command was
*/
}
if (ControlType == "NES Controller" || ControlType == "Atari 2600 Basic Controller")
if (ControlType == "Atari 2600 Basic Controller")
{
input.Append(IsBasePressed("Reset") ? "r" : ".");
}
if (ControlType == "NES Controller")
{
input.Append(IsBasePressed("Reset") ? Global.COMMANDS[ControlType]["Reset"] :
Global.Emulator.IsLagFrame ? Global.COMMANDS[ControlType]["Lag"] : ".");
@ -402,6 +406,10 @@ namespace BizHawk.MultiClient
{
start = 1;
}
if (ControlType == "Atari 2600 Basic Controller")
{
Force("Reset", mnemonic[1] != '.' && mnemonic[1] != '0');
}
for (int player = 1; player <= Global.PLAYERS[ControlType]; player++)
{
int srcindex = (player - 1) * (Global.BUTTONS[ControlType].Count + 1);