mirror of
https://github.com/ultrasn0w/foo_drpc.git
synced 2026-04-26 14:34:17 +02:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0bb4f8080c | |||
| 579e7cbb7c | |||
| fa59966d6c | |||
| da6b7ec8ed |
@@ -1,8 +1,11 @@
|
|||||||
# foo_drpc
|
# foo_drpc
|
||||||
Foobar2000 music status for Discord Rich Presence!
|
Foobar2000 music status for Discord Rich Presence!
|
||||||
|
|
||||||
|
# Notice
|
||||||
|
I'm currently no longer actively developing this, but will still merge PRs and reference releases at the [release page](https://github.com/ultrasn0w/foo_drpc/releases).
|
||||||
|
|
||||||
# How to use
|
# How to use
|
||||||
1. Grab release, drop included **foo_drpc** directory in \%userdir%\AppData\Roaming\foobar2000\user-components\ or place included .dll Files in \foobar2000\components\.
|
1. Grab [release](https://github.com/ultrasn0w/foo_drpc/releases), drop included **foo_drpc** directory in \%userdir%\AppData\Roaming\foobar2000\user-components\ (if you have not moved your AppData somewhere else) or place included .dll Files in \foobar2000\components\.
|
||||||
2. Add foobar2000 to discords detected games (Settings -> Games -> Add it).
|
2. Add foobar2000 to discords detected games (Settings -> Games -> Add it).
|
||||||
|
|
||||||

|

|
||||||
|
|||||||
+2
-2
@@ -93,9 +93,9 @@ void foo_drpc::on_playback_stop(playback_control::t_stop_reason reason)
|
|||||||
case playback_control::stop_reason_shutting_down:
|
case playback_control::stop_reason_shutting_down:
|
||||||
discordPresence.state = "Stopped";
|
discordPresence.state = "Stopped";
|
||||||
discordPresence.smallImageKey = "stop";
|
discordPresence.smallImageKey = "stop";
|
||||||
|
updateDiscordPresence();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
updateDiscordPresence();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void foo_drpc::on_playback_pause(bool pause)
|
void foo_drpc::on_playback_pause(bool pause)
|
||||||
@@ -186,7 +186,7 @@ void foo_drpc::updateDiscordPresence()
|
|||||||
Discord_RunCallbacks();
|
Discord_RunCallbacks();
|
||||||
}
|
}
|
||||||
|
|
||||||
void connectedF()
|
void connectedF(const DiscordUser* request)
|
||||||
{
|
{
|
||||||
connected = true;
|
connected = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user