Get core information when statically linked.

This commit is contained in:
Themaister 2013-04-22 20:10:22 +02:00
parent c146206d30
commit 7e4ef13520

View File

@ -217,6 +217,10 @@ rgui_handle_t *rgui_init(void)
fill_pathname_basedir(rgui->libretro_dir, g_settings.libretro, sizeof(rgui->libretro_dir));
libretro_get_system_info(g_settings.libretro, &rgui->info);
}
#else
// Don't use pretro_*, it can be dummy core. If we're statically linked,
// retro_* will always go to the "real" core.
retro_get_system_info(&rgui->info);
#endif
rgui->menu_stack = (rgui_list_t*)calloc(1, sizeof(rgui_list_t));