From 49ed0915d480df0d17f64fcb4dde6c831b7dc691 Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Sun, 6 Dec 2015 21:07:10 -0600 Subject: [PATCH] Add (temporary) shortcuts to save(F7)/restore(F8) to a file called "test.sav" --- src/xenia/app/emulator_window.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/xenia/app/emulator_window.cc b/src/xenia/app/emulator_window.cc index 73863dc29..b5e077aaf 100644 --- a/src/xenia/app/emulator_window.cc +++ b/src/xenia/app/emulator_window.cc @@ -102,6 +102,18 @@ bool EmulatorWindow::Initialize() { case 0x74: { // VK_F5 GpuClearCaches(); } break; + case 0x76: { // VK_F7 + // Save to file + // TODO: Choose path based on user input, or from options + // TODO: Spawn a new thread to do this. + emulator()->SaveToFile(L"test.sav"); + } break; + case 0x77: { // VK_F8 + // Restore from file + // TODO: Choose path from user + // TODO: Spawn a new thread to do this. + emulator()->RestoreFromFile(L"test.sav"); + } break; case 0x7A: { // VK_F11 ToggleFullscreen();