Add core path to Core Information screen (#16405)

This commit is contained in:
zoltanvb 2024-04-02 09:06:33 +02:00 committed by GitHub
parent fcd546b74c
commit 2d7ac133ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 22 additions and 0 deletions

View File

@ -503,6 +503,10 @@ MSG_HASH(
MENU_ENUM_LABEL_VALUE_CORE_INFO_REQUIRED_HW_API,
"Required Graphics API"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CORE_INFO_CORE_PATH,
"Full path of core"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CORE_INFO_SAVESTATE_SUPPORT_LEVEL,
"Save State Support"

View File

@ -839,6 +839,23 @@ static int menu_displaylist_parse_core_info(
}
}
if (core_path)
{
size_t _len;
_len = strlcpy(tmp,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_INFO_CORE_PATH),
sizeof(tmp));
tmp[ _len] = ':';
tmp[++_len] = ' ';
tmp[++_len] = '\0';
strlcpy(tmp + _len, core_path, sizeof(tmp) - _len);
if (menu_entries_append(list, tmp, "",
MENU_ENUM_LABEL_CORE_INFO_ENTRY,
MENU_SETTINGS_CORE_INFO_NONE, 0, 0, NULL))
count++;
}
end:
if (!kiosk_mode_enable)
{

View File

@ -3431,6 +3431,7 @@ enum msg_hash_enums
MENU_ENUM_LABEL_VALUE_CORE_INFO_FIRMWARE_IN_CONTENT_DIRECTORY,
MENU_ENUM_LABEL_VALUE_CORE_INFO_FIRMWARE_PATH,
MENU_ENUM_LABEL_VALUE_CORE_INFO_REQUIRED_HW_API,
MENU_ENUM_LABEL_VALUE_CORE_INFO_CORE_PATH,
MENU_ENUM_LABEL_VALUE_CORE_INFO_SAVESTATE_SUPPORT_LEVEL,
MENU_ENUM_LABEL_VALUE_CORE_INFO_SAVESTATE_DISABLED,