AquaDX/AquaMai/Fix/FixCheckAuth.cs

20 lines
495 B
C#
Raw Normal View History

using AMDaemon.Allnet;
using HarmonyLib;
using Manager;
using Manager.Operation;
namespace AquaMai.Fix;
public class FixCheckAuth
{
[HarmonyPostfix]
[HarmonyPatch(typeof(OperationManager), "CheckAuth_Proc")]
private static void PostCheckAuthProc(ref OperationData ____operationData)
{
if (Auth.GameServerUri.StartsWith("http://") || Auth.GameServerUri.StartsWith("https://"))
{
____operationData.ServerUri = Auth.GameServerUri;
}
}
}