Changeset 84 for binary-improvements/NamePatcher
- Timestamp:
- Jul 19, 2014, 12:47:32 PM (11 years ago)
- Location:
- binary-improvements/NamePatcher
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/NamePatcher/NamePatcher.cs
r83 r84 58 58 static void applyManualPatches (ModuleDefinition mainModule) 59 59 { 60 foreach (FieldDefinition fd in mainModule.GetType ("AdminTools").Fields) { 61 TypeReference fdType = fd.FieldType; 62 if (fdType.FullName.Contains ("List") && fdType.FullName.Contains ("AdminToolsCommandPermissions")) { 63 Console.WriteLine ("Renaming and making public admin tools field -> commandPermissions"); 64 fd.Attributes = fd.Attributes & (~Mono.Cecil.FieldAttributes.Private) | Mono.Cecil.FieldAttributes.Public; 65 NameNormalizer.setName (fd, "commandPermissions"); 66 } 67 } 68 60 69 foreach (FieldDefinition fd in mainModule.GetType ("World").Fields) { 61 70 TypeReference fdType = fd.FieldType; -
binary-improvements/NamePatcher/NamePatcher.userprefs
r77 r84 3 3 <MonoDevelop.Ide.Workbench ActiveDocument="NamePatcher.cs"> 4 4 <Files> 5 <File FileName="NamePatcher.cs" Line="1 65" Column="120" />5 <File FileName="NamePatcher.cs" Line="109" Column="57" /> 6 6 <File FileName="NameNormalizer.cs" Line="188" Column="1" /> 7 7 </Files>
Note:
See TracChangeset
for help on using the changeset viewer.