mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-01 00:12:59 +00:00
HUGO: Add F4/F5 keys to save/restoreGame
Currently, it only saves/restores slot #0, no selection screen is displayed svn-id: r54515
This commit is contained in:
parent
3d4ca8e405
commit
5f7ac43a24
@ -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 @@ void Parser::keyHandler(uint16 nChar, uint16 nFlags) {
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user