Skip to content

Commit

Permalink
Reimplemented Cpp2IL StrippedCodeRegSupport Module
Browse files Browse the repository at this point in the history
  • Loading branch information
HerpDerpinstine committed Dec 8, 2024
1 parent 41c853e commit 095c3f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
9 changes: 3 additions & 6 deletions Dependencies/Il2CppAssemblyGenerator/Core.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.IO;
using System.Net;
using System.IO;
using System.Net.Http;
using MelonLoader.Il2CppAssemblyGenerator.Packages;
using MelonLoader.Il2CppAssemblyGenerator.Packages.Models;
Expand Down Expand Up @@ -65,8 +63,7 @@ private static int Run()
cpp2il = new Cpp2IL_NetFramework();
else
cpp2il = cpp2IL_netcore;

//cpp2il_scrs = new Cpp2IL_StrippedCodeRegSupport(cpp2il);
cpp2il_scrs = new Cpp2IL_StrippedCodeRegSupport(cpp2il);

il2cppinterop = new Packages.Il2CppInterop();
unitydependencies = new UnityDependencies();
Expand All @@ -79,7 +76,7 @@ private static int Run()
Logger.Msg($"Using Deobfuscation Regex = {(string.IsNullOrEmpty(deobfuscationRegex.Regex) ? "null" : deobfuscationRegex.Regex)}");

if (!cpp2il.Setup()
//|| !cpp2il_scrs.Setup()
|| !cpp2il_scrs.Setup()
|| !il2cppinterop.Setup()
|| !unitydependencies.Setup()
|| !deobfuscationMap.Setup())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ namespace MelonLoader.Il2CppAssemblyGenerator.Packages
{
internal class Cpp2IL_StrippedCodeRegSupport : PackageBase
{
private static SemVersion MinVersion = SemVersion.Parse("2022.1.0-pre-release.19");
private string _pluginsFolder;
private SemVersion VersionSem;

internal Cpp2IL_StrippedCodeRegSupport(Cpp2IL cpp2IL)
internal Cpp2IL_StrippedCodeRegSupport(ExecutablePackage cpp2IL)
{
Name = $"{cpp2IL.Name}.Plugin.StrippedCodeRegSupport";
Version = cpp2IL.Version;
Expand All @@ -28,7 +29,7 @@ internal Cpp2IL_StrippedCodeRegSupport(Cpp2IL cpp2IL)

internal override bool ShouldSetup()
{
if (VersionSem < Cpp2IL.NetCoreMinVersion)
if (VersionSem < MinVersion)
return false;

return string.IsNullOrEmpty(Config.Values.DumperSCRSVersion)
Expand Down

0 comments on commit 095c3f4

Please sign in to comment.