From df67bb1f8b0cf22de85a82da45633c0a1c72c8d4 Mon Sep 17 00:00:00 2001 From: "BADIM-PC\\Vadim" Date: Sun, 29 Oct 2017 12:39:47 +0300 Subject: [PATCH] how to build for emscripten #359 --- src/fs.c | 7 +++++-- src/fs.h | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/fs.c b/src/fs.c index 3f10815..788a34b 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__) -int fsOpenSystemPath(FileSystem* fs, const char* path) +s32 fsOpenSystemPath(FileSystem* fs, const char* path) { char command[FILENAME_MAX]; @@ -697,7 +697,10 @@ int fsOpenSystemPath(FileSystem* fs, const char* path) #else -void fsOpenSystemPath(FileSystem* fs, const char* path) {} +s32 fsOpenSystemPath(FileSystem* fs, const char* path) +{ + return 0; +} #endif diff --git a/src/fs.h b/src/fs.h index ba19168..ce3f036 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); -int fsOpenSystemPath(FileSystem* fs, const char* path); +s32 fsOpenSystemPath(FileSystem* fs, const char* path); bool fsIsDir(FileSystem* fs, const char* dir); bool fsIsInPublicDir(FileSystem* fs); bool fsChangeDir(FileSystem* fs, const char* dir);