diff options
author | Sierraffinity <sierra@domoreaweso.me> | 2020-04-22 15:06:34 -0700 |
---|---|---|
committer | Sierraffinity <sierra@domoreaweso.me> | 2020-04-22 15:06:34 -0700 |
commit | 8c1d0d77a535cf2587300d8ca1741c47c9a3c5f9 (patch) | |
tree | 7846572886e10de28defaa963bab2a520650223b /tools/gbagfx/util.h | |
parent | 543434ea2df1c325487ddec075f937ae0c3c6d2e (diff) |
gbagfx: Various fixes and improvements
Fix num_colors exceeding amount of colors in palette leading to use of uninitialized colors
Handle png -> pal conversion (aka extracting JASC palettes from png)
Allow JASC pal files to be used as -palette argument when converting from GBA to PNG
Allow using only file extension as output to reuse entire path from input before extension
Diffstat (limited to 'tools/gbagfx/util.h')
-rw-r--r-- | tools/gbagfx/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/gbagfx/util.h b/tools/gbagfx/util.h index 6d7a9c21e..7802f1d21 100644 --- a/tools/gbagfx/util.h +++ b/tools/gbagfx/util.h @@ -7,6 +7,7 @@ bool ParseNumber(char *s, char **end, int radix, int *intValue); char *GetFileExtension(char *path); +char *GetFileExtensionAfterDot(char *path); unsigned char *ReadWholeFile(char *path, int *size); unsigned char *ReadWholeFileZeroPadded(char *path, int *size, int padAmount); void WriteWholeFile(char *path, void *buffer, int bufferSize); |