mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-19 15:51:45 +00:00
include DeobfuscationMap.csv.gz in ComputeHash (#1020)
This commit is contained in:
1 parent
e1974e26fd
commit
35f6b1b541
1 file changed
+9
-3
@@ -137,6 +137,8 @@ internal static partial class Il2CppInteropManager
|
||||
|
||||
internal static string IL2CPPInteropAssemblyPath => Path.Combine(IL2CPPBasePath, "interop");
|
||||
|
||||
private static string RenameMapPath => Path.Combine(Paths.BepInExRootPath, "DeobfuscationMap.csv.gz");
|
||||
|
||||
private static ILoggerFactory LoggerFactory { get; } = MSLoggerFactory.Create(b =>
|
||||
{
|
||||
b.AddProvider(new BepInExLoggerProvider())
|
||||
@@ -173,6 +175,11 @@ internal static partial class Il2CppInteropManager
|
||||
HashFile(md5, file);
|
||||
}
|
||||
|
||||
if (File.Exists(RenameMapPath))
|
||||
{
|
||||
HashFile(md5, RenameMapPath);
|
||||
}
|
||||
|
||||
// Hash some common dependencies as they can affect output
|
||||
HashString(md5, typeof(InteropAssemblyGenerator).Assembly.GetName().Version.ToString());
|
||||
HashString(md5, typeof(Cpp2IlApi).Assembly.GetName().Version.ToString());
|
||||
@@ -361,11 +368,10 @@ internal static partial class Il2CppInteropManager
|
||||
: null,
|
||||
};
|
||||
|
||||
var renameMapLocation = Path.Combine(Paths.BepInExRootPath, "DeobfuscationMap.csv.gz");
|
||||
if (File.Exists(renameMapLocation))
|
||||
if (File.Exists(RenameMapPath))
|
||||
{
|
||||
Logger.LogInfo("Parsing deobfuscation rename mappings");
|
||||
opts.ReadRenameMap(renameMapLocation);
|
||||
opts.ReadRenameMap(RenameMapPath);
|
||||
}
|
||||
|
||||
Logger.LogInfo("Generating interop assemblies");
|
||||
|
||||
Reference in new issue
Block a user