From dc37750e7a0ece8d0403db572b418a8e85f2e844 Mon Sep 17 00:00:00 2001 From: Clansty Date: Thu, 15 May 2025 09:48:05 +0800 Subject: [PATCH] [+] disableDataUploader --- AquaMai.Mods/Fix/Common.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/AquaMai.Mods/Fix/Common.cs b/AquaMai.Mods/Fix/Common.cs index f6366959..45dc133b 100644 --- a/AquaMai.Mods/Fix/Common.cs +++ b/AquaMai.Mods/Fix/Common.cs @@ -11,6 +11,7 @@ using System.Linq; using System.Reflection.Emit; using System.Reflection; using AquaMai.Mods.GameSystem; +using Manager.Operation; namespace AquaMai.Mods.Fix; @@ -178,4 +179,14 @@ public class Common // Remove all instructions before the target instruction. return instList.Skip(onceDispIndex); } -} + + [ConfigEntry] private static readonly bool disableDataUploader = true; + + [EnableIf(nameof(disableDataUploader))] + [HarmonyPrefix] + [HarmonyPatch(typeof(DataUploader), nameof(DataUploader.Start))] + private static bool PreDataUploaderStart() + { + return false; + } +} \ No newline at end of file