[Scummvm-devel] Kyra engine memory requirements

Max Horn max at quendi.de
Sat Sep 9 02:59:41 CEST 2006


Am 09.09.2006 um 01:12 schrieb Neil Millstone:

[...]

> What would be great, is if each engine had a function to list the  
> names
> of the saves, and another function to delete one.  The front-end  
> screen
> to do this could be up to the individual backend, or perhaps  
> integrated
> into the launcher.
>
> I had a discussion with others in the ScummVM IRC channel a while ago,
> and they seemed to be in agreement.

Such a feature has been on our TODO list for a long time now.  
Essentially, what is needed is

1) A method in SavefileManager that allows deleting savefiles (this  
is the lower level part of this feature)

2) An API for engine plugins ("frontends") that allows:
   * querying for a list of available saves (containing the titles,  
and ids that can be used for the "-x" command line option, i.e. to  
load a savestate)
   * for deleting saves (the engine would in turn call the  
SavefileManager method as needed)
   * and maybe also for loading saves, although we already handle  
that indirectly via config settings

The API for querying a list of saves could of course include more  
meta data, like creation times, a progress percentage, a thumbnail,  
etc.. I'd not add this in the initial version, but would keep  
extensibility in mind (as always). Maybe by letting the engine return  
a list containing a list of hashes, with some standard keys ("title",  
"id"), and thus potential for future extensions. (As a side note, I  
have been thinking about modifying the "detect" engine API to do  
something similar).


Bye,
Max




More information about the Scummvm-devel mailing list