summaryrefslogtreecommitdiffstats
path: root/src/yuzu_cmd/yuzu.cpp
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-06-13 20:38:37 +0200
committerGitHub <noreply@github.com>2022-06-13 20:38:37 +0200
commita0407a8e646172392514dd996d62464db64aee83 (patch)
treeb13a559bcb4a9f9641730d58285a56bde6d5cc80 /src/yuzu_cmd/yuzu.cpp
parentMerge pull request #8454 from liamwhite/inaddr-any (diff)
parentyuzu-cmd: ignore bogus timeous from SDL (diff)
downloadyuzu-a0407a8e646172392514dd996d62464db64aee83.tar
yuzu-a0407a8e646172392514dd996d62464db64aee83.tar.gz
yuzu-a0407a8e646172392514dd996d62464db64aee83.tar.bz2
yuzu-a0407a8e646172392514dd996d62464db64aee83.tar.lz
yuzu-a0407a8e646172392514dd996d62464db64aee83.tar.xz
yuzu-a0407a8e646172392514dd996d62464db64aee83.tar.zst
yuzu-a0407a8e646172392514dd996d62464db64aee83.zip
Diffstat (limited to '')
-rw-r--r--src/yuzu_cmd/yuzu.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp
index ab12dd15d..0dce5e274 100644
--- a/src/yuzu_cmd/yuzu.cpp
+++ b/src/yuzu_cmd/yuzu.cpp
@@ -217,10 +217,19 @@ int main(int argc, char** argv) {
[](VideoCore::LoadCallbackStage, size_t value, size_t total) {});
}
+ system.RegisterExitCallback([&] {
+ // Just exit right away.
+ exit(0);
+ });
+
void(system.Run());
+ if (system.DebuggerEnabled()) {
+ system.InitializeDebugger();
+ }
while (emu_window->IsOpen()) {
emu_window->WaitEvent();
}
+ system.DetachDebugger();
void(system.Pause());
system.Shutdown();