[Scummvm-devel] CD support in launcher (Was: New GUI thoughts in the Wiki)
max at quendi.de
Sat Nov 19 05:18:00 CET 2005
Am 19.11.2005 um 13:26 schrieb Marcus Comstedt:
> Max Horn <max at quendi.de> writes:
>> Finally, this will affect porters, too, be it because increased
>> memory usage burdens them, be it because the new GUI might be a
>> chance for them to get rid of custom launcher/GUI code... you are all
>> welcome to offer your opinion and criticism, too!
> What would allow me to get rid of the custom launcher is a way to
> automatically fill the game list, and then clear it when the CD is
> removed, and refill it when a new CD is inserted, which is what my
> custom launcher does. Having to "Add Game..." manually doesn't
> really cut it on a platform with only removable storage.
Well, we'd have to think about how to do this generically, but I
guess other ports (PS2, XBox, ...?) might benefit from something like
this, too (just guessing here, I never tried any console port). It
might even be nice to have on standard PCs (esp. once "return to
launcher" is implemented).
One way to do this would be to add a new event type to OSystem,
"EVENT_MEDIA_CHANGED", which is delivered whenever media is added/
removed. It would contain a bool indicating which happened, and a
FilesystemNode pointing to the affected path.
In addition, a method to query a list of currently mounted devices
might be useful... or rather, a method to query for a list of mounted
devices that should be automatically searched for games...
Of course, maybe I am overdesigning again :-)
The launcher then could react to this by scanning the new media for
games (recursively, possible limited to a certain depth), and adding
them as dynamic, temporary targets to the games list (possibly
separated / below the regular targets). Of course it would be
possible to turn off this auto-scanning (via a config flag or a
#define, or both).
More information about the Scummvm-devel