mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-07 10:50:35 +00:00
xmb: show MSVC version next to RetroArch version in lower-left corner
This commit is contained in:
parent
23fe638add
commit
7b24f884d6
@ -421,6 +421,29 @@ int menu_entries_get_core_title(char *s, size_t len)
|
||||
const char *core_version = NULL;
|
||||
rarch_system_info_t *info = runloop_get_system_info();
|
||||
struct retro_system_info *system = &info->info;
|
||||
#if _MSC_VER == 1200
|
||||
const char *extra_version = " msvc6";
|
||||
#elif _MSC_VER == 1300
|
||||
const char *extra_version = " msvc2002";
|
||||
#elif _MSC_VER == 1310
|
||||
const char *extra_version = " msvc2003";
|
||||
#elif _MSC_VER == 1400
|
||||
const char *extra_version = " msvc2005";
|
||||
#elif _MSC_VER == 1500
|
||||
const char *extra_version = " msvc2008";
|
||||
#elif _MSC_VER == 1600
|
||||
const char *extra_version = " msvc2010";
|
||||
#elif _MSC_VER == 1700
|
||||
const char *extra_version = " msvc2012";
|
||||
#elif _MSC_VER == 1800
|
||||
const char *extra_version = " msvc2013";
|
||||
#elif _MSC_VER == 1900
|
||||
const char *extra_version = " msvc2015";
|
||||
#elif _MSC_VER >= 1910 && _MSC_VER < 2000
|
||||
const char *extra_version = " msvc2017";
|
||||
#else
|
||||
const char *extra_version = "";
|
||||
#endif
|
||||
|
||||
if (system)
|
||||
{
|
||||
@ -438,7 +461,7 @@ int menu_entries_get_core_title(char *s, size_t len)
|
||||
if (!core_version)
|
||||
core_version = "";
|
||||
|
||||
snprintf(s, len, "%s - %s %s", PACKAGE_VERSION,
|
||||
snprintf(s, len, "%s%s - %s %s", PACKAGE_VERSION, extra_version,
|
||||
core_name, core_version);
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user