Esempio n. 1
0
bool menu_display_init_first_driver(void)
{
   unsigned i;

   for (i = 0; menu_display_ctx_drivers[i]; i++)
   {
      if (!menu_display_check_compatibility(
               menu_display_ctx_drivers[i]->type))
         continue;

      RARCH_LOG("Found menu display driver: \"%s\".\n",
            menu_display_ctx_drivers[i]->ident);
      menu_disp = menu_display_ctx_drivers[i];
      return true;
   }
   return false;
}
Esempio n. 2
0
void init_menu(void)
{
   driver_t *driver     = driver_get_ptr();

   if (driver->menu)
      return;

   find_menu_driver();

   if (!menu_display_check_compatibility((enum menu_display_driver_type)driver->menu_ctx->type))
      init_menu_fallback();

   if (!(driver->menu = (menu_handle_t*)menu_init(driver->menu_ctx)))
      retro_fail(1, "init_menu()");

   if (driver->menu_ctx->lists_init)
      if (!driver->menu_ctx->lists_init(driver->menu))
         retro_fail(1, "init_menu()");
}