/// <summary> /// </summary> /// <param name="reader"></param> private void ReadUtfData(EndianReader reader) { IsUtfEncrypted = false; reader.LittleEndian = true; Unknown1 = reader.ReadInt32(); UtfSize = reader.ReadInt64(); UtfPacket = reader.ReadBytes((int)UtfSize); if (UtfPacket[0] != 0x40 && UtfPacket[1] != 0x55 && UtfPacket[2] != 0x54 && UtfPacket[3] != 0x46) { UtfPacket = DecryptUtf(UtfPacket); IsUtfEncrypted = true; } reader.LittleEndian = false; }
private void ReadUTFData(EndianReader br) { isUtfEncrypted = false; br.IsLittleEndian = true; unk1 = br.ReadInt32(); utf_size = br.ReadInt64(); utf_packet = br.ReadBytes((int)utf_size); if (utf_packet[0] != 0x40 && utf_packet[1] != 0x55 && utf_packet[2] != 0x54 && utf_packet[3] != 0x46) //@UTF { utf_packet = DecryptUTF(utf_packet); isUtfEncrypted = true; } br.IsLittleEndian = false; }