20 lines
441 B
C#
20 lines
441 B
C#
|
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|