void init_menu(void) { const char *video_driver; driver_t *driver = driver_get_ptr(); if (driver->menu) return; find_menu_driver(); video_driver = menu_video_get_ident(); switch (driver->menu_ctx->type) { case MENU_VIDEO_DRIVER_GENERIC: break; case MENU_VIDEO_DRIVER_DIRECT3D: if (video_driver && (strcmp(video_driver, "d3d") != 0)) init_menu_fallback(); break; case MENU_VIDEO_DRIVER_OPENGL: if (video_driver && (strcmp(video_driver, "gl") != 0)) init_menu_fallback(); break; } if (!(driver->menu = (menu_handle_t*)menu_init(driver->menu_ctx))) rarch_fail(1, "init_menu()"); if (driver->menu_ctx->lists_init) if (!driver->menu_ctx->lists_init(driver->menu)) rarch_fail(1, "init_menu()"); }
/** * init_drivers_pre: * * Attempts to find a default driver for * all driver types. * * Should be run before init_drivers(). **/ void init_drivers_pre(void) { find_audio_driver(); find_video_driver(); find_input_driver(); find_camera_driver(); find_location_driver(); #ifdef HAVE_MENU find_menu_driver(); #endif }
static void init_menu(void) { if (driver.menu) return; find_menu_driver(); if (!(driver.menu = (menu_handle_t*)menu_init(driver.menu_ctx))) { RARCH_ERR("Cannot initialize menu.\n"); rarch_fail(1, "init_menu()"); } }
void init_menu(void) { if (menu_driver_data) return; find_menu_driver(); if (!(menu_driver_data = (menu_handle_t*)menu_init(menu_driver_ctx))) retro_fail(1, "init_menu()"); if (menu_driver_ctx->lists_init) if (!menu_driver_ctx->lists_init(menu_driver_data)) retro_fail(1, "init_menu()"); }
void init_drivers_pre(void) { find_audio_driver(); find_video_driver(); find_input_driver(); #ifdef HAVE_CAMERA find_camera_driver(); #endif #ifdef HAVE_LOCATION find_location_driver(); #endif #ifdef HAVE_OSK find_osk_driver(); #endif #ifdef HAVE_MENU find_menu_driver(); #endif }
void init_menu(void) { driver_t *driver = driver_get_ptr(); if (driver->menu) return; find_menu_driver(); if (!(driver->menu = (menu_handle_t*)menu_init(driver->menu_ctx))) { RARCH_ERR("Cannot initialize menu.\n"); rarch_fail(1, "init_menu()"); } if (!(menu_entries_init(driver->menu))) { RARCH_ERR("Cannot initialize menu lists.\n"); rarch_fail(1, "init_menu()"); } }
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()"); }