mirror of
https://github.com/MewoLab/AquaDX.git
synced 2025-10-25 12:02:40 +00:00
[F] Crash with the new modified SDEZ145 DLL with deleted methods
This commit is contained in:
parent
5ee7add355
commit
9598ac5a50
@ -293,6 +293,7 @@
|
||||
<Compile Include="Fix\DisableReboot.cs" />
|
||||
<Compile Include="Fix\ExtendNotesPool.cs" />
|
||||
<Compile Include="Fix\FixCharaCrash.cs" />
|
||||
<Compile Include="Fix\FixCheckAuth.cs" />
|
||||
<Compile Include="Fix\ForceAsServer.cs" />
|
||||
<Compile Include="Fix\ForceFreePlay.cs" />
|
||||
<Compile Include="Fix\ForcePaidPlay.cs" />
|
||||
|
||||
@ -1,7 +1,5 @@
|
||||
using AMDaemon.Allnet;
|
||||
using HarmonyLib;
|
||||
using HarmonyLib;
|
||||
using Manager;
|
||||
using Manager.Operation;
|
||||
using Monitor.MusicSelect.ChainList;
|
||||
using Net;
|
||||
using UnityEngine;
|
||||
@ -17,16 +15,6 @@ public class BasicFix
|
||||
return false;
|
||||
}
|
||||
|
||||
[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;
|
||||
}
|
||||
}
|
||||
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(DebugInput), "GetKey")]
|
||||
private static bool GetKey(ref bool __result, KeyCode name)
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -24,12 +24,19 @@ namespace AquaMai
|
||||
private void Patch(Type type)
|
||||
{
|
||||
MelonLogger.Msg($"> Patching {type}");
|
||||
try
|
||||
{
|
||||
HarmonyInstance.PatchAll(type);
|
||||
foreach (var nested in type.GetNestedTypes())
|
||||
{
|
||||
Patch(nested);
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
MelonLogger.Error($"Failed to patch {type}: {e}");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Apply patches using reflection, based on the settings
|
||||
@ -96,6 +103,7 @@ namespace AquaMai
|
||||
Patch(typeof(BasicFix));
|
||||
Patch(typeof(DisableReboot));
|
||||
Patch(typeof(ExtendNotesPool));
|
||||
Patch(typeof(FixCheckAuth));
|
||||
// UX
|
||||
Patch(typeof(CustomVersionString));
|
||||
Patch(typeof(CustomPlaceName));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user