mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-17 20:17:38 +01:00
21e9ed6615
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 using only file extension as output to reuse entire path from input before extension
16 lines
444 B
C
16 lines
444 B
C
// Copyright (c) 2015 YamaArashi
|
|
|
|
#ifndef UTIL_H
|
|
#define UTIL_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
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);
|
|
|
|
#endif // UTIL_H
|