diff options
author | agent-q | 2011-05-21 15:56:42 +0100 |
---|---|---|
committer | agent-q | 2011-05-21 15:56:42 +0100 |
commit | 4076a0466d67d42f093e3e73a30ea48e1e1d59e9 (patch) | |
tree | d9915a3febb8781058b2ebbcdcdddc234e755705 | |
parent | f1903004c06de13e15d3b338986dc0212485f09f (diff) | |
download | scummvm-rg350-4076a0466d67d42f093e3e73a30ea48e1e1d59e9.tar.gz scummvm-rg350-4076a0466d67d42f093e3e73a30ea48e1e1d59e9.tar.bz2 scummvm-rg350-4076a0466d67d42f093e3e73a30ea48e1e1d59e9.zip |
GUI/DS: Make 99 the maximum number of save slots displayed on the GMM load/save screens on the DS port.
-rw-r--r-- | gui/saveload.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gui/saveload.cpp b/gui/saveload.cpp index 41b6018e3b..9e3c9231f2 100644 --- a/gui/saveload.cpp +++ b/gui/saveload.cpp @@ -362,8 +362,19 @@ void SaveLoadChooser::updateSaveList() { } // Fill the rest of the save slots with empty saves + + int maximumSaveSlots = (*_plugin)->getMaximumSaveSlot(); + +#ifdef __DS__ + // Low memory on the DS means too many save slots are impractical, so limit + // the maximum here. + if (maximumSaveSlots > 99) { + maximumSaveSlots = 99; + } +#endif + Common::String emptyDesc; - for (int i = curSlot; i <= (*_plugin)->getMaximumSaveSlot(); i++) { + for (int i = curSlot; i <= maximumSaveSlots; i++) { saveNames.push_back(emptyDesc); SaveStateDescriptor dummySave(i, ""); _saveList.push_back(dummySave); |