Changeset 114 for binary-improvements/NamePatcher
- Timestamp:
- Jul 28, 2014, 11:27:14 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/NamePatcher/ManualPatches.cs
r113 r114 83 83 84 84 85 md = getMethodInType (mainModule.GetType ("EntityPlayer").BaseType.Resolve (), (method, isConstructor, retType, paramCount, paramList) => { 86 return !isConstructor && method.IsPublic && paramCount == 3 && method.Name.Equals ("DamageEntity"); 87 } 88 ); 89 if (md != null) { 90 TypeDefinition typeDamageSource = md.Parameters[0].ParameterType.Resolve(); 91 renameMember (typeDamageSource, "DamageSource"); 92 } else { 93 Console.WriteLine ("FAILED: DamageSource"); 94 } 95 96 85 97 renameMember (mainModule.GetType ("ItemBlock").BaseType.Resolve (), "ItemBase"); 86 98
Note:
See TracChangeset
for help on using the changeset viewer.