From f7543672fc241b69433d9c0f05517d4aacc5e58c Mon Sep 17 00:00:00 2001
From: Cj <161484149+CJ-SPT@users.noreply.github.com>
Date: Fri, 9 Aug 2024 14:35:18 -0400
Subject: [PATCH] Fix DeObfuscate command InvalidCastException + put de4dot in
sub dir of data.
---
ReCodeItCLI/ReCodeIt.csproj | 2 +-
RecodeItLib/Remapper/DeObfuscator.cs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ReCodeItCLI/ReCodeIt.csproj b/ReCodeItCLI/ReCodeIt.csproj
index 82e28b7..24eb2c2 100644
--- a/ReCodeItCLI/ReCodeIt.csproj
+++ b/ReCodeItCLI/ReCodeIt.csproj
@@ -10,7 +10,7 @@
-
+
diff --git a/RecodeItLib/Remapper/DeObfuscator.cs b/RecodeItLib/Remapper/DeObfuscator.cs
index e46c9cf..3aebe88 100644
--- a/RecodeItLib/Remapper/DeObfuscator.cs
+++ b/RecodeItLib/Remapper/DeObfuscator.cs
@@ -33,7 +33,7 @@ public static class Deobfuscator
if (!method.Body.Instructions.Any(x =>
x.OpCode.Code == Code.Callvirt &&
- ((MethodDef)x.Operand).FullName == "System.Object System.AppDomain::GetData(System.String)"))
+ ((IMethodDefOrRef)x.Operand).FullName == "System.Object System.AppDomain::GetData(System.String)"))
{
continue;
}