Fix bug in savestate loading during multitracking

This commit is contained in:
adelikat 2013-10-12 23:39:59 +00:00
parent 7604be7abd
commit c16ef4dae7
1 changed files with 2 additions and 2 deletions

View File

@ -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 "))
{ {