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

fixes

File:
1 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;
Note: See TracChangeset for help on using the changeset viewer.