using HarmonyLib; using Il2CppMicrosoft.Xbox; namespace TaikoModStuff { internal class RecordingEnable { // Skip the original method, we're doing magic here [HarmonyPatch(typeof(GdkHelpers), "CaptureDisable")] [HarmonyPrefix] static bool PrefixRecording() { if (Plugin.configEnableRecording.Value) return false; else return true; } } }