mirror of
https://github.com/libretro/RetroArch
synced 2025-02-26 06:40:39 +00:00
Get core information when statically linked.
This commit is contained in:
parent
c146206d30
commit
7e4ef13520
@ -217,6 +217,10 @@ rgui_handle_t *rgui_init(void)
|
|||||||
fill_pathname_basedir(rgui->libretro_dir, g_settings.libretro, sizeof(rgui->libretro_dir));
|
fill_pathname_basedir(rgui->libretro_dir, g_settings.libretro, sizeof(rgui->libretro_dir));
|
||||||
libretro_get_system_info(g_settings.libretro, &rgui->info);
|
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
|
#endif
|
||||||
|
|
||||||
rgui->menu_stack = (rgui_list_t*)calloc(1, sizeof(rgui_list_t));
|
rgui->menu_stack = (rgui_list_t*)calloc(1, sizeof(rgui_list_t));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user