Skip to content

Commit

Permalink
Add core path to Core Information screen
Browse files Browse the repository at this point in the history
  • Loading branch information
zoltanvb committed Apr 2, 2024
1 parent fcd546b commit cf6da6f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions intl/msg_hash_us.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
17 changes: 17 additions & 0 deletions menu/menu_displaylist.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
1 change: 1 addition & 0 deletions msg_hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cf6da6f

Please sign in to comment.