summaryrefslogtreecommitdiff
path: root/src/yuzu_cmd/yuzu.cpp
diff options
context:
space:
mode:
authorGravatar Liam2022-06-10 09:11:02 -0400
committerGravatar Liam2022-06-10 09:11:02 -0400
commitde6c0defb358b6d12831a594b1b4c615003566b8 (patch)
tree6a542e52a03d2d0ba48487d90e9565ea9f225064 /src/yuzu_cmd/yuzu.cpp
parentMerge pull request #8428 from bunnei/nvflinger-fix-timing (diff)
downloadyuzu-de6c0defb358b6d12831a594b1b4c615003566b8.tar.gz
yuzu-de6c0defb358b6d12831a594b1b4c615003566b8.tar.xz
yuzu-de6c0defb358b6d12831a594b1b4c615003566b8.zip
core/debugger: support operation in yuzu-cmd
Diffstat (limited to '')
-rw-r--r--src/yuzu_cmd/yuzu.cpp8
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) {
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 }