Gleb Mazovetskiy

Results 103 issues of Gleb Mazovetskiy

There haven't been any commits since June. Am I missing something? Is there a different gem, or a fork of this one that gets fixed more often?

There is a new (forbidden) warning in gcc-10 that looks like this: ``` rtw_mp.c:1169:3: warning: 'sprintf' argument 3 overlaps destination object 'data' [-Wrestrict] error, forbidden warning:rtw_mp.c:1169 1169 | sprintf(data, "%s%x...

[Looks like](https://github.com/glebm/i18n-tasks/issues/122) easy_translate returns nil when billing is not enabled. In this case Google Translate returns a 4xx response, so `translate` should raise an error.

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`.

Hi, to provide some context on the barrage of PRs: I want to replace StormLib in DevilutionX, a Diablo 1 source port, with libmpq. To that end, I needed to...

Previously, libmpq tried to brute-force the decryption key based on known contents, and only for packed files. This caused issues, such as https://github.com/mbroemme/libmpq/issues/13. Adds a new function, `libmpq__block_open_offset_with_filename`, that uses...

Allows the user to avoid hash recalculation when looking up the file in multiple MPQ archives. Fixes #17

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,...

``` _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 | if (libmpq__decrypt_key((uint8_t *)mpq_archive->mpq_file[file_number]->packed_offset, packed_size, mpq_archive->block_size,...