diff options
author | James Brown | 2002-04-27 04:31:25 +0000 |
---|---|---|
committer | James Brown | 2002-04-27 04:31:25 +0000 |
commit | d0b9677f5d29e5ec601c9831987a524c9a824503 (patch) | |
tree | 84490803eb452af9009eaaa209ccfd4bd89fe5a8 /gui.cpp | |
parent | 1c108c0ed56faa146b8918c384450fff851f17b8 (diff) | |
download | scummvm-rg350-d0b9677f5d29e5ec601c9831987a524c9a824503.tar.gz scummvm-rg350-d0b9677f5d29e5ec601c9831987a524c9a824503.tar.bz2 scummvm-rg350-d0b9677f5d29e5ec601c9831987a524c9a824503.zip |
Add autosave support, fix sm and max midi.
svn-id: r4099
Diffstat (limited to 'gui.cpp')
-rw-r--r-- | gui.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -654,7 +654,7 @@ void Gui::handleCommand(int cmd) getSavegameNames(_slotIndex + 9); draw(20, 28); return; - case 3: /* save button */ + case 3: /* save button */ _cur_page = 2; getSavegameNames(0); draw(0, 100); @@ -677,6 +677,9 @@ void Gui::handleCommand(int cmd) case 8: if (lastEdit == -1 || game_names[lastEdit][0] == 0) return; + if (_cur_page == 2) + _slotIndex++; + _s->_saveLoadSlot = lastEdit + _slotIndex; _s->_saveLoadCompatible = false; _s->_saveLoadFlag = 1; @@ -711,6 +714,9 @@ void Gui::getSavegameNames(int start) { int i; _slotIndex = start; + if (_cur_page == 2) + start++; + for (i = 0; i < 9; i++, start++) { valid_games[i] = _s->getSavegameName(start, game_names[i]); } |