diff --git a/Melon/Entry.cs b/Melon/Entry.cs index 5d23805..a6eddef 100644 --- a/Melon/Entry.cs +++ b/Melon/Entry.cs @@ -2,7 +2,7 @@ using MelonLoader; using UnityEngine; -[assembly: MelonInfo(typeof(CustomAlbums.ModEntry), "CustomAlbums", "3.4.5", "Mo10 & RobotLucca")] +[assembly: MelonInfo(typeof(CustomAlbums.ModEntry), "CustomAlbums", "3.4.6", "Mo10 & RobotLucca")] [assembly: MelonGame("PeroPeroGames", "MuseDash")] namespace CustomAlbums diff --git a/Melon/Melon.csproj b/Melon/Melon.csproj index 956d428..e090e2b 100644 --- a/Melon/Melon.csproj +++ b/Melon/Melon.csproj @@ -1,7 +1,7 @@  net472 - 3.4.5.0 + 3.4.6.0 9 true true diff --git a/Melon/ModSettings.cs b/Melon/ModSettings.cs index 9c40a02..083516b 100644 --- a/Melon/ModSettings.cs +++ b/Melon/ModSettings.cs @@ -6,11 +6,9 @@ public static class ModSettings { private static string categoryName = "CustomAlbums"; - private static MelonPreferences_Entry debugLogging; public static bool DebugLoggingEnabled => debugLogging.Value; - public static void RegisterSettings() { @@ -18,4 +16,4 @@ public static void RegisterSettings() debugLogging = category.CreateEntry("EnableDebugLogging", false, "Enable Debug Logging"); } } -} \ No newline at end of file +} diff --git a/Melon/Patch/FixLevelDesignerSearchPatch.cs b/Melon/Patch/FixLevelDesignerSearchPatch.cs index b701e7d..17b0490 100644 --- a/Melon/Patch/FixLevelDesignerSearchPatch.cs +++ b/Melon/Patch/FixLevelDesignerSearchPatch.cs @@ -17,7 +17,7 @@ namespace CustomAlbums.Patch [HarmonyPatch(typeof(SearchResults), nameof(SearchResults.PeroLevelDesigner))] internal static class FixLevelDesignerSearchPatch { - private static bool Prefix(ref bool __result, PeroPeroGames.PeroString peroString, MusicInfo musicInfo, string containsText) { + private static bool Prefix(ref bool __result, PeroTools2.PeroString.PeroString peroString, MusicInfo musicInfo, string containsText) { if(string.IsNullOrEmpty(containsText)) return false; __result |= peroString.LowerContains(musicInfo.levelDesigner ?? "", containsText); @@ -32,7 +32,7 @@ private static bool Prefix(ref bool __result, PeroPeroGames.PeroString peroStrin return false; } - private static bool LowerContains(this PeroPeroGames.PeroString peroString, string compareText, string containsText) { + private static bool LowerContains(this PeroTools2.PeroString.PeroString peroString, string compareText, string containsText) { peroString.Clear(); peroString.Append(compareText); peroString.ToLower(); diff --git a/Melon/Patch/TagPatch.cs b/Melon/Patch/TagPatch.cs index a61414e..9bef8f1 100644 --- a/Melon/Patch/TagPatch.cs +++ b/Melon/Patch/TagPatch.cs @@ -22,7 +22,7 @@ private static void Postfix() { }; var customInfo = new CustomTagInfo { tag_name = JObject.FromObject(AlbumManager.Langs).JsonSerialize().IL2CppJsonDeserialize().ToObject>(), - tag_picture = "https://mdmc.moe/cdn/melon.png", + tag_picture = "https://mdmc.moe/cdn/melon.png" }; customInfo.music_list = new List(); foreach(var uid in AlbumManager.GetAllUid()) customInfo.music_list.Add(uid); @@ -33,4 +33,4 @@ private static void Postfix() { GlobalDataBase.dbMusicTag.AddAlbumTagData(AlbumManager.Uid, info); } } -} \ No newline at end of file +}