1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-05 06:14:36 +00:00

Merge pull request #695 from KadeDev/patch-1

Discord RPC fix
This commit is contained in:
Cameron Taylor 2021-04-02 14:39:42 -07:00 committed by GitHub
commit 91c591f026
2 changed files with 9 additions and 0 deletions

View file

@ -28,6 +28,11 @@ class DiscordClient
DiscordRpc.shutdown();
}
public static function shutdown()
{
DiscordRpc.shutdown();
}
static function onReady()
{
DiscordRpc.presence({

View file

@ -96,6 +96,10 @@ class TitleState extends MusicBeatState
#if desktop
DiscordClient.initialize();
Application.current.onExit.add (function (exitCode) {
DiscordClient.shutdown();
});
#end
}