Skip to content

Commit

Permalink
[O] SetButtonPressed for both monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
clansty committed Feb 20, 2025
1 parent b4d17cd commit 3fb0ff0
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions AquaMai.Mods/GameSystem/DisableTimeout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,17 @@ public static bool ModeSelectProcessUpdateInput(ModeSelectProcess __instance)
public static void PhotoEditProcess(PhotoEditMonitor[] ____monitors, PhotoEditProcess __instance)
{
if (!InputManager.GetMonitorButtonDown(InputManager.ButtonSetting.Button04)) return;
try
{
SoundManager.PlaySE(Mai2.Mai2Cue.Cue.SE_SYS_SKIP, 0);
____monitors[0].SetButtonPressed(InputManager.ButtonSetting.Button04);
}
catch
SoundManager.PlaySE(Mai2.Mai2Cue.Cue.SE_SYS_SKIP, 0);
for (var i = 0; i < 2; i++)
{
// ignored
try
{
____monitors[i].SetButtonPressed(InputManager.ButtonSetting.Button04);
}
catch
{
// ignored
}
}

Traverse.Create(__instance).Method("OnTimeUp").GetValue();
Expand Down

0 comments on commit 3fb0ff0

Please sign in to comment.