Exemplo n.º 1
0
 public override void Patch(Logger logger, AssemblyDefinition asmCSharp, AssemblyDefinition __reserved)
 {
     /*var found = asmCSharp.MainModule.GetTypes().Any(type => type.Fields.Any(fi => fi.IsLiteral && !fi.IsInitOnly && fi.Constant.ToString().Contains("7DTD")));
     if (!found)
     {
         logger.Log(Logger.Level.KEYINFO, "Couldn't find 7DTD, skipping...");
         return;
     }*/
     PatchMisc.Patch(logger, asmCSharp);
 }
Exemplo n.º 2
0
 public override void Patch(Logger logger, AssemblyDefinition asmCSharp, AssemblyDefinition __reserved)
 {
     module = asmCSharp.Modules[0];
     foreach (ModuleDefinition mdef in asmCSharp.Modules)
     {
         logger.KeyInfo("Patching " + mdef.Types.Count + " type[s] ...");
         foreach (TypeDefinition tdef in mdef.Types)
         {
             NameNormalizer.CheckNames(tdef);
         }
     }
     NameNormalizer.FinalizeNormalizing();
     NameNormalizer.clnamestomod.Clear();
     NameNormalizer.vclasses.Clear();
 }
Exemplo n.º 3
0
 public virtual void Patch(Logger logger, AssemblyDefinition asmCSharp, AssemblyDefinition __reserved)
 {
 }
Exemplo n.º 4
0
 public override void Patch(Logger logger, AssemblyDefinition asmCSharp, AssemblyDefinition __reserved)
 {
     DecryptStrings.Apply(asmCSharp.Modules[0], logger);
     GarbageRemover.Apply(asmCSharp.Modules[0], logger);
 }