From 753a9c6e7ac5716f7ab76758cf07f4c8cca1e35e Mon Sep 17 00:00:00 2001 From: Garrett Brown Date: Fri, 9 Sep 2022 16:31:54 -0700 Subject: [PATCH] RetroPlayer: Set caption of playing item --- xbmc/cores/RetroPlayer/cheevos/Cheevos.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xbmc/cores/RetroPlayer/cheevos/Cheevos.cpp b/xbmc/cores/RetroPlayer/cheevos/Cheevos.cpp index 8a93b9a7e57ad..01758f154c027 100644 --- a/xbmc/cores/RetroPlayer/cheevos/Cheevos.cpp +++ b/xbmc/cores/RetroPlayer/cheevos/Cheevos.cpp @@ -210,6 +210,14 @@ std::string CCheevos::GetRichPresenceEvaluation() std::string evaluation; m_gameClient->Cheevos().RCGetRichPresenceEvaluation(evaluation, m_consoleID); + std::unique_ptr file{std::make_unique()}; + + GAME::CGameInfoTag& tag = *file->GetGameInfoTag(); + tag.SetCaption(evaluation); + + CServiceBroker::GetAppMessenger()->PostMsg(TMSG_UPDATE_PLAYER_ITEM, -1, -1, + static_cast(file.release())); + std::string url; std::string postData; if (m_gameClient->Cheevos().RCPostRichPresenceUrl(url, postData, m_userName, m_loginToken,