mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-25 16:42:39 -06:00
Improvements to Discord RPC.
This commit is contained in:
parent
3fb620eee0
commit
6c315bd716
1 changed files with 4 additions and 1 deletions
|
@ -42,11 +42,14 @@ void DiscordImpl::Update() {
|
|||
|
||||
DiscordRichPresence presence{};
|
||||
presence.largeImageKey = "large_icon";
|
||||
presence.largeImageText = "Lime is an emulator for the 3DS!";
|
||||
presence.smallImageKey = "small_icon";
|
||||
presence.smallImageText = "Lime is an emulator for the 3DS!";
|
||||
if (is_powered_on) {
|
||||
presence.largeImageText = title.c_str();
|
||||
presence.state = title.c_str();
|
||||
presence.details = "Currently in game";
|
||||
} else {
|
||||
presence.largeImageText = "Not in game";
|
||||
presence.details = "Not in game";
|
||||
}
|
||||
presence.startTimestamp = start_time;
|
||||
|
|
Loading…
Reference in a new issue