Fix for x86

This commit is contained in:
Varun Patil 2020-05-05 01:37:18 +05:30
parent 3f42fac8f5
commit c9af091331
2 changed files with 13 additions and 5 deletions

View file

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