how to build for emscripten #359

This commit is contained in:
BADIM-PC\Vadim 2017-10-29 12:39:47 +03:00
parent ed23ad9514
commit df67bb1f8b
2 changed files with 6 additions and 3 deletions

View File

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

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