libmpq
libmpq copied to clipboard
Libmpq is a library for reading MPQ files (archives used by Blizzard) which can be easily used in applications.
Not sure if benign or not: ``` _deps/libmpq-src/libmpq/mpq.c: In function ‘libmpq__block_open_offset’: _deps/libmpq-src/libmpq/mpq.c:696:128: warning: taking address of packed member of ‘struct ’ may result in an unaligned pointer value [-Waddress-of-packed-member] 696...
Fixes #5
Fixes the following warning: mpq.c: In function ‘libmpq__block_open_offset’: mpq.c:698:128: warning: taking address of packed member of ‘struct ’ may result in an unaligned pointer value [-Waddress-of-packed-member] 698 | pq__decrypt_key((uint8_t *)mpq_archive->mpq_file[file_number]->packed_offset,...
This is useful for clients that look for archives in multiple places to distinguish file-not-found from other errors. Fixes #4
...a final state for the upcoming libmpq version"
Currently `libmpq__archive_open` does not support Unicode paths on Windows. The support would be easy to implement: convert the path to UTF-16 and call `_wfopen` instead of `fopen`. I can tackle...
Currently `libmpq__archive_open` returns `LIBMPQ_ERROR_OPEN` both when the file does not exist and in other cases (such as no permissions). It'd be useful for clients if this function returned `LIBMPQ_ERROR_EXIST` on...