From eae56d01881ceb08237567f20ad6648929e0ba3b Mon Sep 17 00:00:00 2001 From: Seppi Date: Tue, 24 Oct 2017 01:00:05 -0500 Subject: [PATCH] adding the return status to fsOpenSystemPath so that gcc doesn't throw warnings --- src/fs.c | 4 ++-- src/fs.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fs.c b/src/fs.c index 601ac2a..3f10815 100644 --- a/src/fs.c +++ b/src/fs.c @@ -674,7 +674,7 @@ void fsMakeDir(FileSystem* fs, const char* name) #if defined(__WINDOWS__) || defined(__LINUX__) || defined(__MACOSX__) -void fsOpenSystemPath(FileSystem* fs, const char* path) +int fsOpenSystemPath(FileSystem* fs, const char* path) { char command[FILENAME_MAX]; @@ -692,7 +692,7 @@ void fsOpenSystemPath(FileSystem* fs, const char* path) #endif - tic_system(UTF8ToString(command)); + return tic_system(UTF8ToString(command)); } #else diff --git a/src/fs.h b/src/fs.h index 84c908f..ba19168 100644 --- a/src/fs.h +++ b/src/fs.h @@ -67,7 +67,7 @@ bool fsCopyFile(const char* src, const char* dst); void fsGetFileData(GetCallback callback, const char* name, void* buffer, size_t size, u32 mode, void* data); void fsOpenFileData(OpenCallback callback, void* data); void fsOpenWorkingFolder(FileSystem* fs); -void fsOpenSystemPath(FileSystem* fs, const char* path); +int fsOpenSystemPath(FileSystem* fs, const char* path); bool fsIsDir(FileSystem* fs, const char* dir); bool fsIsInPublicDir(FileSystem* fs); bool fsChangeDir(FileSystem* fs, const char* dir);