mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-08 19:40:30 +00:00
(Menu) Implement pause_libretro functionality
This commit is contained in:
parent
ae6c8fa7fb
commit
295e83bfc0
@ -31,7 +31,22 @@ static void draw_frame(bool enable)
|
||||
return;
|
||||
|
||||
if (driver.video)
|
||||
{
|
||||
if (!g_settings.menu.pause_libretro)
|
||||
{
|
||||
if (g_extern.main_is_init && !g_extern.libretro_dummy)
|
||||
{
|
||||
bool block_libretro_input = driver.block_libretro_input;
|
||||
driver.block_libretro_input = true;
|
||||
pretro_run();
|
||||
driver.block_libretro_input = block_libretro_input;
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
rarch_render_cached_frame();
|
||||
}
|
||||
}
|
||||
|
||||
/* Update menu state which depends on config. */
|
||||
|
Loading…
Reference in New Issue
Block a user