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