Add (temporary) shortcuts to save(F7)/restore(F8) to a file called "test.sav"

This commit is contained in:
Dr. Chat 2015-12-06 21:07:10 -06:00 committed by Ben Vanik
parent 24f8295daa
commit 49ed0915d4
1 changed files with 12 additions and 0 deletions

View File

@ -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();