Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of FaceSyncFix v1.0.0
BepInEx/plugins/FaceSyncFix/uk.1a3.facesyncfix.dll
Decompiled 13 hours agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using FaceSync; using FaceSyncFix.Patches; using HarmonyLib; using Microsoft.CodeAnalysis; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: IgnoresAccessChecksTo("Assembly-CSharp")] [assembly: IgnoresAccessChecksTo("FaceSync")] [assembly: AssemblyCompany("uk.1a3.facesyncfix")] [assembly: AssemblyConfiguration("Release - REPO")] [assembly: AssemblyFileVersion("0.0.0.0")] [assembly: AssemblyInformationalVersion("0.0.0-dev")] [assembly: AssemblyProduct("FaceSyncFix")] [assembly: AssemblyTitle("uk.1a3.facesyncfix")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("0.0.0.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace FaceSyncFix { [BepInPlugin("uk.1a3.facesyncfix", "FaceSyncFix", "1.0.0")] internal class PluginLoader : BaseUnityPlugin { private readonly Harmony harmony = new Harmony("uk.1a3.facesyncfix"); private static bool initialized; internal static ManualLogSource StaticLogger { get; private set; } internal static ConfigFile StaticConfig { get; private set; } private void Awake() { if (initialized) { return; } initialized = true; StaticLogger = ((BaseUnityPlugin)this).Logger; StaticConfig = ((BaseUnityPlugin)this).Config; StaticLogger.LogInfo((object)"Patches Loaded"); try { harmony.PatchAll(typeof(GeneralPatches)); } catch (Exception ex) { StaticLogger.LogError((object)("GeneralPatches Failed: " + ex)); } } } } namespace FaceSyncFix.Patches { [HarmonyPatch] public class GeneralPatches { [HarmonyPatch(typeof(FaceSyncMenu), "Initialize")] [HarmonyPrefix] [HarmonyWrapSafe] private static void FaceSyncMenu_Initialize(FaceSyncMenu __instance) { __instance.showUI = Plugin.showUI.Value; } [HarmonyPatch(typeof(FaceSyncMenu), "Update")] [HarmonyPrefix] [HarmonyWrapSafe] private static void FaceSyncMenu_Update(FaceSyncMenu __instance) { if (!__instance.showUI && __instance.showCameraPreview) { __instance.showCameraPreview = false; EmotionRecognition recognition = __instance.recognition; if (recognition != null) { recognition.SetPreviewEnabled(__instance.showCameraPreview); } } } } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } }