Closed CiberNin closed 3 months ago
Hi @CiberNin ,
This is great timing. We're busy planning our next round of updates to supersplat and among other things would like to support for offline mode and file system handling. (And also the ability to combine multiple splats).
So thanks very much for this!
This was done in #105 and is now deployed.
https://developer.mozilla.org/en-US/docs/Web/API/File_System_API
Will need to keep track of file handle to save to. Starts out null, then gets remembered on first open. Need to grey out save options before first open since we won't have a handle yet. On save-as need to overwrite file handle with new one in case it changed and also remember file type.
Also need to handle when used a PWA default file handler.
Loading file example:
Saving file example: