MOHAWK: Set the default cursor upon loading a game in Myst

svn-id: r54808
This commit is contained in:
Matthew Hoops 2010-12-07 01:58:18 +00:00
parent a789ee11c2
commit a8c8172315

View file

@ -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;
}