vE5li / korangar

A next-gen Ragnarok Online client
MIT License
150 stars 34 forks source link

Correctly handle GRF entries with the GRF_FLAG_MIXCRYPT flag set #18

Open vE5li opened 1 year ago

vE5li commented 1 year ago

Current situation: The compressed files in the GRFs have some optional flags. See this post on rAthena for reference. Currently we ignore any file that have flags other than GRF_FLAG_FILE. See relevant code here: https://github.com/vE5li/korangar/blob/033fb649acade0e6a2e44cf79f34b4e7ca3aabaf/src/loaders/gamefile/mod.rs#L153.

Goal: Files with all flags should be handled correctly

vE5li commented 1 year ago

Here is a reference implementation from zgrf that I believe is correct