'Emscripten build can't find the file but native builds can
I'm writing an SDL2 program which needs to find images on the filesystem to draw to the screen. On the Linux and Windows builds, this works perfectly and the images appear how they should. However, when compiling with Emscripten, the app tells me that the image file wasn't found. I made the program print its working directory (which is /), then I used the JavaScript console to check what files where the files were and the image file is in the directory that the program expects. Why can't the Emscripten-compiled version find my file?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
