adding the return status to fsOpenSystemPath so that gcc doesn't throw warnings

This commit is contained in:
Seppi 2017-10-24 01:00:05 -05:00
parent 5d50811877
commit eae56d0188
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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);