From 38148f9b57996f47934abdaf0570caaa6d878683 Mon Sep 17 00:00:00 2001 From: DeathWeasel1337 Date: Tue, 19 Feb 2019 18:45:26 -0600 Subject: [PATCH] Fix demosaic --- KK_UncensorSelector/Hooks.cs | 5 +++++ KK_UncensorSelector/KK_UncensorSelector.cs | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/KK_UncensorSelector/Hooks.cs b/KK_UncensorSelector/Hooks.cs index 9be01cea..08f3ae52 100644 --- a/KK_UncensorSelector/Hooks.cs +++ b/KK_UncensorSelector/Hooks.cs @@ -199,5 +199,10 @@ public static void ChangeCustomBodyWithoutCustomTexture(ChaControl __instance) if (!StudioAPI.InsideStudio && !MakerAPI.InsideMaker && uncensor != null) __instance.fileStatus.visibleSonAlways = uncensor.ShowPenis; } + /// + /// Demosaic + /// + [HarmonyPrefix, HarmonyPatch(typeof(ChaControl), "LateUpdateForce")] + public static void LateUpdateForce(ChaControl __instance) => __instance.hideMoz = true; } } diff --git a/KK_UncensorSelector/KK_UncensorSelector.cs b/KK_UncensorSelector/KK_UncensorSelector.cs index 825471d0..b8499719 100644 --- a/KK_UncensorSelector/KK_UncensorSelector.cs +++ b/KK_UncensorSelector/KK_UncensorSelector.cs @@ -740,9 +740,6 @@ protected override void OnReload(GameMode currentGameMode) CurrentChaFile = ChaControl.chaFile; ReloadCharacterUncensor(ChaControl, false); } - - //remove mosaic - ChaControl.hideMoz = true; } } }