webuxn
webuxn copied to clipboard
File API
Do you have a plan for the file API? I was thinking maybe it could open a dialog box for open/save and ignore the filename.
I think that would work ok for file writing, but there will probably be issues with file reading due to the browser dialog box being asynchronous.
Emscripten has something called asyncify for situations like this, but it looks complicated and degrades performance of the entire program. We might be able to do manually what asyncify does, to only handle the file reading case, but... it would be really hairy to implement.
What do you think about adding async file reading to uxn? I think we would need some kind of non-blocking I/O anyways if uxn ever gets something like network support :)