예제 #1
0
파일: Gmst.cs 프로젝트: tstavrianos/patcher
 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);
     }
 }
예제 #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);
     }
 }