using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using Microsoft.CodeAnalysis; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyCompany("Pxntxrez")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyDescription("Unlocks cosmetics through the local R.E.P.O. meta save.")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("Pxntxrez Cosmetics Unlocker")] [assembly: AssemblyTitle("LocalCosmeticsUnlocker")] [assembly: AssemblyVersion("1.0.0.0")] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.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 Pxntxrez.CosmeticsUnlocker { [BepInPlugin("pxntxrez.cosmeticsunlocker", "Pxntxrez Cosmetics Unlocker", "1.0.0")] public sealed class Plugin : BaseUnityPlugin { public const string PluginGuid = "pxntxrez.cosmeticsunlocker"; public const string PluginName = "Pxntxrez Cosmetics Unlocker"; public const string PluginVersion = "1.0.0"; private const string SavePath = "MetaSave.es3"; private const string SavePassword = "Why would you want to cheat?... :o It's no fun. :') :'D"; private const int CosmeticSlots = 5000; private void Awake() { //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_0023: Expected O, but got Unknown try { List list = Enumerable.Range(0, 5000).ToList(); ES3Settings val = new ES3Settings("MetaSave.es3", (EncryptionType)1, "Why would you want to cheat?... :o It's no fun. :') :'D", (ES3Settings)null); ES3.Save>("cosmeticUnlocks", list, val); ((BaseUnityPlugin)this).Logger.LogInfo((object)$"Unlocked {list.Count} cosmetic slots."); } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogError((object)$"Cosmetics unlock failed: {arg}"); } } } }