tastudio: be able to load broken greenzone file.
This commit is contained in:
parent
838e986847
commit
f35938acdb
|
@ -578,8 +578,8 @@ namespace BizHawk.Client.Common
|
|||
public void Load(BinaryReader br)
|
||||
{
|
||||
States.Clear();
|
||||
//if (br.BaseStream.Length > 0)
|
||||
//{ BaseStream.Length does not return the expected value.
|
||||
try
|
||||
{
|
||||
int nstates = br.ReadInt32();
|
||||
for (int i = 0; i < nstates; i++)
|
||||
{
|
||||
|
@ -592,7 +592,8 @@ namespace BizHawk.Client.Common
|
|||
//States.Add(frame, data);
|
||||
//Used += len;
|
||||
}
|
||||
//}
|
||||
}
|
||||
catch (EndOfStreamException) { }
|
||||
}
|
||||
|
||||
public void SaveBranchStates(BinaryWriter bw)
|
||||
|
|
Loading…
Reference in New Issue