Fix parsing of bpet files
pixeldesu opened this issue · comments
Andreas Nedbal commented
Currently, any file with the extension .bpet
cannot be parsed.
As a test, trying to parse e_def.bpet
from Season 8, throws following exception:
Unable to read beyond the end of the stream.
at System.IO.MemoryStream.InternalReadInt32()
at PangLib.PET.Helpers.CollisionBoxReader.ReadAllCollisionBoxes(BinaryReader sectionReader, Version version) in D:\Projects\pangyatools\PangLib\PangLib.PET\Helpers\CollisionBoxReader.cs:line 36
at PangLib.PET.PETFile.Parse(Stream data, Boolean catchExceptions) in D:\Projects\pangyatools\PangLib\PangLib.PET\PETFile.cs:line 131