From e53faffaead15f0aa6c323d0b0dbed05eaf5b4d4 Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Sat, 30 Dec 2017 00:58:57 +0100 Subject: * Menu.c: when 1Player/2Player buttons are pressed, level list is now shown. * System.c/System.h: new prototype SystemGetFileBasename(). --- Source/System.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Source/System.h') diff --git a/Source/System.h b/Source/System.h index 6938d6a..e2d22dc 100644 --- a/Source/System.h +++ b/Source/System.h @@ -130,6 +130,10 @@ void SystemCalculateSine(void); unsigned char SystemGetSineValue(void); +// Fills str with only file name and extension given input file path. +// For example: "FOLDER\\FOLDER\\MYFILE.EXT;1" -> "MYFILE.EXT" +void SystemGetFileBasename(const char* fileName, char* str, size_t sz); + /* ************************************** * Global Variables * * **************************************/ -- cgit v1.2.3