Skip to content

Commit 9603d30

Browse files
committed
Disable reload while running
1 parent 2798f26 commit 9603d30

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ui/Keyboard.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ void UI::Keyboard::keyUp(const SDL_Keycode keycode) {
3131

3232
// r: reload ram and reset everything else
3333
else if (keycode == SDLK_r) {
34-
emulator->reload();
34+
if (!emulator->isRunning()) {
35+
emulator->reload();
36+
}
3537
}
3638

3739
// space: single step

0 commit comments

Comments
 (0)