mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-10 12:02:53 +02:00
Properly catch exceptions in Graphics.update
in libretro builds
This commit is contained in:
parent
583ddfb45d
commit
643a6bc14f
1 changed files with 3 additions and 1 deletions
|
@ -57,7 +57,9 @@ static VALUE update(VALUE self) {
|
|||
struct coro : boost::asio::coroutine {
|
||||
VALUE operator()(VALUE self) {
|
||||
BOOST_ASIO_CORO_REENTER (this) {
|
||||
if (shState->graphics().update(sb().e)) {
|
||||
bool needs_yield;
|
||||
SANDBOX_GUARD(needs_yield = shState->graphics().update(sb().e));
|
||||
if (needs_yield) {
|
||||
SANDBOX_YIELD;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue