diff options
| author | 2022-06-13 14:38:37 -0400 | |
|---|---|---|
| committer | 2022-06-13 14:38:37 -0400 | |
| commit | a0407a8e646172392514dd996d62464db64aee83 (patch) | |
| tree | b13a559bcb4a9f9641730d58285a56bde6d5cc80 /src/yuzu_cmd/yuzu.cpp | |
| parent | Merge pull request #8454 from liamwhite/inaddr-any (diff) | |
| parent | yuzu-cmd: ignore bogus timeous from SDL (diff) | |
| download | yuzu-a0407a8e646172392514dd996d62464db64aee83.tar.gz yuzu-a0407a8e646172392514dd996d62464db64aee83.tar.xz yuzu-a0407a8e646172392514dd996d62464db64aee83.zip | |
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) { | |||
| 217 | [](VideoCore::LoadCallbackStage, size_t value, size_t total) {}); | 217 | [](VideoCore::LoadCallbackStage, size_t value, size_t total) {}); |
| 218 | } | 218 | } |
| 219 | 219 | ||
| 220 | system.RegisterExitCallback([&] { | ||
| 221 | // Just exit right away. | ||
| 222 | exit(0); | ||
| 223 | }); | ||
| 224 | |||
| 220 | void(system.Run()); | 225 | void(system.Run()); |
| 226 | if (system.DebuggerEnabled()) { | ||
| 227 | system.InitializeDebugger(); | ||
| 228 | } | ||
| 221 | while (emu_window->IsOpen()) { | 229 | while (emu_window->IsOpen()) { |
| 222 | emu_window->WaitEvent(); | 230 | emu_window->WaitEvent(); |
| 223 | } | 231 | } |
| 232 | system.DetachDebugger(); | ||
| 224 | void(system.Pause()); | 233 | void(system.Pause()); |
| 225 | system.Shutdown(); | 234 | system.Shutdown(); |
| 226 | 235 | ||