parent
0d04b11429
commit
746e75b70e
|
@ -10,82 +10,6 @@ namespace DeobfuscateStackTrace
|
||||||
private readonly Dictionary<string, List<string>> _fullSignatureMapper = new Dictionary<string, List<string>>();
|
private readonly Dictionary<string, List<string>> _fullSignatureMapper = new Dictionary<string, List<string>>();
|
||||||
private readonly Dictionary<string, List<string>> _signatureWithParamsMapper = new Dictionary<string, List<string>>();
|
private readonly Dictionary<string, List<string>> _signatureWithParamsMapper = new Dictionary<string, List<string>>();
|
||||||
|
|
||||||
|
|
||||||
private enum RenameStatus
|
|
||||||
{
|
|
||||||
NotRenamed,
|
|
||||||
Renamed,
|
|
||||||
}
|
|
||||||
|
|
||||||
private class RenameRecord
|
|
||||||
{
|
|
||||||
public RenameStatus status;
|
|
||||||
public string signature;
|
|
||||||
public string oldName;
|
|
||||||
public string newName;
|
|
||||||
public string oldStackTraceSignature; // only for MethodDef
|
|
||||||
public object renameMappingData;
|
|
||||||
}
|
|
||||||
|
|
||||||
private class RenameMappingField
|
|
||||||
{
|
|
||||||
public RenameStatus status;
|
|
||||||
public string signature;
|
|
||||||
public string newName;
|
|
||||||
}
|
|
||||||
|
|
||||||
private class RenameMappingMethod
|
|
||||||
{
|
|
||||||
public RenameStatus status;
|
|
||||||
public string signature;
|
|
||||||
public string newName;
|
|
||||||
|
|
||||||
public List<RenameMappingMethodParam> parameters = new List<RenameMappingMethodParam>();
|
|
||||||
}
|
|
||||||
|
|
||||||
private class RenameMappingMethodParam
|
|
||||||
{
|
|
||||||
public RenameStatus status;
|
|
||||||
public int index;
|
|
||||||
public string newName;
|
|
||||||
}
|
|
||||||
|
|
||||||
private class RenameMappingProperty
|
|
||||||
{
|
|
||||||
public RenameStatus status;
|
|
||||||
public string signature;
|
|
||||||
public string newName;
|
|
||||||
}
|
|
||||||
|
|
||||||
private class RenameMappingEvent
|
|
||||||
{
|
|
||||||
public RenameStatus status;
|
|
||||||
public string signature;
|
|
||||||
public string newName;
|
|
||||||
}
|
|
||||||
|
|
||||||
private class RenameMappingType
|
|
||||||
{
|
|
||||||
public RenameStatus status;
|
|
||||||
public string oldFullName;
|
|
||||||
public string newFullName;
|
|
||||||
|
|
||||||
public Dictionary<string, RenameMappingField> fields = new Dictionary<string, RenameMappingField>();
|
|
||||||
public Dictionary<string, RenameMappingMethod> methods = new Dictionary<string, RenameMappingMethod>();
|
|
||||||
public Dictionary<string, RenameMappingProperty> properties = new Dictionary<string, RenameMappingProperty>();
|
|
||||||
public Dictionary<string, RenameMappingEvent> events = new Dictionary<string, RenameMappingEvent>();
|
|
||||||
}
|
|
||||||
|
|
||||||
private class RenameMappingAssembly
|
|
||||||
{
|
|
||||||
public RenameStatus status;
|
|
||||||
public string oldAssName;
|
|
||||||
public string newAssName;
|
|
||||||
|
|
||||||
public Dictionary<string, RenameMappingType> types = new Dictionary<string, RenameMappingType>();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public SymbolMappingReader(string mappingFile)
|
public SymbolMappingReader(string mappingFile)
|
||||||
{
|
{
|
||||||
LoadXmlMappingFile(mappingFile);
|
LoadXmlMappingFile(mappingFile);
|
||||||
|
|
Loading…
Reference in New Issue