上传文件至 Cheat

This commit is contained in:
2025-10-13 18:18:32 +08:00
parent dc6087211e
commit 535e955faf
12 changed files with 1334 additions and 0 deletions

19
Cheat/UnlockMusic.cs Normal file
View File

@@ -0,0 +1,19 @@
using HarmonyLib;
using Manager;
using SinmaiAssist.Utils;
namespace SinmaiAssist.Cheat;
public class UnlockMusic
{
[HarmonyPostfix]
[HarmonyPatch(typeof(NotesListManager), "IsUnlockBase")]
public static void UnlockBase(ref bool __result,ref int id, ref int index)
{
if (__result == false && SinmaiAssist.MainConfig.Cheat.SaveUnlockMusic)
{
User.GetUserData(index).AddUnlockMusic(UserData.MusicUnlock.Base, id);
}
__result = true;
}
}