SceneGate / Yarhl

Framework for the implementation of format converters like game assets or media files
https://scenegate.github.io/Yarhl/
MIT License
60 stars 10 forks source link

Fix Binary2Po converter not reading from the beginning of the stream #169

Closed Kaplas80 closed 2 years ago

Kaplas80 commented 2 years ago

Description

Binary2Po doesn't check the stream position, so the conversion might fail even if the binary is a valid Po but the stream position is not 0.

This PR moves the stream position to the beginning before the conversion.

Example

The PR doen't change the way the converter is used.