mirror of https://github.com/hykilpikonna/AquaDX
20 lines
495 B
C#
20 lines
495 B
C#
![]() |
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|