Remove erroneous return statements from retro_run()

We need to call `video_refresh()` exactly once every time `retro_run()`
is called as per the libretro docs. These return statements were
preventing that from happening.
This commit is contained in:
刘皓 2025-03-01 22:01:23 -05:00
parent d6ede8bcc6
commit 656e81fbb6
No known key found for this signature in database
GPG key ID: 7901753DB465B711

View file

@ -371,12 +371,10 @@ extern "C" RETRO_API void retro_run() {
if (sb().run<struct main>()) {
log_printf(RETRO_LOG_INFO, "[Sandbox] Ruby terminated normally\n");
deinit_sandbox();
return;
}
} catch (SandboxException) {
log_printf(RETRO_LOG_ERROR, "[Sandbox] Ruby threw an exception\n");
deinit_sandbox();
return;
}
}