Movies - fix bug where rerecord count value was getting added as a comment on load

This commit is contained in:
andres.delikat 2011-09-24 16:09:40 +00:00
parent 6a23ed18e1
commit edb40f4087
2 changed files with 10 additions and 9 deletions

View File

@ -208,6 +208,7 @@ namespace BizHawk.MultiClient
using (StreamReader sr = file.OpenText()) using (StreamReader sr = file.OpenText())
{ {
string str = ""; string str = "";
string rerecordStr = "";
while ((str = sr.ReadLine()) != null) while ((str = sr.ReadLine()) != null)
{ {
@ -219,10 +220,10 @@ namespace BizHawk.MultiClient
if (str.Contains(MovieHeader.RERECORDS)) if (str.Contains(MovieHeader.RERECORDS))
{ {
str = ParseHeader(str, MovieHeader.RERECORDS); rerecordStr = ParseHeader(str, MovieHeader.RERECORDS);
try try
{ {
Rerecords = int.Parse(str); Rerecords = int.Parse(rerecordStr);
} }
catch catch
{ {