Skip to content

Commit

Permalink
[+] trigger QuickSkip with service key
Browse files Browse the repository at this point in the history
  • Loading branch information
clansty committed Aug 19, 2024
1 parent 6457ced commit eb72839
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions AquaMai/UX/QuickSkip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using Main;
using Manager;
using MelonLoader;
using Monitor;
using Process;
using UnityEngine;

Expand All @@ -28,17 +27,17 @@ public static void OnCreateProcessDataContainer(ProcessDataContainer __instance)
public static void OnGameMainObjectUpdate()
{
// The button between [1p] and [2p] button on ADX
if (Input.GetKey(KeyCode.Alpha7)) _keyPressFrames++;
if (Input.GetKey(KeyCode.Alpha7) || InputManager.GetSystemInputPush(InputManager.SystemButtonSetting.ButtonService)) _keyPressFrames++;

if (Input.GetKeyUp(KeyCode.Alpha7))
if (_keyPressFrames > 0 && !Input.GetKey(KeyCode.Alpha7) && !InputManager.GetSystemInputPush(InputManager.SystemButtonSetting.ButtonService))
{
_keyPressFrames = 0;
MelonLogger.Msg(_container.processManager.Dump());
MelonLogger.Msg(Singleton<UserDataManager>.Instance.GetUserData(0).Dump());
return;
}

if (_keyPressFrames != 60) return;
MelonLogger.Msg("[QuickSkip] Activated");

var traverse = Traverse.Create(_container.processManager);
var processList = traverse.Field("_processList").GetValue<LinkedList<ProcessManager.ProcessControle>>();
Expand Down

0 comments on commit eb72839

Please sign in to comment.