aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/myst_saveload.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2010-12-07 01:58:18 +0000
committerMatthew Hoops2010-12-07 01:58:18 +0000
commita8c81723153977801fdebecd8867daccc9e85591 (patch)
tree7f7a638a512bbb3e1a7bbd1a9bbf768f00629936 /engines/mohawk/myst_saveload.cpp
parenta789ee11c2116d190bc0f2f2051ad931fb53d478 (diff)
downloadscummvm-rg350-a8c81723153977801fdebecd8867daccc9e85591.tar.gz
scummvm-rg350-a8c81723153977801fdebecd8867daccc9e85591.tar.bz2
scummvm-rg350-a8c81723153977801fdebecd8867daccc9e85591.zip
MOHAWK: Set the default cursor upon loading a game in Myst
svn-id: r54808
Diffstat (limited to 'engines/mohawk/myst_saveload.cpp')
-rw-r--r--engines/mohawk/myst_saveload.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/engines/mohawk/myst_saveload.cpp b/engines/mohawk/myst_saveload.cpp
index e5aaf7fe05..a3cfb7f83b 100644
--- a/engines/mohawk/myst_saveload.cpp
+++ b/engines/mohawk/myst_saveload.cpp
@@ -23,6 +23,7 @@
*
*/
+#include "mohawk/cursors.h"
#include "mohawk/myst.h"
#include "mohawk/myst_saveload.h"
@@ -89,6 +90,21 @@ bool MystSaveLoad::loadGame(const Common::String &filename) {
syncGameState(s);
delete loadFile;
+ // Set our default cursor
+ switch (_v->globals.heldPage) {
+ case 2:
+ _vm->setMainCursor(kBluePageCursor);
+ break;
+ case 8:
+ _vm->setMainCursor(kRedPageCursor);
+ break;
+ case 12:
+ _vm->setMainCursor(kWhitePageCursor);
+ break;
+ default:
+ _vm->setMainCursor(kDefaultMystCursor);
+ }
+
return true;
}