AetiasHax / ds-rom

Library/CLI for extracting and building DS ROMs
8 stars 2 forks source link

Handle Shift-JIS file names in FNT #2

Closed AetiasHax closed 2 months ago

AetiasHax commented 2 months ago

As found in #1, asset file names are encoded with Shift-JIS, while ds-rom treated them as UTF-8. I've now fixed this by adding the encoding_rs crate which handles Shift-JIS encoding and decoding quite well.

The comparison functions for sorting files in the FNT and ROM have also been updated to handle Japanese file names correctly.