ALL: Common load dialog
|Reported by:||bluegr||Owned by:||fingolfin|
This is a first attempt at creating a common load dialog for all ScummVM engines.
It adds a new virtual class to Engine(), loadGameState(), which accepts a game slot and calls the corresponding engine's load state method. I've added some test code for the SAGA engine. The igor, queen and touche engines should support this correctly without any major changes (they already have a loadGameState method). I haven't modified the other engines in this patch.
I'm unsure if a new engine feature should be added, (e.g. kSupportsLoading) - it seems that engines that support kSupportsDirectLoad should be easy to change.
Currently, I've reused the code for the load dialog from the game launcher, though this could be moved to engines/dialogs.*
It should be pretty straightforward to add a common save dialog as well (though I haven't done it in this patch).
Thoughts/opinions are welcome :)
Ticket imported from: #2122869. Ticket imported from: patches/1030.