summaryrefslogtreecommitdiff
path: root/tools/gbagfx/util.h
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2015-11-13 21:57:22 -0800
committerYamaArashi <shadow962@live.com>2015-11-13 21:57:22 -0800
commit4c733f3811d2b1bd35bf0474a79490706a4cd845 (patch)
tree0eea3502ae34b55611a6920490ed32b479f6b244 /tools/gbagfx/util.h
parent3d1b6597f3fc22547fe2021275b1818a92093ab8 (diff)
pokemon PNGs and palettes
Diffstat (limited to 'tools/gbagfx/util.h')
-rw-r--r--tools/gbagfx/util.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/gbagfx/util.h b/tools/gbagfx/util.h
new file mode 100644
index 000000000..ec81471c0
--- /dev/null
+++ b/tools/gbagfx/util.h
@@ -0,0 +1,17 @@
+// 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);
+void ExpectFileExtension(char *path, char *expectedExtension);
+void AddFileExtension(char *path, char *extension);
+void RemoveFileExtension(char *path);
+void ChangeFileExtension(char *path, char *extension);
+unsigned char *ReadWholeFile(char *path, int *size);
+void WriteWholeFile(char *path, void *buffer, int bufferSize);
+
+#endif // UTIL_H