Skip to content

Commit

Permalink
RetroPlayer: Set caption of playing item
Browse files Browse the repository at this point in the history
  • Loading branch information
garbear committed Feb 11, 2023
1 parent 51ca846 commit 753a9c6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions xbmc/cores/RetroPlayer/cheevos/Cheevos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,14 @@ std::string CCheevos::GetRichPresenceEvaluation()
std::string evaluation;
m_gameClient->Cheevos().RCGetRichPresenceEvaluation(evaluation, m_consoleID);

std::unique_ptr<CFileItem> file{std::make_unique<CFileItem>()};

GAME::CGameInfoTag& tag = *file->GetGameInfoTag();
tag.SetCaption(evaluation);

CServiceBroker::GetAppMessenger()->PostMsg(TMSG_UPDATE_PLAYER_ITEM, -1, -1,
static_cast<void*>(file.release()));

std::string url;
std::string postData;
if (m_gameClient->Cheevos().RCPostRichPresenceUrl(url, postData, m_userName, m_loginToken,
Expand Down

0 comments on commit 753a9c6

Please sign in to comment.