mbroemme / libmpq

libmpq is a library for manipulating MPQ (MoPaQ) archives, which are used by Blizzard in most of their games (e.g., Diablo, Diablo 2, StarCraft, WarCraft 3, and World of Warcraft).
http://libmpq.org
GNU General Public License v2.0
37 stars 13 forks source link

Support Unicode paths on Windows #9

Open glebm opened 3 years ago

glebm commented 3 years ago

Currently libmpq__archive_open does not support Unicode paths on Windows.

To support them, we convert the path to UTF-16 and call _wfopen instead of fopen.