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