mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-06 03:27:28 +08:00
[+] Configurable mod key map manager
This commit is contained in:
19
AquaMai/ModKeyMap/EnableNativeQuickRetry.cs
Normal file
19
AquaMai/ModKeyMap/EnableNativeQuickRetry.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using AquaMai.Attributes;
|
||||
using HarmonyLib;
|
||||
using Manager;
|
||||
using Monitor;
|
||||
|
||||
namespace AquaMai.ModKeyMap;
|
||||
|
||||
[GameVersion(23000)]
|
||||
public class EnableNativeQuickRetry
|
||||
{
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(QuickRetry), "IsQuickRetryEnable")]
|
||||
public static bool OnQuickRetryIsQuickRetryEnable(ref bool __result)
|
||||
{
|
||||
var isUtageProperty = Traverse.Create(typeof(GameManager)).Property("IsUtage");
|
||||
__result = !isUtageProperty.PropertyExists() || !isUtageProperty.GetValue<bool>();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user