adding the return status to fsOpenSystemPath so that gcc doesn't throw warnings
This commit is contained in:
parent
5d50811877
commit
eae56d0188
4
src/fs.c
4
src/fs.c
|
@ -674,7 +674,7 @@ void fsMakeDir(FileSystem* fs, const char* name)
|
||||||
|
|
||||||
#if defined(__WINDOWS__) || defined(__LINUX__) || defined(__MACOSX__)
|
#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];
|
char command[FILENAME_MAX];
|
||||||
|
|
||||||
|
@ -692,7 +692,7 @@ void fsOpenSystemPath(FileSystem* fs, const char* path)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
tic_system(UTF8ToString(command));
|
return tic_system(UTF8ToString(command));
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
2
src/fs.h
2
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 fsGetFileData(GetCallback callback, const char* name, void* buffer, size_t size, u32 mode, void* data);
|
||||||
void fsOpenFileData(OpenCallback callback, void* data);
|
void fsOpenFileData(OpenCallback callback, void* data);
|
||||||
void fsOpenWorkingFolder(FileSystem* fs);
|
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 fsIsDir(FileSystem* fs, const char* dir);
|
||||||
bool fsIsInPublicDir(FileSystem* fs);
|
bool fsIsInPublicDir(FileSystem* fs);
|
||||||
bool fsChangeDir(FileSystem* fs, const char* dir);
|
bool fsChangeDir(FileSystem* fs, const char* dir);
|
||||||
|
|
Loading…
Reference in New Issue