Esempio n. 1
0
 protected override void AfterRead(RecordReader reader)
 {
     // Pull localized string if needed and replace data
     if (Type == 's' && reader.PluginFlags.HasFlag(PluginFlags.Localized))
     {
         uint   index     = BitConverter.ToUInt32(Data.Bytes, 0);
         string localized = reader.GetLocalizedString(LocalizedStringGroups.Strings, index);
         Data.Bytes = GetStringZeroTerminatedBytes(localized);
     }
 }
Esempio n. 2
0
 protected override void AfterRead(RecordReader reader)
 {
     // Pull localized string if needed and replace data
     if (Type == 's' && reader.PluginFlags.HasFlag(PluginFlags.Localized))
     {
         uint index = BitConverter.ToUInt32(Data.Bytes, 0);
         string localized = reader.GetLocalizedString(LocalizedStringGroups.Strings, index);
         Data.Bytes = GetStringZeroTerminatedBytes(localized);
     }
 }