tried to create a universal unity event hook

This commit is contained in:
2025-03-12 18:35:16 +02:00
parent a7769147e3
commit 756deee097
5 changed files with 71 additions and 17 deletions

View File

@@ -13,7 +13,7 @@ namespace BoneSync.Patching
[HarmonyPatch(typeof(BoneworksSceneManager))]
internal class SceneManagerPatches
{
[HarmonyPatch(nameof(BoneworksSceneManager.LoadScene)), HarmonyPostfix]
/*[HarmonyPatch(nameof(BoneworksSceneManager.LoadScene)), HarmonyPostfix]
private static void LoadScenePrefix(int sceneBuildIndex)
{
MelonLogger.Msg("LoadScenePrefix: " + sceneBuildIndex);
@@ -23,6 +23,6 @@ namespace BoneSync.Patching
MelonLogger.Msg("Host is loading scene, sending message to clients...");
SceneSync.SendSceneSyncMessage(sceneBuildIndex);
}
}
}*/
}
}