Changeset 104 for binary-improvements/NamePatcher/NamePatcher.cs
- Timestamp:
- Jul 24, 2014, 3:37:08 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/NamePatcher/NamePatcher.cs
r93 r104 59 59 { 60 60 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 } 61 70 62 71 foreach (FieldDefinition fd in mainModule.GetType("PlayerDataFile").Fields) {
Note:
See TracChangeset
for help on using the changeset viewer.