mirror of
https://github.com/MewoLab/AquaDX.git
synced 2025-10-26 04:22:38 +00:00
[+] IgnoreAimeServerError
This commit is contained in:
parent
60813274dc
commit
e04e5596a3
@ -86,6 +86,8 @@ FontFix=true
|
||||
SlideJudgeTweak=true
|
||||
# Cannot be used together with HideHanabi
|
||||
HanabiFix=false
|
||||
# Prevent gray network caused by mistakenly thinking it's an AimeDB server issue
|
||||
IgnoreAimeServerError=true
|
||||
|
||||
[Utils]
|
||||
# Log user ID on login
|
||||
|
||||
@ -104,6 +104,8 @@ SlideJudgeTweak=true
|
||||
# 修复 1p 模式下的烟花大小
|
||||
# 不能和 HideHanabi 一起使用
|
||||
HanabiFix=true
|
||||
# 防止因错误认为 AimeDB 服务器问题引起的灰网
|
||||
IgnoreAimeServerError=true
|
||||
|
||||
[Utils]
|
||||
# 登录时将 UserID 输出到日志
|
||||
|
||||
@ -61,6 +61,7 @@ namespace AquaMai
|
||||
public bool FontFix { get; set; }
|
||||
public bool SlideJudgeTweak { get; set; }
|
||||
public bool HanabiFix { get; set; }
|
||||
public bool IgnoreAimeServerError { get; set; }
|
||||
}
|
||||
|
||||
public class UtilsConfig
|
||||
|
||||
15
AquaMai/Fix/IgnoreAimeServerError.cs
Normal file
15
AquaMai/Fix/IgnoreAimeServerError.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using HarmonyLib;
|
||||
using Manager;
|
||||
|
||||
namespace AquaMai.Fix;
|
||||
|
||||
public class IgnoreAimeServerError
|
||||
{
|
||||
[HarmonyPatch(typeof(OperationManager), "IsAliveAimeServer", MethodType.Getter)]
|
||||
[HarmonyPrefix]
|
||||
public static bool Prefix(ref bool __result)
|
||||
{
|
||||
__result = true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user