Skip to content

Commit

Permalink
[+] Skip track start screen
Browse files Browse the repository at this point in the history
  • Loading branch information
clansty committed Sep 27, 2024
1 parent 9605264 commit a2db465
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions AquaMai/AquaMai.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@
<Compile Include="TimeSaving\SkipEventInfo.cs" />
<Compile Include="TimeSaving\SkipGameOverScreen.cs" />
<Compile Include="TimeSaving\SkipToMusicSelection.cs" />
<Compile Include="TimeSaving\SkipTrackStart.cs" />
<Compile Include="TimeSaving\SkipWarningScreen.cs" />
<Compile Include="TouchSensitivity\Enable.cs" />
<Compile Include="Utils\JudgeAdjust.cs" />
Expand Down
2 changes: 2 additions & 0 deletions AquaMai/AquaMai.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ SkipEventInfo=true
IWontTapOrSlideVigorously=true
# Skip the "Goodbye" screen at the end of the game
SkipGameOverScreen=true
# Skip TrackStart screen
SkipTrackStart=true

[TouchSensitivity]
# Enable custom sensitivity
Expand Down
2 changes: 2 additions & 0 deletions AquaMai/AquaMai.zh.toml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ SkipEventInfo=true
IWontTapOrSlideVigorously=true
# 跳过游戏结束的“再见”界面
SkipGameOverScreen=true
# 跳过乐曲开始界面
SkipTrackStart=true

[TouchSensitivity]
# 是否启用自定义灵敏度
Expand Down
1 change: 1 addition & 0 deletions AquaMai/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public class TimeSavingConfig
public bool SkipEventInfo { get; set; }
public bool IWontTapOrSlideVigorously { get; set; }
public bool SkipGameOverScreen { get; set; }
public bool SkipTrackStart { get; set; }
}

public class TouchSensitivityConfig
Expand Down
15 changes: 15 additions & 0 deletions AquaMai/TimeSaving/SkipTrackStart.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using HarmonyLib;
using Monitor;

namespace AquaMai.TimeSaving;

public class SkipTrackStart
{
[HarmonyPrefix]
[HarmonyPatch(typeof (TrackStartMonitor), "IsEnd")]
public static bool IsEnd(ref bool __result)
{
__result = true;
return false;
}
}

0 comments on commit a2db465

Please sign in to comment.