gbajs2 icon indicating copy to clipboard operation
gbajs2 copied to clipboard

Improve saving ui (currently confusing)

Open heavilyarmedporky opened this issue 4 years ago • 5 comments

Whenever you open a ROM, the "Upload Savegame" button disappears. Whenever I use the button before I open a ROM, it does nothing. Also, are the saves meant to be downloaded with no file extension?

heavilyarmedporky avatar Feb 08 '21 20:02 heavilyarmedporky

Huh yeah that sounds broken. I haven't tried downloading/loading savegames

andychase avatar Feb 08 '21 20:02 andychase

Oops didn't mean to close

andychase avatar Feb 08 '21 20:02 andychase

I found out that save can work,should save game in game, then download save data, otherwise the save data will be blank. the next time open it, u should upload save data first and then select the game rom.

towhare avatar Dec 16 '21 04:12 towhare

Okay that's sounds right. Maybe the ticket should be rename to "improve save ui".

In personal projects I had implemented saving periodically to the browser memory (#10), but thats save states not game save data. There's not a way to "save on tab close" so I had to just have it save through a timer.

Maybe there's a way for gba.js to detect a game data change and save it then

andychase avatar Dec 09 '22 19:12 andychase