Skip to content

Commit 564a6d6

Browse files
Margen67gibbed
authored andcommitted
[App] Disable stuff that crashes the emulator
1 parent f7c14a0 commit 564a6d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/xenia/app/emulator_window.cc

+4
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ bool EmulatorWindow::Initialize() {
118118
case ui::VirtualKey::kF5: {
119119
GpuClearCaches();
120120
} break;
121+
#ifdef DEBUG
121122
case ui::VirtualKey::kF7: {
122123
// Save to file
123124
// TODO: Choose path based on user input, or from options
@@ -130,6 +131,7 @@ bool EmulatorWindow::Initialize() {
130131
// TODO: Spawn a new thread to do this.
131132
emulator()->RestoreFromFile("test.sav");
132133
} break;
134+
#endif // #ifdef DEBUG
133135
case ui::VirtualKey::kF11: {
134136
ToggleFullscreen();
135137
} break;
@@ -186,9 +188,11 @@ bool EmulatorWindow::Initialize() {
186188
file_menu->AddChild(
187189
MenuItem::Create(MenuItem::Type::kString, "&Open...", "Ctrl+O",
188190
std::bind(&EmulatorWindow::FileOpen, this)));
191+
#ifdef DEBUG
189192
file_menu->AddChild(
190193
MenuItem::Create(MenuItem::Type::kString, "Close",
191194
std::bind(&EmulatorWindow::FileClose, this)));
195+
#endif // #ifdef DEBUG
192196
file_menu->AddChild(MenuItem::Create(MenuItem::Type::kSeparator));
193197
file_menu->AddChild(MenuItem::Create(
194198
MenuItem::Type::kString, "Show content directory...",

0 commit comments

Comments
 (0)