Skip to content

Commit aa329e1

Browse files
committed
[O] rename SkipBoardNoCheck to OldCabLightBoardSupport
1 parent ea9f672 commit aa329e1

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

AquaMai.Config/Migration/ConfigMigration_V2_3_V2_4.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ public ConfigView Migrate(ConfigView src)
2121
dst.Remove("GameSystem.KeyMap.DisableIO4");
2222
}
2323

24+
if (src.IsSectionEnabled("GameSystem.SkipBoardNoCheck"))
25+
{
26+
dst.EnsureDictionary("GameSystem.OldCabLightBoardSupport");
27+
dst.Remove("GameSystem.SkipBoardNoCheck");
28+
}
29+
2430
return dst;
2531
}
2632
}

AquaMai.Mods/GameSystem/SkipBoardNoCheck.cs renamed to AquaMai.Mods/GameSystem/OldCabLightBoardSupport.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace AquaMai.Mods.GameSystem;
1313
name: "旧框灯板支持",
1414
en: "Skip BoardNo check to use the old cab light board 837-15070-02, and remapping the Billboard LED to woofer LED, roof LED and center LED",
1515
zh: "跳过 BoardNo 检查以使用 837-15070-02(旧框灯板),并映射新框顶板 LED 至重低音扬声器 LED、顶板 LED 以及中央 LED")]
16-
public class SkipBoardNoCheck
16+
public class OldCabLightBoardSupport
1717
{
1818
private static readonly FieldInfo _controlField;
1919
private static readonly FieldInfo _boardField;
@@ -85,7 +85,7 @@ static IEnumerable<CodeInstruction> Transpiler2(IEnumerable<CodeInstruction> ins
8585
}
8686
}
8787

88-
static SkipBoardNoCheck()
88+
static OldCabLightBoardSupport()
8989
{
9090
var ledIfType = typeof(Bd15070_4IF);
9191
_controlField = ledIfType.GetField("_control", BindingFlags.NonPublic | BindingFlags.Instance);

0 commit comments

Comments
 (0)