mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-01 16:05:07 +01:00
Improvements to Discord RPC.
This commit is contained in:
parent
3fb620eee0
commit
6c315bd716
@ -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 New Issue
Block a user