You are correct, we don’t supply -s FORCE_FILESYSTEM=1
as far as I understand, maybe something we can add (or if users should be able to supply it in their app_manifest
?).
As @Mathias_Westerdahl pointed out, bundle_resources
for HTML5 should only output/store the resources alongside the index.html
file. What are you trying to do? If you need to load some custom data could you add it to custom_resources
instead?
edit: Me and Mathias took a quick look at how our HTML5 version loads game data files (darc
files etc). If you take a look at the dmloader.js
file, you can see that it will download the files specified in archive_files.json
(generated while bundling), then when finished it will map up these files with the emscripten function FS.createPreloadedFile
(which will end up in the “emscripten filesystem”). Maybe you could hook into this somehow, if you really need it to be available through the “filesystem”?