mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-04-08 18:35:09 +02:00
Check gameoptions before Discord RPC
This commit is contained in:
parent
cd0cf2dad3
commit
ce85ede557
@ -9,7 +9,7 @@ Public Class Presence
|
||||
Private APP_StartTimestamp As Long = Nothing
|
||||
|
||||
Public Sub Initialize()
|
||||
If APP_ID IsNot Nothing And Environment.Is64BitProcess = False Then
|
||||
If APP_ID IsNot Nothing And Environment.Is64BitProcess = False And Core.GameOptions.DiscordRPCEnabled = True Then
|
||||
Discord_Initialize(APP_ID, Handlers, 1, "")
|
||||
Update()
|
||||
APP_StartTimestamp = DateTime.UtcNow.Subtract(New DateTime(1970, 1, 1)).TotalMilliseconds
|
||||
@ -24,6 +24,10 @@ Public Class Presence
|
||||
|
||||
Logger.Log(Logger.LogTypes.Debug, "Presence.vb: Checking Discord Presence.")
|
||||
|
||||
If Core.GameOptions.DiscordRPCEnabled = False Then
|
||||
Discord_Shutdown()
|
||||
End If
|
||||
|
||||
' Description of fields is found here
|
||||
' https://discord.com/developers/docs/rich-presence/how-to#updating-presence-update-presence-payload-fields
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user