mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Display core version in RGUI as well.
This commit is contained in:
parent
7e4ef13520
commit
14f8291e57
@ -438,10 +438,16 @@ static void render_text(rgui_handle_t *rgui)
|
|||||||
if (!core_name)
|
if (!core_name)
|
||||||
core_name = "No Core";
|
core_name = "No Core";
|
||||||
|
|
||||||
|
const char *core_version = rgui->info.library_version;
|
||||||
|
if (!core_version)
|
||||||
|
core_version = g_extern.system.info.library_version;
|
||||||
|
if (!core_version)
|
||||||
|
core_version = "";
|
||||||
|
|
||||||
#ifndef __BLACKBERRY_QNX__
|
#ifndef __BLACKBERRY_QNX__
|
||||||
snprintf(title_msg, sizeof(title_msg), "RetroArch %s - %s", PACKAGE_VERSION, core_name);
|
snprintf(title_msg, sizeof(title_msg), "%s - %s %s", PACKAGE_VERSION, core_name, core_version);
|
||||||
#else
|
#else
|
||||||
snprintf(title_msg, sizeof(title_msg), "RetroArch - %s", core_name);
|
snprintf(title_msg, sizeof(title_msg), "%s - %s %s", core_name, core_version);
|
||||||
#endif
|
#endif
|
||||||
blit_line(rgui, TERM_START_X + 15, (TERM_HEIGHT * FONT_HEIGHT_STRIDE) + TERM_START_Y + 2, title_msg, true);
|
blit_line(rgui, TERM_START_X + 15, (TERM_HEIGHT * FONT_HEIGHT_STRIDE) + TERM_START_Y + 2, title_msg, true);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user