using System; using System.Collections; using System.Collections.Concurrent; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Cryptography; using System.Security.Permissions; using System.Text; using System.Threading.Tasks; using BaboonAPI.Hooks.Tracks; using BaboonAPI.Internal.BaseGame; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using HarmonyLib; using Microsoft.CodeAnalysis; using Microsoft.FSharp.Collections; using Microsoft.FSharp.Core; using Newtonsoft.Json; using SongOrganizer.Data; using SongOrganizer.UI; using SongOrganizer.Utils; using TMPro; using TootTallyDiffCalcLibs; using TrombLoader.CustomTracks; using TrombLoader.Helpers; using UnityEngine; using UnityEngine.Events; using UnityEngine.Localization.Components; using UnityEngine.Networking; using UnityEngine.SceneManagement; using UnityEngine.UI; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyCompany("SongOrganizer")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyDescription("Trombone Champ: Searching, Filtering, and Sorting")] [assembly: AssemblyFileVersion("1.6.6.0")] [assembly: AssemblyInformationalVersion("1.6.6+80c03cfb9c166912652ab7b7f64a3dc79888403b")] [assembly: AssemblyProduct("SongOrganizer")] [assembly: AssemblyTitle("SongOrganizer")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.6.6.0")] [module: UnverifiableCode] [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 SongOrganizer { [BepInPlugin("SongOrganizer", "SongOrganizer", "1.6.6")] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { [CompilerGenerated] private sealed class d__23 : IEnumerator, IDisposable, IEnumerator { private int <>1__state; private Coroutine <>2__current; public DateTime start; public TootTallyWebClient.SearchResponse result; public Plugin <>4__this; private List 5__1; private int 5__2; private TootTallyWebClient.SearchResponse 5__3; private string 5__4; private int 5__5; private List.Enumerator <>s__6; private Coroutine 5__7; Coroutine IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } object IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public d__23(int <>1__state) { this.<>1__state = <>1__state; } [DebuggerHidden] void IDisposable.Dispose() { int num = <>1__state; if (num == -3 || num == 1) { try { } finally { <>m__Finally1(); } } 5__1 = null; 5__3 = null; 5__4 = null; <>s__6 = default(List.Enumerator); 5__7 = null; <>1__state = -2; } private bool MoveNext() { try { switch (<>1__state) { default: return false; case 0: <>1__state = -1; 5__1 = new List(); 5__2 = result.count / 100 + 1; 5__5 = 2; while (5__5 <= 5__2) { 5__1.Add(((MonoBehaviour)<>4__this).StartCoroutine((IEnumerator)TootTallyWebClient.GetRatedTracksRequest(5__5, 100))); 5__5++; } <>s__6 = 5__1.GetEnumerator(); <>1__state = -3; break; case 1: <>1__state = -3; 5__7 = null; break; } if (<>s__6.MoveNext()) { 5__7 = <>s__6.Current; <>2__current = 5__7; <>1__state = 1; return true; } <>m__Finally1(); <>s__6 = default(List.Enumerator); 5__3 = new TootTallyWebClient.SearchResponse { count = RatedTracksPaged.Count, results = RatedTracksPaged }; 5__4 = JsonConvert.SerializeObject((object)5__3); File.WriteAllText(RatedTracksPath, 5__4); Log.LogDebug((object)$"Queried {RatedTracksPaged.Count} rated tracks elapsed: {DateTime.Now - start}"); return false; } catch { //try-fault ((IDisposable)this).Dispose(); throw; } } bool IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } private void <>m__Finally1() { <>1__state = -1; ((IDisposable)<>s__6).Dispose(); } [DebuggerHidden] void IEnumerator.Reset() { throw new NotSupportedException(); } } public static Plugin Instance; public static ManualLogSource Log; public static Options Options; public static RefreshLevelSelect RefreshLevelSelect; public static Toggle Toggle; public static Button Button; public static TMP_InputField InputFieldPrefab; public static TMP_InputField SearchInput; public static List