mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-05 06:14:36 +00:00
commit
91c591f026
|
@ -28,6 +28,11 @@ class DiscordClient
|
|||
DiscordRpc.shutdown();
|
||||
}
|
||||
|
||||
public static function shutdown()
|
||||
{
|
||||
DiscordRpc.shutdown();
|
||||
}
|
||||
|
||||
static function onReady()
|
||||
{
|
||||
DiscordRpc.presence({
|
||||
|
|
|
@ -96,6 +96,10 @@ class TitleState extends MusicBeatState
|
|||
|
||||
#if desktop
|
||||
DiscordClient.initialize();
|
||||
|
||||
Application.current.onExit.add (function (exitCode) {
|
||||
DiscordClient.shutdown();
|
||||
});
|
||||
#end
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue