Fix for x86
This commit is contained in:
		
							parent
							
								
									3f42fac8f5
								
							
						
					
					
						commit
						c9af091331
					
				
					 2 changed files with 13 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -2,6 +2,8 @@
 | 
			
		|||
#include "filesystem.h"
 | 
			
		||||
#include "sharedstate.h"
 | 
			
		||||
 | 
			
		||||
#ifdef __EMSCRIPTEN__
 | 
			
		||||
 | 
			
		||||
EM_JS(void, load_file_async_js, (const char* fullPathC), {
 | 
			
		||||
	Asyncify.handleSleep(function(wakeUp) {
 | 
			
		||||
		// Get argument
 | 
			
		||||
| 
						 | 
				
			
			@ -55,3 +57,5 @@ void load_file_async(const char * filename) {
 | 
			
		|||
	shState->fileSystem().openRead(handler, filename);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue