Skip to content

Commit

Permalink
Fixed to work with latest update
Browse files Browse the repository at this point in the history
  • Loading branch information
guighub committed May 9, 2024
1 parent 3a26c40 commit 8a8d210
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions CW_LongerFaces/Class1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ void Awake() // runs when Content Warning is launched
BepInExLogSource.LogMessage(modGUID + " has loaded successfully.");

harmony.PatchAll(typeof(PlayerCustomizer_Scale_Patcher));
harmony.PatchAll(typeof(PlayerCustomizer_CopyPaste));
harmony.PatchAll(typeof(PlayerCustomizer_SetFaceText_Patcher));
// harmony.PatchAll(typeof(PlayerCustomizer_CopyPaste));
// harmony.PatchAll(typeof(PlayerCustomizer_SetFaceText_Patcher));
harmony.PatchAll(typeof(PlayerCustomizer_RunTerminal_Patcher));
harmony.PatchAll(typeof(PlayerVisor_RPCA_SetVisorText_Patcher));
}
Expand All @@ -51,6 +51,8 @@ public static void Postfix(ref PlayerCustomizer __instance)
}
}

// Text pasting was officially implemented so no need for this anymore
/*
[HarmonyPatch(typeof(PlayerCustomizer))]
[HarmonyPatch("Update")]
public static class PlayerCustomizer_CopyPaste // Allows you to paste text into the customizer
Expand All @@ -67,7 +69,10 @@ public static void Postfix(ref TextMeshProUGUI ___faceText, ref PlayerCustomizer
}
}
}
*/

// Function removed from game as of May 3 update
/*
[HarmonyPatch(typeof(PlayerCustomizer))]
[HarmonyPatch("SetFaceText")]
class PlayerCustomizer_SetFaceText_Patcher
Expand All @@ -89,6 +94,7 @@ static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> inst
return code;
}
}
*/

[HarmonyPatch(typeof(PlayerCustomizer))]
[HarmonyPatch("RunTerminal")]
Expand All @@ -113,7 +119,7 @@ static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> inst
}

[HarmonyPatch(typeof(PlayerVisor))]
[HarmonyPatch("RPCA_SetVisorText")]
[HarmonyPatch("SafetyCheckVisorText")]
class PlayerVisor_RPCA_SetVisorText_Patcher
{
static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
Expand Down

0 comments on commit 8a8d210

Please sign in to comment.