[+] IgnoreAimeServerError
Build AquaMai / build (push) Has been cancelled Details

pull/69/head
Clansty 2024-10-15 17:05:55 +08:00
parent 60813274dc
commit e04e5596a3
No known key found for this signature in database
GPG Key ID: 3A6BE8BAF2EDE134
4 changed files with 20 additions and 0 deletions

View File

@ -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

View File

@ -104,6 +104,8 @@ SlideJudgeTweak=true
# 修复 1p 模式下的烟花大小
# 不能和 HideHanabi 一起使用
HanabiFix=true
# 防止因错误认为 AimeDB 服务器问题引起的灰网
IgnoreAimeServerError=true
[Utils]
# 登录时将 UserID 输出到日志

View File

@ -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

View 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;
}
}