show additional warning message when unsupported achievements are detected

This commit is contained in:
Jamiras 2025-05-19 07:44:56 -06:00
parent 531a8d75a7
commit 5568a1e25d
3 changed files with 12 additions and 0 deletions

View File

@ -1279,6 +1279,13 @@ static void rcheevos_show_game_placard(void)
runloop_msg_queue_push(msg, _len, 0, 3 * 60, false, NULL,
MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
}
if (summary.num_unsupported_achievements)
{
const char* warning = msg_hash_to_str(MSG_CHEEVOS_UNSUPPORTED_WARNING);
runloop_msg_queue_push(warning, strlen(warning), 0, 3 * 60, false, NULL,
MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_WARNING);
}
}
static uint32_t rcheevos_client_read_memory(uint32_t address,

View File

@ -15594,6 +15594,10 @@ MSG_HASH(
MSG_CHEEVOS_UNSUPPORTED_COUNT,
"%d unsupported"
)
MSG_HASH(
MSG_CHEEVOS_UNSUPPORTED_WARNING,
"Unsupported achievements detected. Please try a different core or update RetroArch."
)
MSG_HASH(
MSG_CHEEVOS_RICH_PRESENCE_SPECTATING,
"Spectating %s"

View File

@ -4101,6 +4101,7 @@ enum msg_hash_enums
MSG_CHEEVOS_UNOFFICIAL_ACHIEVEMENTS_ACTIVATED,
MSG_CHEEVOS_NUMBER_ACHIEVEMENTS_UNLOCKED,
MSG_CHEEVOS_UNSUPPORTED_COUNT,
MSG_CHEEVOS_UNSUPPORTED_WARNING,
MSG_CHEEVOS_RICH_PRESENCE_SPECTATING,
MSG_CHEEVOS_HARDCORE_PAUSED_MANUAL_FRAME_DELAY,
MSG_CHEEVOS_HARDCORE_PAUSED_VSYNC_SWAP_INTERVAL,