core/debugger: support operation in yuzu-cmd

This commit is contained in:
Liam 2022-06-10 09:11:02 -04:00
parent 073714a762
commit de6c0defb3
3 changed files with 15 additions and 0 deletions

View file

@ -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();
}