[+] disableDataUploader

This commit is contained in:
Clansty
2025-05-15 09:48:05 +08:00
parent 671bd724be
commit dc37750e7a

View File

@@ -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;
}
}