Qt: Set icon for Discord Rich Presence

This commit is contained in:
Vicki Pfau 2020-02-23 00:34:15 -08:00
parent b4cd441ef4
commit ba49e9f1ce
2 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,7 @@ Misc:
- Qt: Add transformation matrix info to sprite view - Qt: Add transformation matrix info to sprite view
- Qt: Disable Replace ROM option when no game loaded - Qt: Disable Replace ROM option when no game loaded
- Qt: Defer texture updates until frame is drawn (fixes mgba.io/i/1590) - Qt: Defer texture updates until frame is drawn (fixes mgba.io/i/1590)
- Qt: Set icon for Discord Rich Presence
0.8.1: (2020-02-16) 0.8.1: (2020-02-16)
Emulation fixes: Emulation fixes:

View File

@ -30,6 +30,7 @@ static void updatePresence() {
DiscordRichPresence discordPresence{}; DiscordRichPresence discordPresence{};
discordPresence.details = s_title.toUtf8().constData(); discordPresence.details = s_title.toUtf8().constData();
discordPresence.instance = 1; discordPresence.instance = 1;
discordPresence.largeImageKey = "mgba";
Discord_UpdatePresence(&discordPresence); Discord_UpdatePresence(&discordPresence);
} else { } else {
Discord_ClearPresence(); Discord_ClearPresence();