djhworld/gomeboycolor

Store saves/ramsaves and emulator settings in database

djhworld opened this issue · 3 comments

Instead of faffing about storing ram saves as files, store them in a database such as SQLITE

Things to consider: -

  • How efficient is SQLITE at storing and retrieving BLOBS?
  • Size of database will grow in line with the amount of games you play

Also could think about allowing ROMS to be stored in a database too?

Will also have to think about how the user can maintain items in the database too.....

RAM saves are now stored in JSON format (with ram data stored as a compressed base64 string).

If I ever consider implementing this, having a JSON string rather than a BLOB does appear to be more favourable

Also it would be nice if you could have multiple "snapshots" of saves per game, so you can keep the last 5-10 saves or whatever and users can rollback to previous ones if desired