From 313343e58655ffb4dbe0768d7b72bfd57c7c9881 Mon Sep 17 00:00:00 2001
From: Phoenixx19 <41084138+Phoenixx19@users.noreply.github.com>
Date: Mon, 31 Aug 2020 16:00:50 +0200
Subject: [PATCH] Updated source code v2.1.0
---
JumpKingRPC.csproj | 1 +
MainRP.cs | 10 ++++++++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/JumpKingRPC.csproj b/JumpKingRPC.csproj
index 2790fd4..9af22bc 100644
--- a/JumpKingRPC.csproj
+++ b/JumpKingRPC.csproj
@@ -64,6 +64,7 @@
..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll
+
diff --git a/MainRP.cs b/MainRP.cs
index 6a67855..d905bc9 100644
--- a/MainRP.cs
+++ b/MainRP.cs
@@ -7,13 +7,13 @@
using JumpKing.GameManager;
using JumpKing.SaveThread.SaveComponents;
using JumpKing.SaveThread;
+using System.Configuration;
+
namespace JumpKingRPC
{
- // Token: 0x02000002 RID: 2
public class MainRP
{
BodyValues bodyValues = new BodyValues(GameLoop.m_player);
- // Token: 0x0400000B RID: 11
public DiscordRpcClient client;
public bool process = true;
public DateTime time1 = new DateTime();
@@ -43,6 +43,12 @@ public MainRP(int _preset)
}
}
+ public void ClearUpdate(bool toggle)
+ {
+ if (toggle) { Update(); }
+ else { this.client.ClearPresence(); }
+ }
+
public void Run()
{
if (process)