[Scummvm-cvs-logs] SF.net SVN: scummvm:[54515] scummvm/trunk/engines/hugo/parser.cpp
strangerke at users.sourceforge.net
strangerke at users.sourceforge.net
Sun Nov 28 00:09:19 CET 2010
Revision: 54515
http://scummvm.svn.sourceforge.net/scummvm/?rev=54515&view=rev
Author: strangerke
Date: 2010-11-27 23:09:19 +0000 (Sat, 27 Nov 2010)
Log Message:
-----------
HUGO: Add F4/F5 keys to save/restoreGame
Currently, it only saves/restores slot #0, no selection
screen is displayed
Modified Paths:
--------------
scummvm/trunk/engines/hugo/parser.cpp
Modified: scummvm/trunk/engines/hugo/parser.cpp
===================================================================
--- scummvm/trunk/engines/hugo/parser.cpp 2010-11-27 21:36:04 UTC (rev 54514)
+++ scummvm/trunk/engines/hugo/parser.cpp 2010-11-27 23:09:19 UTC (rev 54515)
@@ -36,6 +36,7 @@
#include "hugo/parser.h"
#include "hugo/file.h"
#include "hugo/display.h"
+#include "hugo/schedule.h"
#include "hugo/route.h"
#include "hugo/util.h"
#include "hugo/sound.h"
@@ -99,7 +100,16 @@
gameStatus.recallFl = true;
break;
case Common::KEYCODE_F4: // Save game
+ // TODO: Add a proper screen to select saveslot
+ if (gameStatus.viewState == V_PLAY)
+ _vm->_file->saveGame(gameStatus.saveSlot, "Current game");
+ break;
case Common::KEYCODE_F5: // Restore game
+ // TODO: Add a proper screen to specify saveslot and description
+ _vm->_file->restoreGame(gameStatus.saveSlot);
+ _vm->_scheduler->restoreScreen(*_vm->_screen_p);
+ gameStatus.viewState = V_PLAY;
+ break;
case Common::KEYCODE_F9: // Boss button
warning("STUB: KeyHandler() - F4-F5-F9 (DOS)");
break;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list