Ignore:
Timestamp:
Jul 19, 2014, 12:47:32 PM (11 years ago)
Author:
alloc
Message:

fixes

Location:
binary-improvements/NamePatcher
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/NamePatcher/NamePatcher.cs

    r83 r84  
    5858                static void applyManualPatches (ModuleDefinition mainModule)
    5959                {
     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
    6069                        foreach (FieldDefinition fd in mainModule.GetType ("World").Fields) {
    6170                                TypeReference fdType = fd.FieldType;
  • binary-improvements/NamePatcher/NamePatcher.userprefs

    r77 r84  
    33  <MonoDevelop.Ide.Workbench ActiveDocument="NamePatcher.cs">
    44    <Files>
    5       <File FileName="NamePatcher.cs" Line="165" Column="120" />
     5      <File FileName="NamePatcher.cs" Line="109" Column="57" />
    66      <File FileName="NameNormalizer.cs" Line="188" Column="1" />
    77    </Files>
Note: See TracChangeset for help on using the changeset viewer.