From 8de950464476a16547ea67e1f27e8c831c8481c7 Mon Sep 17 00:00:00 2001 From: "NGnius (Graham)" Date: Thu, 24 Oct 2019 19:59:33 -0400 Subject: [PATCH] Add untested analytics deactivator --- TestMod/AnalyticsPatch.cs | 15 +++++++++++++++ TestMod/TestMod.csproj | 3 +++ 2 files changed, 18 insertions(+) create mode 100644 TestMod/AnalyticsPatch.cs diff --git a/TestMod/AnalyticsPatch.cs b/TestMod/AnalyticsPatch.cs new file mode 100644 index 0000000..0f08147 --- /dev/null +++ b/TestMod/AnalyticsPatch.cs @@ -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 + } + } +} + diff --git a/TestMod/TestMod.csproj b/TestMod/TestMod.csproj index c37783f..d4505f2 100644 --- a/TestMod/TestMod.csproj +++ b/TestMod/TestMod.csproj @@ -9,6 +9,9 @@ + + ..\..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Gamecraft\RobocraftX_Data\Managed\Analytics.dll + ..\..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Gamecraft\RobocraftX_Data\Managed\CommandLine.dll