aboutsummaryrefslogtreecommitdiff
path: root/engines/sky
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2012-02-13 21:21:42 +0100
committerWillem Jan Palenstijn2012-02-13 21:21:42 +0100
commitc7a5d31f0576fe6ced0ac3170ab89c5df13135ba (patch)
tree08ce02625e4c4cf4f9914c9d29ac204e0c7c996b /engines/sky
parent3f5aaa0ca5b77d3e766d5eb8ea51085f072db701 (diff)
downloadscummvm-rg350-c7a5d31f0576fe6ced0ac3170ab89c5df13135ba.tar.gz
scummvm-rg350-c7a5d31f0576fe6ced0ac3170ab89c5df13135ba.tar.bz2
scummvm-rg350-c7a5d31f0576fe6ced0ac3170ab89c5df13135ba.zip
BASS: Report savegame errors when saving by pressing enter
This makes error handling consistent between mouse and keyboard.
Diffstat (limited to 'engines/sky')
-rw-r--r--engines/sky/control.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sky/control.cpp b/engines/sky/control.cpp
index 9efa6ce769..7741f1080e 100644
--- a/engines/sky/control.cpp
+++ b/engines/sky/control.cpp
@@ -878,6 +878,8 @@ uint16 Control::saveRestorePanel(bool allowSave) {
clickRes = handleClick(lookList[0]);
if (clickRes == GAME_SAVED)
saveDescriptions(saveGameTexts);
+ else if (clickRes == NO_DISK_SPACE)
+ displayMessage(0, "Could not save the game. (%s)", _saveFileMan->popErrorDesc().c_str());
quitPanel = true;
_mouseClicked = false;
_keyPressed.reset();