From 5c4f2bd4d38b4865ff79287b62c31cac5b655301 Mon Sep 17 00:00:00 2001 From: nullableVoidPtr <30564701+nullableVoidPtr@users.noreply.github.com> Date: Sun, 4 Aug 2019 09:53:50 +0000 Subject: Add tools --- tools/gbagfx/util.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tools/gbagfx/util.h (limited to 'tools/gbagfx/util.h') diff --git a/tools/gbagfx/util.h b/tools/gbagfx/util.h new file mode 100644 index 0000000..6d7a9c2 --- /dev/null +++ b/tools/gbagfx/util.h @@ -0,0 +1,14 @@ +// Copyright (c) 2015 YamaArashi + +#ifndef UTIL_H +#define UTIL_H + +#include + +bool ParseNumber(char *s, char **end, int radix, int *intValue); +char *GetFileExtension(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 -- cgit v1.2.3