how to build for emscripten #359
This commit is contained in:
		
							
								
								
									
										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__)
 | 
					#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];
 | 
						char command[FILENAME_MAX];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -697,7 +697,10 @@ int fsOpenSystemPath(FileSystem* fs, const char* path)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void fsOpenSystemPath(FileSystem* fs, const char* path) {}
 | 
					s32 fsOpenSystemPath(FileSystem* fs, const char* path)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif
 | 
					#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 fsGetFileData(GetCallback callback, const char* name, void* buffer, size_t size, u32 mode, void* data);
 | 
				
			||||||
void fsOpenFileData(OpenCallback callback, void* data);
 | 
					void fsOpenFileData(OpenCallback callback, void* data);
 | 
				
			||||||
void fsOpenWorkingFolder(FileSystem* fs);
 | 
					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 fsIsDir(FileSystem* fs, const char* dir);
 | 
				
			||||||
bool fsIsInPublicDir(FileSystem* fs);
 | 
					bool fsIsInPublicDir(FileSystem* fs);
 | 
				
			||||||
bool fsChangeDir(FileSystem* fs, const char* dir);
 | 
					bool fsChangeDir(FileSystem* fs, const char* dir);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user