Ignore:
Timestamp:
Jul 24, 2014, 3:37:08 PM (10 years ago)
Author:
alloc
Message:

fixes

File:
1 edited

Legend:

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

    r93 r104  
    5959                {
    6060                        NameNormalizer.setName (mainModule.GetType ("ItemBlock").BaseType.Resolve (), "ItemBase");
     61
     62                        foreach (FieldDefinition fd in mainModule.GetType ("Authenticator").Fields) {
     63                                TypeReference fdType = fd.FieldType;
     64                                if (fdType.FullName.Contains ("Dictionary") && fdType.FullName.Contains ("System.String")) {
     65                                        Console.WriteLine ("Renaming and making public Authenticator field -> usersToIDs");
     66                                        fd.Attributes = fd.Attributes & (~Mono.Cecil.FieldAttributes.Private) | Mono.Cecil.FieldAttributes.Public;
     67                                        NameNormalizer.setName (fd, "usersToIDs");
     68                                }
     69                        }
    6170
    6271                        foreach (FieldDefinition fd in mainModule.GetType("PlayerDataFile").Fields) {
Note: See TracChangeset for help on using the changeset viewer.