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 NoPlayFabRetry v1.0.2
BepInEx\plugins\NoPlayFabRetry.dll
Decompiled 3 days agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using HarmonyLib; using Microsoft.CodeAnalysis; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETFramework,Version=v4.6.2", FrameworkDisplayName = ".NET Framework 4.6.2")] [assembly: AssemblyCompany("NoPlayFabRetry")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.2.0")] [assembly: AssemblyInformationalVersion("1.0.2")] [assembly: AssemblyProduct("NoPlayFabRetry")] [assembly: AssemblyTitle("NoPlayFabRetry")] [assembly: AssemblyVersion("1.0.2.0")] [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; } } } [BepInPlugin("local.nopfretry", "NoPlayFabRetry", "1.0.2")] public class NoPlayFabRetry : BaseUnityPlugin { public const string PluginGuid = "local.nopfretry"; public const string PluginName = "NoPlayFabRetry"; public const string PluginVersion = "1.0.2"; private void Awake() { //IL_003a: Unknown result type (might be due to invalid IL or missing references) //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown MethodInfo methodInfo = AccessTools.Method(typeof(PlayFabManager), "Login", Type.EmptyTypes, (Type[])null); if (methodInfo == null) { ((BaseUnityPlugin)this).Logger.LogError((object)"Could not find PlayFabManager.Login(). The installed Valheim version is not supported; PlayFab login was not disabled."); return; } new Harmony("local.nopfretry").Patch((MethodBase)methodInfo, new HarmonyMethod(typeof(PlayFabLoginPatch), "Prefix", (Type[])null), (HarmonyMethod)null, (HarmonyMethod)null, (HarmonyMethod)null, (HarmonyMethod)null); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Patched PlayFabManager.Login(); PlayFab login is disabled for solo mode."); } } internal static class PlayFabLoginPatch { internal static bool Prefix() { return false; } }