Hi all,
By giving the linker the --preload-file flag with the appropriate folder I was able to successfully create and access the emscripten FS from cpp as I usually would.
However I would like to be able to create a FS separately from the compilation process. It just feels wrong.
I was able to use the file_packager.py to create a .data and .js file.
I tried running the filesystem.js before my main .js file in my custom index.html, and got an error:
Module.addRunDependency is not a function
Any idea what am I doing wrong? What is the best way to create and access FS in emscripten? Should I just preload in the linker?
Thanks!
Ronny