ruffle-rs / ruffle

A Flash Player emulator written in Rust
https://ruffle.rs
Other
15.78k stars 820 forks source link

Add new files in save manager #12926

Open Beinsezii opened 1 year ago

Beinsezii commented 1 year ago

If you load a swf on the demo, in order to use a downloaded save file you have to start a new save then replace the file. The "Open Save Manger" rclick menu doesn't even appear until something is first written. It would be very helpful to make the save manager available immediately after the swf loads so you can upload any previously downloaded files. This would be particularly helpful for mobile where using the ruffle demo is your only real option for flash content and browser cache is fickle.

n0samu commented 1 year ago

It's an obvious deficiency, but one we can't really address. That's because the LocalStorage key needs to include the path that the save file would have been located at within the SharedObjects folder. But when you select a file to upload, JavaScript only receives a filename, not the path to the file. So we have no way of knowing what LocalStorage key to use. We could provide a box for you to manually enter the path, but I think that is just as inconvenient as playing the game for a minute to allow it to create the key by itself.

Beinsezii commented 1 year ago

might be a bit cursed but what if the "download all as .zip" stored them with the full path?

n0samu commented 1 year ago

I like that idea! Pinging @danielhjacobs in case he's interested in implementing it.