Changeset 104


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

fixes

Location:
binary-improvements
Files:
3 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) {
  • binary-improvements/NamePatcher/NamePatcher.userprefs

    r95 r104  
    33  <MonoDevelop.Ide.Workbench ActiveDocument="NamePatcher.cs">
    44    <Files>
    5       <File FileName="NamePatcher.cs" Line="67" Column="44" />
     5      <File FileName="NamePatcher.cs" Line="64" Column="92" />
    66      <File FileName="NameNormalizer.cs" Line="188" Column="1" />
    77    </Files>
  • binary-improvements/assembly-patcher/Assembly-Patcher.userprefs

    r97 r104  
    33  <MonoDevelop.Ide.Workbench ActiveDocument="Main.cs">
    44    <Files>
    5       <File FileName="Main.cs" Line="12" Column="2" />
     5      <File FileName="Main.cs" Line="20" Column="4" />
    66      <File FileName="AssemblyInfo.cs" Line="21" Column="1" />
    77    </Files>
Note: See TracChangeset for help on using the changeset viewer.