Browse Source

Add untested analytics deactivator

experimental
NGnius (Graham) 5 years ago
parent
commit
8de9504644
2 changed files with 18 additions and 0 deletions
  1. +15
    -0
      TestMod/AnalyticsPatch.cs
  2. +3
    -0
      TestMod/TestMod.csproj

+ 15
- 0
TestMod/AnalyticsPatch.cs View File

@@ -0,0 +1,15 @@
using System;
using Harmony;

namespace TestMod
{
[HarmonyPatch(typeof(Analytics.DeltaDNAHelper), "StartSession", new Type[] {string})]
public class AnalyticsPatch
{
static bool Prefix(string userId)
{
return false; // stop tracking startup
}
}
}


+ 3
- 0
TestMod/TestMod.csproj View File

@@ -9,6 +9,9 @@
</ItemGroup>

<ItemGroup>
<Reference Include="Analytics">
<HintPath>..\..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Gamecraft\RobocraftX_Data\Managed\Analytics.dll</HintPath>
</Reference>
<Reference Include="CommandLine">
<HintPath>..\..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Gamecraft\RobocraftX_Data\Managed\CommandLine.dll</HintPath>
</Reference>