Repository navigation
As many people have pointed out, some mods will fail to convert properly, typically this is due to a broken/malformed texture header, this hotfix will attempt to idiot proof/sanity check the header and parse it properly.
background:
the tool uses the mip count inside the header(T) and reads T * sizeof(MipHeader), when T isn't accurate it starts reading texture data, this data will not fit inside a unsigned type, so when this happens the binary stream that parses the texture data as a unsigned value throws a error which force closes the app, this update aims to sanity check it by checking if the offset is accurate(base=mip[0].offset, foreach mip base += mip.size) if it's not it stops parsing the mips and resets the binarystream offset and continue parsing the texture, this should fix it(and it seems to.
** IF THIS BREAKS MODS... USE THE PREVIOUS VERSION**