Skip to content
This repository has been archived by the owner on Jun 9, 2021. It is now read-only.

Commit

Permalink
Updated source code v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Phoenixx19 committed Aug 31, 2020
1 parent d41fa29 commit 313343e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions JumpKingRPC.csproj
Expand Up @@ -64,6 +64,7 @@
<HintPath>..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
Expand Down
10 changes: 8 additions & 2 deletions MainRP.cs
Expand Up @@ -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();
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 313343e

Please sign in to comment.