Skip to content

Commit 769a2ca

Browse files
committed
Move
1 parent a26a4a8 commit 769a2ca

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed
Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,6 @@ public void Awake()
1818
{
1919
var harmony = new HarmonyLib.Harmony(PluginName);
2020

21-
// Early initialization of AMDaemon.NET
22-
try
23-
{
24-
AmManager.Instance.Initialize();
25-
harmony.PatchAll(typeof(Plugin));
26-
}
27-
catch (Exception ex)
28-
{
29-
LogSource.LogError($"AMDaemon.NET early initialization failed: {ex.Message}");
30-
return;
31-
}
32-
3321
Common.AquaMai.Bootstrap(new BootstrapOptions
3422
{
3523
CurrentAssembly = Assembly.GetExecutingAssembly(),
@@ -47,11 +35,4 @@ public void OnGUI()
4735
{
4836
Common.AquaMai.OnGUI();
4937
}
50-
51-
[HarmonyLib.HarmonyPatch(typeof(AmManager), "Initialize")]
52-
[HarmonyLib.HarmonyPrefix]
53-
public static bool PreAmManagerInitialize()
54-
{
55-
return false; // Prevent AMDaemon.NET from initializing again
56-
}
5738
}

0 commit comments

Comments
 (0)