[Scummvm-devel] SaveFileManager::listSavefiles()
Marcus Comstedt
marcus at mc.pp.se
Wed Sep 19 21:53:29 CEST 2007
Hi.
I notice someone has changed the API for
SaveFileManager::listSavefiles(). However, the documentation is
weirdly ambigous:
/**
* Request a list of available savegames with a given regex.
* @param regex Regular expression to match. Wildcards like * or ? are available.
* returns a list of strings for all present file names.
*/
virtual Common::StringList listSavefiles(const char *regex) = 0;
Uh, ok, so which is it? Should the parameter be a regexp, or should
it be a glob ("wildcards like * or ?")? IMNSHO a regexp would be
rather overkill of the year...
And does the "like" suggest that the list is incomplete? Which
metacharacters should be supported and what should they mean? If this
isn't properly specified, the function is useless.
// Marcus
More information about the Scummvm-devel
mailing list