Fix bug in savestate loading during multitracking
This commit is contained in:
parent
7604be7abd
commit
c16ef4dae7
|
@ -715,12 +715,12 @@ namespace BizHawk.MultiClient
|
||||||
else if (line == "[/Input]") break;
|
else if (line == "[/Input]") break;
|
||||||
else if (line.Contains("Frame 0x")) //NES stores frame count in hex, yay
|
else if (line.Contains("Frame 0x")) //NES stores frame count in hex, yay
|
||||||
{
|
{
|
||||||
string[] strs = line.Split(' ');
|
string[] strs = line.Split('x');
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
stateFrame = int.Parse(strs[1], NumberStyles.HexNumber);
|
stateFrame = int.Parse(strs[1], NumberStyles.HexNumber);
|
||||||
}
|
}
|
||||||
catch { } //TODO: message?
|
catch { Global.OSD.AddMessage("Savestate Frame failed to parse"); } //TODO: message?
|
||||||
}
|
}
|
||||||
else if (line.Contains("Frame "))
|
else if (line.Contains("Frame "))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue