N64: Fixed the set N64 function so that " 000" works
This commit is contained in:
parent
5b8a5f9503
commit
0acc4e8200
|
@ -786,7 +786,7 @@ namespace BizHawk.MultiClient
|
||||||
|
|
||||||
for (int player = 1; player <= MnemonicConstants.PLAYERS[ControlType]; player++)
|
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)
|
if (mnemonic.Length < srcindex + 3 + MnemonicConstants.BUTTONS[ControlType].Count - 1)
|
||||||
{
|
{
|
||||||
|
|
|
@ -39,7 +39,7 @@ namespace BizHawk
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static bool IsValidSignedNumber(string Str)
|
public static bool IsValidSignedNumber(string Str)
|
||||||
{
|
{
|
||||||
char[] input = (Str.ToCharArray());
|
char[] input = (Str.Trim().ToCharArray());
|
||||||
ASCIIEncoding AE = new ASCIIEncoding();
|
ASCIIEncoding AE = new ASCIIEncoding();
|
||||||
// Check each character in the new label to determine if it is a number.
|
// Check each character in the new label to determine if it is a number.
|
||||||
for (int x = 0; x < input.Length; x++)
|
for (int x = 0; x < input.Length; x++)
|
||||||
|
|
Loading…
Reference in New Issue