|
6 | 6 | namespace RainbowMage.OverlayPlugin.NetworkProcessors |
7 | 7 | { |
8 | 8 | class LineRSV : LineBaseCustom< |
9 | | - Server_MessageHeader_Global, LineRSV.RSV_v70, |
10 | | - Server_MessageHeader_CN, LineRSV.RSV_v70, |
| 9 | + Server_MessageHeader_Global, LineRSV.RSV_v62, |
| 10 | + Server_MessageHeader_CN, LineRSV.RSV_v62, |
11 | 11 | Server_MessageHeader_KR, LineRSV.RSV_v62, |
12 | 12 | Server_MessageHeader_TC, LineRSV.RSV_v62> |
13 | 13 | { |
14 | | - [StructLayout(LayoutKind.Explicit, Size = structSize, Pack = 1)] |
15 | | - internal unsafe struct RSV_v70 : IPacketStruct |
16 | | - { |
17 | | - public const int structSize = 1080; |
18 | | - public const int keySize = 0x64; |
19 | | - public const int valueSize = 0x404; |
20 | | - [FieldOffset(0x0)] |
21 | | - public int valueByteCount; |
22 | | - [FieldOffset(0x4)] |
23 | | - public fixed byte key[keySize]; |
24 | | - [FieldOffset(0x68)] |
25 | | - public fixed byte value[valueSize]; |
26 | | - |
27 | | - public string ToString(long epoch, uint ActorID) |
28 | | - { |
29 | | - fixed (byte* key = this.key) fixed (byte* value = this.value) |
30 | | - { |
31 | | - return |
32 | | - $"{ffxiv.GetLocaleString()}|" + |
33 | | - $"{valueByteCount:X8}|" + |
34 | | - $"{FFXIVMemory.GetStringFromBytes(key, keySize).Replace("\r", "\\r").Replace("\n", "\\n")}|" + |
35 | | - $"{FFXIVMemory.GetStringFromBytes(value, Math.Min(valueByteCount, valueSize)).Replace("\r", "\\r").Replace("\n", "\\n")}"; |
36 | | - } |
37 | | - } |
38 | | - } |
39 | | - |
40 | 14 | [StructLayout(LayoutKind.Explicit, Size = structSize, Pack = 1)] |
41 | 15 | internal unsafe struct RSV_v62 : IPacketStruct |
42 | 16 | { |
|
0 commit comments