mirror of
https://github.com/hykilpikonna/AquaDX.git
synced 2026-08-28 20:24:47 -05:00
[+] disableDataUploader
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user