Skip to content

Commit

Permalink
0.6.6 Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TrevTV committed Nov 28, 2024
1 parent 139052b commit cd844db
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Dependencies/Il2CppAssemblyGenerator/Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,18 @@ public override void OnInitialize()
BasePath = Path.GetDirectoryName(Assembly.Location);
}

#pragma warning disable IDE0051 // Remove unused private members; called via reflection
private static int Run()
#pragma warning restore IDE0051
{
Config.Initialize();

if (!MelonLaunchOptions.Il2CppAssemblyGenerator.OfflineMode)
RemoteAPI.Contact();

Cpp2IL cpp2IL_netcore = new Cpp2IL();
Packages.Cpp2IL cpp2IL_netcore = new Packages.Cpp2IL();
if (MelonUtils.IsWindows
&& (cpp2IL_netcore.VersionSem < Cpp2IL.NetCoreMinVersion))
&& (cpp2IL_netcore.VersionSem < Packages.Cpp2IL.NetCoreMinVersion))
cpp2il = new Cpp2IL_NetFramework();
else
cpp2il = cpp2IL_netcore;
Expand Down
3 changes: 3 additions & 0 deletions MelonLoader/Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
using JNISharp.NativeInterface;
using System.Linq;
using System.Drawing;
using MelonLoader.Utils;
using MelonLoader.InternalUtils;
using MelonLoader.Resolver;

#if NET6_0_OR_GREATER
using MelonLoader.CoreClrUtils;
Expand Down
1 change: 1 addition & 0 deletions MelonLoader/MelonLoader.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<ProjectReference Include="..\External\Il2CppInterop\Il2CppInterop.Common\Il2CppInterop.Common.csproj" />
<ProjectReference Include="..\External\Il2CppInterop\Il2CppInterop.Generator\Il2CppInterop.Generator.csproj" />
<ProjectReference Include="..\External\Il2CppInterop\Il2CppInterop.Runtime\Il2CppInterop.Runtime.csproj" />
<ProjectReference Include="..\External\Il2CppInterop\Il2CppInterop.HarmonySupport\Il2CppInterop.HarmonySupport.csproj" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\classdata.tpk" />
Expand Down
1 change: 0 additions & 1 deletion MelonLoader/Resolver/MelonAssemblyResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ internal static void Setup()
MelonEnvironment.GameRootDirectory,
MelonEnvironment.OurRuntimeDirectory,
MelonEnvironment.Il2CppAssembliesDirectory,
MelonEnvironment.UnityGameManagedDirectory,
};
foreach (string path in searchdirlist)
AddSearchDirectory(path);
Expand Down

0 comments on commit cd844db

Please sign in to comment.