上传文件至 Fix
This commit is contained in:
20
Fix/FixCheckAuth.cs
Normal file
20
Fix/FixCheckAuth.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using AMDaemon.Allnet;
|
||||
using HarmonyLib;
|
||||
using Manager;
|
||||
using Manager.Operation;
|
||||
|
||||
namespace SinmaiAssist.Fix;
|
||||
|
||||
public class FixCheckAuth
|
||||
{
|
||||
// codes from AquaMai [https://github.com/MewoLab/AquaMai/blob/main/AquaMai.Mods/Fix/FixCheckAuth.cs]
|
||||
[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