diff --git a/lib/MelonLoader.ModHandler.dll b/lib/MelonLoader.ModHandler.dll deleted file mode 100644 index 39a48ef..0000000 Binary files a/lib/MelonLoader.ModHandler.dll and /dev/null differ diff --git a/lib/MelonLoader.dll b/lib/MelonLoader.dll new file mode 100644 index 0000000..7ea7b22 Binary files /dev/null and b/lib/MelonLoader.dll differ diff --git a/src/ExplorerCore.cs b/src/ExplorerCore.cs index 8451c8c..e606186 100644 --- a/src/ExplorerCore.cs +++ b/src/ExplorerCore.cs @@ -199,7 +199,7 @@ namespace UnityExplorer return; #if ML - MelonLoader.MelonLogger.Log(message?.ToString()); + MelonLoader.MelonLogger.Msg(message?.ToString()); #elif BIE ExplorerBepInPlugin.Logging?.LogMessage(message?.ToString()); #elif STANDALONE @@ -215,7 +215,7 @@ namespace UnityExplorer return; #if ML - MelonLoader.MelonLogger.LogWarning(message?.ToString()); + MelonLoader.MelonLogger.Msg(message?.ToString()); #elif BIE ExplorerBepInPlugin.Logging?.LogWarning(message?.ToString()); #elif STANDALONE @@ -231,7 +231,7 @@ namespace UnityExplorer return; #if ML - MelonLoader.MelonLogger.LogError(message?.ToString()); + MelonLoader.MelonLogger.Msg(message?.ToString()); #elif BIE ExplorerBepInPlugin.Logging?.LogError(message?.ToString()); #elif STANDALONE diff --git a/src/ExplorerMelonMod.cs b/src/ExplorerMelonMod.cs index 9525009..cc44b2c 100644 --- a/src/ExplorerMelonMod.cs +++ b/src/ExplorerMelonMod.cs @@ -20,7 +20,7 @@ namespace UnityExplorer ExplorerCore.Update(); } - public override void OnLevelWasLoaded(int level) + public override void OnSceneWasLoaded(int buildIndex, string sceneName) { ExplorerCore.Instance.OnSceneLoaded(); } diff --git a/src/UnityExplorer.csproj b/src/UnityExplorer.csproj index e0d600b..7d5c988 100644 --- a/src/UnityExplorer.csproj +++ b/src/UnityExplorer.csproj @@ -116,8 +116,8 @@ - - ..\lib\MelonLoader.ModHandler.dll + + ..\lib\MelonLoader.dll False @@ -134,8 +134,8 @@ - - $(MLCppGameFolder)\MelonLoader\MelonLoader.ModHandler.dll + + $(MLCppGameFolder)\MelonLoader\MelonLoader.dll False