From 713e5f4cce4c39fdf8a72dac3e3bbd63f331d2c6 Mon Sep 17 00:00:00 2001 From: Sanae Date: Tue, 8 Mar 2022 17:35:07 -0600 Subject: [PATCH] So now we know about the new secret boolean --- Shared/Packet/Packets/PlayerPacket.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Shared/Packet/Packets/PlayerPacket.cs b/Shared/Packet/Packets/PlayerPacket.cs index 8257c87..6e90b47 100644 --- a/Shared/Packet/Packets/PlayerPacket.cs +++ b/Shared/Packet/Packets/PlayerPacket.cs @@ -18,6 +18,7 @@ public struct PlayerPacket : IPacket { public bool Is2d = false; public bool ThrowingCap = false; public bool IsIt = false; + public bool IsCaptured = false; public int ScenarioNum = 0; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 0x40)] @@ -46,8 +47,9 @@ public struct PlayerPacket : IPacket { MemoryMarshal.Write(data[offset++..], ref Is2d); MemoryMarshal.Write(data[offset++..], ref ThrowingCap); MemoryMarshal.Write(data[offset++..], ref IsIt); + MemoryMarshal.Write(data[offset++..], ref IsCaptured); MemoryMarshal.Write(data[offset..], ref ScenarioNum); - offset += 5; + offset += 4; Encoding.UTF8.GetBytes(Stage).CopyTo(data[offset..(offset + 0x40)]); offset += 0x40; Encoding.UTF8.GetBytes(Act).CopyTo(data[offset..(offset + NameSize)]); @@ -68,9 +70,9 @@ public struct PlayerPacket : IPacket { Is2d = MemoryMarshal.Read(data[offset++..]); ThrowingCap = MemoryMarshal.Read(data[offset++..]); IsIt = MemoryMarshal.Read(data[offset++..]); - // offset++; // padding + IsCaptured = MemoryMarshal.Read(data[offset++..]); ScenarioNum = MemoryMarshal.Read(data[offset..]); - offset += 5; + offset += 4; Stage = Encoding.UTF8.GetString(data[offset..(offset + 0x40)]).TrimEnd('\0'); offset += 0x40; Act = Encoding.UTF8.GetString(data[offset..(offset + NameSize)]).TrimEnd('\0');