diff options
author | Liam <byteslice@airmail.cc> | 2022-06-10 09:11:02 -0400 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-06-10 09:11:02 -0400 |
commit | de6c0defb358b6d12831a594b1b4c615003566b8 (patch) | |
tree | 6a542e52a03d2d0ba48487d90e9565ea9f225064 /src/yuzu_cmd/yuzu.cpp | |
parent | 073714a762d4ef529c5bef35b0317472ae661711 (diff) |
core/debugger: support operation in yuzu-cmd
Diffstat (limited to 'src/yuzu_cmd/yuzu.cpp')
-rw-r--r-- | src/yuzu_cmd/yuzu.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp index ab12dd15d..a0d619c48 100644 --- a/src/yuzu_cmd/yuzu.cpp +++ b/src/yuzu_cmd/yuzu.cpp @@ -217,7 +217,15 @@ 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(); } |