(Menu) Implement pause_libretro functionality

This commit is contained in:
twinaphex 2014-09-29 14:38:37 +02:00
parent ae6c8fa7fb
commit 295e83bfc0

View File

@ -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. */