Skip to content

Commit 03fa3d8

Browse files
committed
chore: cleanup
1 parent 0939c9f commit 03fa3d8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Cpp2IL.Plugin.Mfuscator/MfuscatorSupportPlugin.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -470,8 +470,7 @@ private byte[] RebuildMetadata(byte[] encryptedMetadata, List<(int Start, int En
470470
var decryptedHeader = DecryptHeader(originalBytes, out var stringLiteralsXorKey, out var stringLiteralsIsPlus);
471471

472472
var headerLength = decryptedHeader.Length;
473-
474-
//Find the values in the header which could be stringLiteralOffset
473+
475474
var headerWords = MemoryMarshal.Cast<byte, uint>(decryptedHeader).ToArray();
476475

477476
//There is some garbage data at the end of the file, which confuses the actual length of the metadata (which we use to find a chain through the real/fake values in the header to identify the real ones)
@@ -534,8 +533,6 @@ private byte[] RebuildMetadata(byte[] encryptedMetadata, List<(int Start, int En
534533

535534
Logger.VerboseNewline("Decrypted header: " + string.Join("", decryptedHeader.Select(b => b.ToString("X2"))));
536535

537-
metadataLength = 0x2356D0C;
538-
539536
while (metadataLength > headerLength)
540537
{
541538
Logger.VerboseNewline($"Trying metadata length 0x{metadataLength:X4}");

0 commit comments

Comments
 (0)