diff options
author | Jonathan Gray | 2003-01-01 07:12:57 +0000 |
---|---|---|
committer | Jonathan Gray | 2003-01-01 07:12:57 +0000 |
commit | 48c7919ee9485023dcdf374487550e965e2f61a3 (patch) | |
tree | a8f8cbcdc6d31051945a6ef62c63c4c68664b268 | |
parent | df1577d8429a9ad68626b0303cc7830b13144ed7 (diff) | |
download | scummvm-rg350-48c7919ee9485023dcdf374487550e965e2f61a3.tar.gz scummvm-rg350-48c7919ee9485023dcdf374487550e965e2f61a3.tar.bz2 scummvm-rg350-48c7919ee9485023dcdf374487550e965e2f61a3.zip |
change the zero key to mean slot 10 instead of 0 (autosave) when using save/load hotkeys. feature request #660500
svn-id: r6307
-rw-r--r-- | scumm/scummvm.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp index a5c4e0d825..e89a520f02 100644 --- a/scumm/scummvm.cpp +++ b/scumm/scummvm.cpp @@ -1448,6 +1448,11 @@ void Scumm::waitForTimer(int msec_delay) { && (event.kbd.flags == OSystem::KBD_ALT || event.kbd.flags == OSystem::KBD_CTRL)) { _saveLoadSlot = event.kbd.keycode - '0'; + + // don't overwrite autosave (slot 0) + if (_saveLoadSlot == 0) + _saveLoadSlot = 10; + sprintf(_saveLoadName, "Quicksave %d", _saveLoadSlot); _saveLoadFlag = (event.kbd.flags == OSystem::KBD_ALT) ? 1 : 2; _saveLoadCompatible = false; |