diff --git a/configure b/configure index acfbdd8b163..20759bf0db1 100755 --- a/configure +++ b/configure @@ -1727,6 +1727,7 @@ wasm32-*) _endian=little # the endian check below fails, but emscripten is always little endian anyway _host_os=emscripten _host_cpu=wasm32 + datadir='/' CXX="em++" ;; wii) diff --git a/graphics/opengl/shader.cpp b/graphics/opengl/shader.cpp index dbe37f96d2a..00eca4a2db0 100644 --- a/graphics/opengl/shader.cpp +++ b/graphics/opengl/shader.cpp @@ -35,7 +35,6 @@ static const GLchar *readFile(const Common::String &filename) { #if defined(EMSCRIPTEN) // Since we need to bundle all files into data files on Emscripten, we keep all shaders in a different folder - SearchMan.addDirectory("ALL_SHADERS", "/", 0, 2); #endif // Allow load shaders from source code directory without install them // It's used for development purpose @@ -52,7 +51,6 @@ static const GLchar *readFile(const Common::String &filename) { SearchMan.remove("STARK_SHADERS"); SearchMan.remove("WINTERMUTE_SHADERS"); #if defined(EMSCRIPTEN) - SearchMan.remove("ALL_SHADERS"); #endif const int32 size = file.size();