Make the bk2 SetControllersAsMnemonic implementation less bad. Fixes #1181
This commit is contained in:
parent
23a2550444
commit
ca0ae3d971
|
@ -172,11 +172,12 @@ namespace BizHawk.Client.Common
|
||||||
}
|
}
|
||||||
else if (def.FloatControls.Contains(key))
|
else if (def.FloatControls.Contains(key))
|
||||||
{
|
{
|
||||||
var temp = trimmed.Substring(iterator, 5);
|
var commaIndex = trimmed.Substring(iterator).IndexOf(',');
|
||||||
|
var temp = trimmed.Substring(iterator, commaIndex);
|
||||||
var val = int.Parse(temp.Trim());
|
var val = int.Parse(temp.Trim());
|
||||||
_myFloatControls[key] = val;
|
_myFloatControls[key] = val;
|
||||||
|
|
||||||
iterator += 6;
|
iterator += commaIndex + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue