diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-06-13 14:38:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-13 14:38:37 -0400 |
commit | a0407a8e646172392514dd996d62464db64aee83 (patch) | |
tree | b13a559bcb4a9f9641730d58285a56bde6d5cc80 /src/yuzu_cmd/yuzu.cpp | |
parent | 7582717c9d1cb0f7426f9f44a05908468daea8b3 (diff) | |
parent | c3cc65a11eddc0a72b31e1c1ff5fae997be21016 (diff) |
Merge pull request #8446 from liamwhite/cmd-gdb
core/debugger: support operation in yuzu-cmd
Diffstat (limited to 'src/yuzu_cmd/yuzu.cpp')
-rw-r--r-- | src/yuzu_cmd/yuzu.cpp | 9 |
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(); |