Movies - fix bug where rerecord count value was getting added as a comment on load
This commit is contained in:
parent
6a23ed18e1
commit
edb40f4087
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue