mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-12 14:37:27 +08:00
[F] Crash with the new modified SDEZ145 DLL with deleted methods
This commit is contained in:
19
AquaMai/Fix/FixCheckAuth.cs
Normal file
19
AquaMai/Fix/FixCheckAuth.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user