Minor iOS JIT availability information (#16358)

This commit is contained in:
Eric Warmenhoven 2024-03-16 02:59:49 -04:00 committed by GitHub
parent b6268d8f98
commit bca3cc0165
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 27 additions and 0 deletions

View File

@ -642,6 +642,10 @@ MSG_HASH(
MENU_ENUM_LABEL_VALUE_CPU_CORES,
"CPU Cores"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_JIT_AVAILABLE,
"JIT Available"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_FRONTEND_IDENTIFIER,
"Frontend Identifier"

View File

@ -1853,6 +1853,28 @@ static unsigned menu_displaylist_parse_system_info(file_list_t *list)
count++;
}
#ifdef IOS
{
const char *val_yes_str = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES);
const char *val_no_str = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO);
size_t _len = strlcpy(entry,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_JIT_AVAILABLE),
sizeof(entry));
entry[ _len] = ':';
entry[++_len] = ' ';
entry[++_len] = '\0';
if (jit_available())
strlcpy(entry + _len, val_yes_str, sizeof(entry) - _len);
else
strlcpy(entry + _len, val_no_str, sizeof(entry) - _len);
if (menu_entries_append(list, entry, "",
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE,
0, 0, NULL))
count++;
}
#endif
/* Input devices */
{
const char *menu_driver = menu_driver_ident();

View File

@ -858,6 +858,7 @@ enum msg_hash_enums
/* System information */
MENU_LABEL(CPU_CORES),
MENU_LABEL(CPU_ARCHITECTURE),
MENU_LABEL(JIT_AVAILABLE),
/* Input */