mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-10 12:02:53 +02:00
Request libretro frontend shutdown when the game exits
This commit is contained in:
parent
2f5850bfc1
commit
96f39f3913
1 changed files with 1 additions and 0 deletions
|
@ -758,6 +758,7 @@ struct main : boost::asio::coroutine {
|
|||
SANDBOX_AWAIT_S(0, rb_rescue2, func, SANDBOX_NIL, rescue, SANDBOX_NIL, sb()->rb_eException(), 0);
|
||||
if (SANDBOX_VALUE_TO_BOOL(SANDBOX_SLOT(0))) {
|
||||
log_printf(RETRO_LOG_INFO, "Game exited; terminating\n");
|
||||
environment(RETRO_ENVIRONMENT_SHUTDOWN, nullptr);
|
||||
} else {
|
||||
log_printf(RETRO_LOG_ERROR, "Game threw an exception; terminating\n");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue