-
Notifications
You must be signed in to change notification settings - Fork 51
[+] ? #103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
[+] ? #103
Changes from 18 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
a3cc26f
more disableio4
clansty d2ddf7e
Merge remote-tracking branch 'aquamai/main' into disableio4
clansty ea9f672
[+] 新增舊框燈版 837-15070-02 重低音 LED / 頂板 LED / 中央 LED 的支持 (#100)
kevin0216 aa329e1
[O] rename SkipBoardNoCheck to OldCabLightBoardSupport
clansty 4f6048c
[+] MaimollerIO 按键灯光触摸单独设置
clansty ab96697
[O] AdxHidInput.DisableButtons
clansty 4218443
[O] Add MaiChartManager EN
clansty fd36609
Add unstable rate display (#101)
zealain c3303c9
move UnstableRate
clansty a37e2e7
[O] UnstableRate 2P support
clansty dc91896
[O] 使用对象池优化性能
clansty cbf2680
[O] Change color
clansty 8558113
[+] build script configuration
clansty cb9ed7f
[+] 增加同时开启的 DisplayTouchInGame
clansty 79fa549
[O] 力大砖飞 -> ResourcesOverride
clansty ddce7a2
[O] configSort
clansty 5d1851b
[O] convert check to non-AI script
clansty f15b977
[O] configSort
clansty 1e0a12d
[F] bugs
clansty 0121974
[F] minor
clansty 812097e
revert
clansty File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| using AquaMai.Config.Interfaces; | ||
| using Tomlet.Models; | ||
|
|
||
| namespace AquaMai.Config.Migration; | ||
|
|
||
| public class ConfigMigration_V2_3_V2_4 : IConfigMigration | ||
| { | ||
| public string FromVersion => "2.3"; | ||
| public string ToVersion => "2.4"; | ||
|
|
||
| public ConfigView Migrate(ConfigView src) | ||
| { | ||
| var dst = (ConfigView)src.Clone(); | ||
| dst.SetValue("Version", ToVersion); | ||
|
|
||
| if (src.TryGetValue<bool>("GameSystem.KeyMap.DisableIO4", out var disableIO4)) | ||
| { | ||
| dst.SetValue("GameSystem.KeyMap.DisableIO4_1P", disableIO4); | ||
| dst.SetValue("GameSystem.KeyMap.DisableIO4_2P", disableIO4); | ||
| dst.SetValue("GameSystem.KeyMap.DisableIO4System", disableIO4); | ||
| dst.Remove("GameSystem.KeyMap.DisableIO4"); | ||
| } | ||
|
|
||
| if (src.IsSectionEnabled("GameSystem.SkipBoardNoCheck")) | ||
| { | ||
| dst.EnsureDictionary("GameSystem.OldCabLightBoardSupport"); | ||
| dst.Remove("GameSystem.SkipBoardNoCheck"); | ||
| } | ||
|
|
||
| if (src.TryGetValue<bool>("GameSystem.MaimollerIO.P1", out var mml1p)) | ||
| { | ||
| dst.SetValue("GameSystem.MaimollerIO.Touch1p", mml1p); | ||
| dst.SetValue("GameSystem.MaimollerIO.Button1p", mml1p); | ||
| dst.SetValue("GameSystem.MaimollerIO.Led1p", mml1p); | ||
| dst.Remove("GameSystem.MaimollerIO.P1"); | ||
| } | ||
|
|
||
| if (src.TryGetValue<bool>("GameSystem.MaimollerIO.P2", out var mml2p)) | ||
| { | ||
| dst.SetValue("GameSystem.MaimollerIO.Touch2p", mml2p); | ||
| dst.SetValue("GameSystem.MaimollerIO.Button2p", mml2p); | ||
| dst.SetValue("GameSystem.MaimollerIO.Led2p", mml2p); | ||
| dst.Remove("GameSystem.MaimollerIO.P2"); | ||
| } | ||
|
|
||
| if (src.TryGetValue<bool>("GameSystem.AdxHidInput.Io4Compact", out var adxDisableButtons)) | ||
| { | ||
| dst.SetValue("GameSystem.AdxHidInput.DisableButtons", adxDisableButtons); | ||
| dst.Remove("GameSystem.AdxHidInput.Io4Compact"); | ||
| } | ||
|
|
||
| if (src.IsSectionEnabled("GameSystem.UnstableRate")) | ||
| { | ||
| dst.EnsureDictionary("Utils.UnstableRate"); | ||
| dst.Remove("GameSystem.UnstableRate"); | ||
| } | ||
|
|
||
| if (src.IsSectionEnabled("Fancy.CustomSkinsPlusStatic")) | ||
| { | ||
| dst.EnsureDictionary("Fancy.ResourcesOverride"); | ||
| dst.Remove("Fancy.CustomSkinsPlusStatic"); | ||
| } | ||
|
|
||
| if (src.IsSectionEnabled("Fancy.RsOverride")) | ||
| { | ||
| dst.EnsureDictionary("Fancy.ResourcesOverride"); | ||
| dst.Remove("Fancy.RsOverride"); | ||
| } | ||
clansty marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| return dst; | ||
| } | ||
| } | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.