From f5729a4a8b1b30c66cf3a9553ffb0002c8d7b158 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 9 Nov 2008 16:13:34 +0000 Subject: - The GMM save dialog is now working for all engines which support the appropriate features - Added a new method to the MetaEngine class, getMaximumSaveSlot(), and implemented it in all engines for which the listSavefiles() method is implemented (it goes together with the listSavefiles method). It is used to fill the unused save slots in the save/load dialogs of each engine, so that the user can create new save games in empty slots - Unified the save/load dialog list numbering in the GMM load/save screens and in the load screen of the main menu (before a game is started) svn-id: r34963 --- engines/scumm/detection.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines/scumm') diff --git a/engines/scumm/detection.cpp b/engines/scumm/detection.cpp index e4694cf68b..5a82373c0b 100644 --- a/engines/scumm/detection.cpp +++ b/engines/scumm/detection.cpp @@ -685,6 +685,7 @@ public: virtual Common::Error createInstance(OSystem *syst, Engine **engine) const; virtual SaveStateList listSaves(const char *target) const; + virtual int getMaximumSaveSlot() const; virtual void removeSaveState(const char *target, int slot) const; virtual SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const; }; @@ -961,6 +962,8 @@ namespace Scumm { extern bool getSavegameName(Common::InSaveFile *in, Common::String &desc, int heversion); } +int ScummMetaEngine::getMaximumSaveSlot() const { return 99; } + SaveStateList ScummMetaEngine::listSaves(const char *target) const { Common::SaveFileManager *saveFileMan = g_system->getSavefileManager(); Common::StringList filenames; -- cgit v1.2.3