Skip to content

Commit eae56d0

Browse files
committed
adding the return status to fsOpenSystemPath so that gcc doesn't throw warnings
1 parent 5d50811 commit eae56d0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/fs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ void fsMakeDir(FileSystem* fs, const char* name)
674674

675675
#if defined(__WINDOWS__) || defined(__LINUX__) || defined(__MACOSX__)
676676

677-
void fsOpenSystemPath(FileSystem* fs, const char* path)
677+
int fsOpenSystemPath(FileSystem* fs, const char* path)
678678
{
679679
char command[FILENAME_MAX];
680680

@@ -692,7 +692,7 @@ void fsOpenSystemPath(FileSystem* fs, const char* path)
692692

693693
#endif
694694

695-
tic_system(UTF8ToString(command));
695+
return tic_system(UTF8ToString(command));
696696
}
697697

698698
#else

src/fs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ bool fsCopyFile(const char* src, const char* dst);
6767
void fsGetFileData(GetCallback callback, const char* name, void* buffer, size_t size, u32 mode, void* data);
6868
void fsOpenFileData(OpenCallback callback, void* data);
6969
void fsOpenWorkingFolder(FileSystem* fs);
70-
void fsOpenSystemPath(FileSystem* fs, const char* path);
70+
int fsOpenSystemPath(FileSystem* fs, const char* path);
7171
bool fsIsDir(FileSystem* fs, const char* dir);
7272
bool fsIsInPublicDir(FileSystem* fs);
7373
bool fsChangeDir(FileSystem* fs, const char* dir);

0 commit comments

Comments
 (0)