RandyGaul / cute_headers

Collection of cross-platform one-file C/C++ libraries with no dependencies, primarily used for games
4.21k stars 264 forks source link

cute_aseprite.h crash with both 9-slice and pivot enabled. #371

Closed zpl-zak closed 8 months ago

zpl-zak commented 8 months ago

Hi,

the following line has to be modified so that both flags can be checked against, otherwise, the parser fails assertion at size_read == chunk_read. This is because in Aseprite (v1.2.40 as of writing) the slice can have both enabled, whereas the code picks one exclusively: https://github.com/RandyGaul/cute_headers/blob/613c97861b99cbb59530d39e4ac49a74594f7fbf/cute_aseprite.h#L1179

RandyGaul commented 8 months ago

Could you submit a PR?