Changeset 83 for binary-improvements/NamePatcher
- Timestamp:
- Jul 18, 2014, 3:48:29 AM (11 years ago)
- Location:
- binary-improvements/NamePatcher
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/NamePatcher/NamePatcher.cs
r77 r83 103 103 TypeDefinition typeConsole = mainModule.GetType (consoleTypeName); 104 104 string consoleCommandTypeName = string.Empty; 105 foreach (MethodDefinition md in typeConsole.Methods) { 106 if (!md.IsConstructor) { 107 if (md.Parameters.Count == 3 && md.Parameters [0].ParameterType.Name.Equals ("NetworkPlayer")) { 108 Console.WriteLine ("Renaming console method -> ExecuteCmdFromClient"); 109 NameNormalizer.setName (md, "ExecuteCmdFromClient"); 110 } 111 } 112 } 105 113 foreach (FieldDefinition fd in typeConsole.Fields) { 106 114 TypeReference fdType = fd.FieldType;
Note:
See TracChangeset
for help on using the changeset viewer.