mirror of
https://github.com/hykilpikonna/AquaDX.git
synced 2026-08-28 12:15:19 -05:00
[+] unlock all song
This commit is contained in:
@@ -36,6 +36,20 @@ public class Unlock
|
||||
return false;
|
||||
}
|
||||
|
||||
[ConfigEntry(
|
||||
en: "Unlock all songs (Same as setting AllOpen=1 in mai2.ini).",
|
||||
zh: "解锁所有乐曲(和 mai2.ini 里面设置 AllOpen=1 是一样的效果)")]
|
||||
private static readonly bool songs = true;
|
||||
|
||||
[EnableIf(nameof(songs))]
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(MAI2System.Config), "IsAllOpen", MethodType.Getter)]
|
||||
public static bool IsAllOpen(ref bool __result)
|
||||
{
|
||||
__result = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
[ConfigEntry(
|
||||
en: "Unlock normally event-only tickets.",
|
||||
zh: "解锁游戏里所有可能的跑图券")]
|
||||
|
||||
Reference in New Issue
Block a user