diff options
author | David Corrales | 2007-07-12 17:58:15 +0000 |
---|---|---|
committer | David Corrales | 2007-07-12 17:58:15 +0000 |
commit | 720c974fafaca16b6e86f28ffc14c8c3aa574e15 (patch) | |
tree | d2d1ad9231fdc85099e12234ea14e5e50a89d8be /engines/touche/saveload.cpp | |
parent | c1961f1f76e91595624a2e49e48b0fab5f412f27 (diff) | |
download | scummvm-rg350-720c974fafaca16b6e86f28ffc14c8c3aa574e15.tar.gz scummvm-rg350-720c974fafaca16b6e86f28ffc14c8c3aa574e15.tar.bz2 scummvm-rg350-720c974fafaca16b6e86f28ffc14c8c3aa574e15.zip |
Changed SaveFileManager::listSavegames() function to be engine agnostic. It now returns a list will the full paths of existing files that match a given regex.
Additionally, modified the 5 engines which use the default manager (Agos, Queen, Saga, Scumm and Touche) to parse the filename list and mark the available saves bool array correctly.
svn-id: r28046
Diffstat (limited to 'engines/touche/saveload.cpp')
-rw-r--r-- | engines/touche/saveload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/touche/saveload.cpp b/engines/touche/saveload.cpp index b219001c49..c37c06aacb 100644 --- a/engines/touche/saveload.cpp +++ b/engines/touche/saveload.cpp @@ -398,7 +398,7 @@ void ToucheEngine::readGameStateDescription(int num, char *description, int len) void ToucheEngine::generateGameStateFileName(int num, char *dst, int len, bool prefixOnly) const { if (prefixOnly) { - snprintf(dst, len, "%s.", _targetName.c_str()); + snprintf(dst, len, "%s.*", _targetName.c_str()); } else { snprintf(dst, len, "%s.%d", _targetName.c_str(), num); } |