bump to MelonLoader 0.3.0

This commit is contained in:
Sinai 2021-03-06 17:25:54 +11:00
parent 12cd718f12
commit ce38e8ac50
5 changed files with 8 additions and 8 deletions

Binary file not shown.

BIN
lib/MelonLoader.dll Normal file

Binary file not shown.

View File

@ -199,7 +199,7 @@ namespace UnityExplorer
return; return;
#if ML #if ML
MelonLoader.MelonLogger.Log(message?.ToString()); MelonLoader.MelonLogger.Msg(message?.ToString());
#elif BIE #elif BIE
ExplorerBepInPlugin.Logging?.LogMessage(message?.ToString()); ExplorerBepInPlugin.Logging?.LogMessage(message?.ToString());
#elif STANDALONE #elif STANDALONE
@ -215,7 +215,7 @@ namespace UnityExplorer
return; return;
#if ML #if ML
MelonLoader.MelonLogger.LogWarning(message?.ToString()); MelonLoader.MelonLogger.Msg(message?.ToString());
#elif BIE #elif BIE
ExplorerBepInPlugin.Logging?.LogWarning(message?.ToString()); ExplorerBepInPlugin.Logging?.LogWarning(message?.ToString());
#elif STANDALONE #elif STANDALONE
@ -231,7 +231,7 @@ namespace UnityExplorer
return; return;
#if ML #if ML
MelonLoader.MelonLogger.LogError(message?.ToString()); MelonLoader.MelonLogger.Msg(message?.ToString());
#elif BIE #elif BIE
ExplorerBepInPlugin.Logging?.LogError(message?.ToString()); ExplorerBepInPlugin.Logging?.LogError(message?.ToString());
#elif STANDALONE #elif STANDALONE

View File

@ -20,7 +20,7 @@ namespace UnityExplorer
ExplorerCore.Update(); ExplorerCore.Update();
} }
public override void OnLevelWasLoaded(int level) public override void OnSceneWasLoaded(int buildIndex, string sceneName)
{ {
ExplorerCore.Instance.OnSceneLoaded(); ExplorerCore.Instance.OnSceneLoaded();
} }

View File

@ -116,8 +116,8 @@
</ItemGroup> </ItemGroup>
<!-- MelonLoader Mono refs --> <!-- MelonLoader Mono refs -->
<ItemGroup Condition="'$(IsMelonLoader)|$(IsCpp)'=='true|false'"> <ItemGroup Condition="'$(IsMelonLoader)|$(IsCpp)'=='true|false'">
<Reference Include="MelonLoader.ModHandler"> <Reference Include="MelonLoader">
<HintPath>..\lib\MelonLoader.ModHandler.dll</HintPath> <HintPath>..\lib\MelonLoader.dll</HintPath>
<Private>False</Private> <Private>False</Private>
</Reference> </Reference>
</ItemGroup> </ItemGroup>
@ -134,8 +134,8 @@
</ItemGroup> </ItemGroup>
<!-- MelonLoader Il2Cpp refs --> <!-- MelonLoader Il2Cpp refs -->
<ItemGroup Condition="'$(IsMelonLoader)|$(IsCpp)'=='true|true'"> <ItemGroup Condition="'$(IsMelonLoader)|$(IsCpp)'=='true|true'">
<Reference Include="MelonLoader.ModHandler"> <Reference Include="MelonLoader">
<HintPath>$(MLCppGameFolder)\MelonLoader\MelonLoader.ModHandler.dll</HintPath> <HintPath>$(MLCppGameFolder)\MelonLoader\MelonLoader.dll</HintPath>
<Private>False</Private> <Private>False</Private>
</Reference> </Reference>
<Reference Include="UnhollowerBaseLib"> <Reference Include="UnhollowerBaseLib">