summaryrefslogtreecommitdiff
path: root/tools/gbagfx/util.c
diff options
context:
space:
mode:
authorshinny <shinny456@users.noreply.github.com>2020-06-02 14:51:57 -0400
committershinny <shinny456@users.noreply.github.com>2020-06-02 14:51:57 -0400
commit4f88655a79bb2d8f10bdce2841f427c0e27040bd (patch)
treeb750e64b62cec61ca3a43da6aa7d4e3b37e64c9e /tools/gbagfx/util.c
parentbc504264f1e54b3c1e482710c592e5549828bfe1 (diff)
update tools
Diffstat (limited to 'tools/gbagfx/util.c')
-rw-r--r--tools/gbagfx/util.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/gbagfx/util.c b/tools/gbagfx/util.c
index 87abeb3..7350376 100644
--- a/tools/gbagfx/util.c
+++ b/tools/gbagfx/util.c
@@ -47,6 +47,13 @@ char *GetFileExtension(char *path)
while (extension > path && *extension != '.')
extension--;
+ return extension;
+}
+
+char *GetFileExtensionAfterDot(char *path)
+{
+ char *extension = GetFileExtension(path);
+
if (extension == path)
return NULL;