Fixed PSXParser not adding _offset to modelTop when seeking.
Fixed TMDParser sometimes storing absolute position instead of relative position (without _offset) in ObjBlock Top fields. Usage of Top fields now always adds _offset.
Refactor changes
Removed TMDParser offset + ilen * 4 < _offset comparison, because it could never be true unless the file position itself was near long.MaxValue.
All variables where the BaseStream.Position (absolute position) is stored now have Position in their name (for clarity). Position should be avoided in relative file offset variable names to not conflict with this (which none currently do).
Changed remaining instances of using BaseStream.Position setter to BaseStream.Seek (to match conventions).
Moved ObjBlock class into TMDParser as a private nested class. Removed the old ObjBlock.cs file.
Fix changes
_offset
tomodelTop
when seeking._offset
) in ObjBlock Top fields. Usage of Top fields now always adds_offset
.Refactor changes
offset + ilen * 4 < _offset
comparison, because it could never be true unless the file position itself was near long.MaxValue.