Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Melon/Entry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Melon/Melon.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net472</TargetFramework>
<Version>3.4.5.0</Version>
<Version>3.4.6.0</Version>
<LangVersion>9</LangVersion>
<MelonRefs>true</MelonRefs>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Expand Down
4 changes: 1 addition & 3 deletions Melon/ModSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@ public static class ModSettings
{
private static string categoryName = "CustomAlbums";


private static MelonPreferences_Entry<bool> debugLogging;

public static bool DebugLoggingEnabled => debugLogging.Value;


public static void RegisterSettings()
{
var category = MelonPreferences.CreateCategory(categoryName, categoryName);
debugLogging = category.CreateEntry("EnableDebugLogging", false, "Enable Debug Logging");
}
}
}
}
4 changes: 2 additions & 2 deletions Melon/Patch/FixLevelDesignerSearchPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions Melon/Patch/TagPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ private static void Postfix() {
};
var customInfo = new CustomTagInfo {
tag_name = JObject.FromObject(AlbumManager.Langs).JsonSerialize().IL2CppJsonDeserialize<IL2CppJson.JObject>().ToObject<Dictionary<string, string>>(),
tag_picture = "https://mdmc.moe/cdn/melon.png",
tag_picture = "https://mdmc.moe/cdn/melon.png"
};
customInfo.music_list = new List<string>();
foreach(var uid in AlbumManager.GetAllUid()) customInfo.music_list.Add(uid);
Expand All @@ -33,4 +33,4 @@ private static void Postfix() {
GlobalDataBase.dbMusicTag.AddAlbumTagData(AlbumManager.Uid, info);
}
}
}
}