mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-09-25 19:09:00 +02:00
Added elapsed time to presence
This commit is contained in:
parent
3e79111035
commit
997fa953f3
@ -6,11 +6,13 @@ Public Class Presence
|
|||||||
|
|
||||||
Private PreviousScreen As String = ""
|
Private PreviousScreen As String = ""
|
||||||
Private PreviousMapLevel As String = ""
|
Private PreviousMapLevel As String = ""
|
||||||
|
Private APP_StartTimestamp As Long = Nothing
|
||||||
|
|
||||||
Public Sub Initialize()
|
Public Sub Initialize()
|
||||||
If APP_ID IsNot Nothing And Environment.Is64BitProcess = False Then
|
If APP_ID IsNot Nothing And Environment.Is64BitProcess = False Then
|
||||||
Discord_Initialize(APP_ID, Handlers, 1, "")
|
Discord_Initialize(APP_ID, Handlers, 1, "")
|
||||||
Update()
|
Update()
|
||||||
|
APP_StartTimestamp = DateTime.UtcNow.Subtract(New DateTime(1970, 1, 1)).TotalMilliseconds
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@ -123,7 +125,8 @@ Public Class Presence
|
|||||||
.LargeImageKey = APP_LargeImageName,
|
.LargeImageKey = APP_LargeImageName,
|
||||||
.LargeImageText = APP_LargeImageText,
|
.LargeImageText = APP_LargeImageText,
|
||||||
.SmallImageKey = APP_SmallImageName,
|
.SmallImageKey = APP_SmallImageName,
|
||||||
.SmallImageText = APP_SmallImageText
|
.SmallImageText = APP_SmallImageText,
|
||||||
|
.StartTimestamp = APP_StartTimestamp
|
||||||
}
|
}
|
||||||
|
|
||||||
If ShouldUpdate And Environment.Is64BitProcess = False Then
|
If ShouldUpdate And Environment.Is64BitProcess = False Then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user