Flexible and composable tile graphics converter supporting Super Nintendo, Game Boy, Game Boy Color, Game Boy Advance, Mega Drive, PC Engine and WonderSwan formats.
MIT License
154
stars
22
forks
source link
`-T` (at least) supports only base 10 & silently rejects malformed numbers #19
superfamiconv map -T 0x80 apparently treats the argument as 0, silently discarding the x80 part. I didn't check with other options.
C stdlib has strtoul which handles this correctly with a base of 0, and error checking is possible by checking the returned pointer. (Example.) I don't know if there's a C++ way of doing that, though.
superfamiconv map -T 0x80
apparently treats the argument as0
, silently discarding thex80
part. I didn't check with other options.C
stdlib
hasstrtoul
which handles this correctly with abase
of 0, and error checking is possible by checking the returned pointer. (Example.) I don't know if there's a C++ way of doing that, though.