diff options
Diffstat (limited to 'src/yuzu/main.cpp')
-rwxr-xr-x | src/yuzu/main.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 7fd4b1894..972cfeb04 100755 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
@@ -1044,12 +1044,7 @@ void GMainWindow::InitializeHotkeys() { | |||
1044 | input_subsystem->GetTas()->StartStop(); | 1044 | input_subsystem->GetTas()->StartStop(); |
1045 | }); | 1045 | }); |
1046 | connect(hotkey_registry.GetHotkey(main_window, QStringLiteral("TAS Reset"), this), | 1046 | connect(hotkey_registry.GetHotkey(main_window, QStringLiteral("TAS Reset"), this), |
1047 | &QShortcut::activated, this, [&] { | 1047 | &QShortcut::activated, this, [&] { input_subsystem->GetTas()->Reset(); }); |
1048 | if (emulation_running) { | ||
1049 | input_subsystem->GetTas()->Reset(); | ||
1050 | } | ||
1051 | input_subsystem->GetTas()->Reset(); | ||
1052 | }); | ||
1053 | connect(hotkey_registry.GetHotkey(main_window, QStringLiteral("TAS Record"), this), | 1048 | connect(hotkey_registry.GetHotkey(main_window, QStringLiteral("TAS Record"), this), |
1054 | &QShortcut::activated, this, [&] { | 1049 | &QShortcut::activated, this, [&] { |
1055 | if (!emulation_running) { | 1050 | if (!emulation_running) { |
@@ -1515,7 +1510,7 @@ void GMainWindow::ShutdownGame() { | |||
1515 | } | 1510 | } |
1516 | game_list->SetFilterFocus(); | 1511 | game_list->SetFilterFocus(); |
1517 | tas_label->clear(); | 1512 | tas_label->clear(); |
1518 | input_subsystem->GetTas()->~Tas(); | 1513 | input_subsystem->GetTas()->Stop(); |
1519 | 1514 | ||
1520 | render_window->removeEventFilter(render_window); | 1515 | render_window->removeEventFilter(render_window); |
1521 | render_window->setAttribute(Qt::WA_Hover, false); | 1516 | render_window->setAttribute(Qt::WA_Hover, false); |