mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-27 03:54:17 +01:00
Improvements to Discord RPC.
This commit is contained in:
parent
3fb620eee0
commit
6c315bd716
@ -42,11 +42,14 @@ void DiscordImpl::Update() {
|
|||||||
|
|
||||||
DiscordRichPresence presence{};
|
DiscordRichPresence presence{};
|
||||||
presence.largeImageKey = "large_icon";
|
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) {
|
if (is_powered_on) {
|
||||||
|
presence.largeImageText = title.c_str();
|
||||||
presence.state = title.c_str();
|
presence.state = title.c_str();
|
||||||
presence.details = "Currently in game";
|
presence.details = "Currently in game";
|
||||||
} else {
|
} else {
|
||||||
|
presence.largeImageText = "Not in game";
|
||||||
presence.details = "Not in game";
|
presence.details = "Not in game";
|
||||||
}
|
}
|
||||||
presence.startTimestamp = start_time;
|
presence.startTimestamp = start_time;
|
||||||
|
Loading…
Reference in New Issue
Block a user