Display core version in RGUI as well.

This commit is contained in:
Themaister 2013-04-22 20:16:26 +02:00
parent 7e4ef13520
commit 14f8291e57

View File

@ -438,10 +438,16 @@ static void render_text(rgui_handle_t *rgui)
if (!core_name)
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__
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
snprintf(title_msg, sizeof(title_msg), "RetroArch - %s", core_name);
snprintf(title_msg, sizeof(title_msg), "%s - %s %s", core_name, core_version);
#endif
blit_line(rgui, TERM_START_X + 15, (TERM_HEIGHT * FONT_HEIGHT_STRIDE) + TERM_START_Y + 2, title_msg, true);