N64: Fixed the set N64 function so that " 000" works

This commit is contained in:
pjgat09 2013-07-29 00:51:39 +00:00
parent 5b8a5f9503
commit 0acc4e8200
2 changed files with 2 additions and 2 deletions

View File

@ -786,7 +786,7 @@ namespace BizHawk.MultiClient
for (int player = 1; player <= MnemonicConstants.PLAYERS[ControlType]; player++)
{
int srcindex = (player - 1) * (MnemonicConstants.BUTTONS[ControlType].Count + MnemonicConstants.ANALOGS[ControlType].Count * 4 + 1);
int srcindex = (player - 1) * (MnemonicConstants.BUTTONS[ControlType].Count + MnemonicConstants.ANALOGS[ControlType].Count * 4 + 1 + 1);
if (mnemonic.Length < srcindex + 3 + MnemonicConstants.BUTTONS[ControlType].Count - 1)
{

View File

@ -39,7 +39,7 @@ namespace BizHawk
/// <returns></returns>
public static bool IsValidSignedNumber(string Str)
{
char[] input = (Str.ToCharArray());
char[] input = (Str.Trim().ToCharArray());
ASCIIEncoding AE = new ASCIIEncoding();
// Check each character in the new label to determine if it is a number.
for (int x = 0; x < input.Length; x++)