how to build for emscripten #359
This commit is contained in:
parent
ed23ad9514
commit
df67bb1f8b
7
src/fs.c
7
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
|
||||
|
||||
|
|
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 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);
|
||||
|
|
Loading…
Reference in New Issue