mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-13 15:17:27 +08:00
[F] should hook getter
This commit is contained in:
@@ -69,7 +69,7 @@ public class BasicFix
|
|||||||
}
|
}
|
||||||
|
|
||||||
[HarmonyPostfix]
|
[HarmonyPostfix]
|
||||||
[HarmonyPatch(typeof(MAI2System.Config), "IsTarget")]
|
[HarmonyPatch(typeof(MAI2System.Config), "IsTarget", MethodType.Getter)]
|
||||||
private static bool ForceNonTarget(ref bool __result)
|
private static bool ForceNonTarget(ref bool __result)
|
||||||
{
|
{
|
||||||
// Who teaching others to set Target=1?!
|
// Who teaching others to set Target=1?!
|
||||||
@@ -78,7 +78,7 @@ public class BasicFix
|
|||||||
}
|
}
|
||||||
|
|
||||||
[HarmonyPostfix]
|
[HarmonyPostfix]
|
||||||
[HarmonyPatch(typeof(MAI2System.Config), "IsIgnoreError")]
|
[HarmonyPatch(typeof(MAI2System.Config), "IsIgnoreError", MethodType.Getter)]
|
||||||
private static bool ForceIgnoreError(ref bool __result)
|
private static bool ForceIgnoreError(ref bool __result)
|
||||||
{
|
{
|
||||||
__result = true;
|
__result = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user