Skip to content

Commit 375bf24

Browse files
committed
Playing "Brawl" now shows P+ details in Discord
1 parent 4d40b94 commit 375bf24

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

Source/Core/UICommon/DiscordPresence.cpp

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,16 @@ std::string ArtworkForGameId()
105105
const bool is_wii = Core::System::GetInstance().IsWii();
106106
const std::string region_code = SConfig::GetInstance().GetGameTDBImageRegionCode(is_wii, region);
107107

108-
static constexpr char cover_url[] = "https://discord.dolphin-emu.org/cover-art/{}/{}.png";
109-
return fmt::format(cover_url, region_code, SConfig::GetInstance().GetGameTDBID());
108+
if (SConfig::GetInstance().GetGameTDBID() == "RSBE01")
109+
{
110+
static constexpr char cover_url[] = "https://art.gametdb.com/wii/coverB/US/RSBEPL.png";
111+
return fmt::format(cover_url, region_code, SConfig::GetInstance().GetGameTDBID());
112+
}
113+
else
114+
{
115+
static constexpr char cover_url[] = "https://discord.dolphin-emu.org/cover-art/{}/{}.png";
116+
return fmt::format(cover_url, region_code, SConfig::GetInstance().GetGameTDBID());
117+
}
110118
}
111119

112120
} // namespace
@@ -228,7 +236,15 @@ void UpdateDiscordPresence(int party_size, SecretType type, const std::string& s
228236
discord_presence.smallImageKey = "dolphin_logo";
229237
discord_presence.smallImageText = "Dolphin is an emulator for the GameCube and the Wii.";
230238
}
231-
discord_presence.details = title.empty() ? "Not in-game" : title.c_str();
239+
if (title.empty())
240+
discord_presence.details = "Not in-game";
241+
else if (SConfig::GetInstance().GetGameID() == "RSBE01")
242+
{
243+
discord_presence.details = "Project+";
244+
discord_presence.largeImageText = "Project+";
245+
}
246+
else
247+
discord_presence.details = title.c_str();
232248
if (reset_timer)
233249
{
234250
s_start_timestamp = std::chrono::duration_cast<std::chrono::seconds>(

0 commit comments

Comments
 (0)