From d3543a60cb0ac79384094f8aa6b31a526c23d350 Mon Sep 17 00:00:00 2001 From: Saul Rennison Date: Thu, 30 Jan 2025 19:44:48 +0000 Subject: [PATCH] Fix build --- RELEASE_NOTES.md | 1 + examples/DemoFile.Example.Chat/DemoFile.Example.Chat.csproj | 2 +- .../DemoFile.Example.VoiceExtraction.csproj | 2 +- src/DemoFile.Benchmark/DemoFile.Benchmark.csproj | 2 +- src/DemoFile/PacketEvents.cs | 4 ---- 5 files changed, 4 insertions(+), 7 deletions(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 99e7d21..3e47fb1 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,6 +1,7 @@ ### 0.28.1 (2025-01-30) - Update to latest CS2 schema (v14065) +- Add support for new `DemRecovery` message ### 0.27.1 (2024-11-02) diff --git a/examples/DemoFile.Example.Chat/DemoFile.Example.Chat.csproj b/examples/DemoFile.Example.Chat/DemoFile.Example.Chat.csproj index e48bd07..0a05780 100644 --- a/examples/DemoFile.Example.Chat/DemoFile.Example.Chat.csproj +++ b/examples/DemoFile.Example.Chat/DemoFile.Example.Chat.csproj @@ -2,7 +2,7 @@ Exe - net8.0 + net7.0 enable enable diff --git a/examples/DemoFile.Example.VoiceExtraction/DemoFile.Example.VoiceExtraction.csproj b/examples/DemoFile.Example.VoiceExtraction/DemoFile.Example.VoiceExtraction.csproj index c76d93e..93d4f0a 100644 --- a/examples/DemoFile.Example.VoiceExtraction/DemoFile.Example.VoiceExtraction.csproj +++ b/examples/DemoFile.Example.VoiceExtraction/DemoFile.Example.VoiceExtraction.csproj @@ -2,7 +2,7 @@ Exe - net8.0 + net7.0 enable enable true diff --git a/src/DemoFile.Benchmark/DemoFile.Benchmark.csproj b/src/DemoFile.Benchmark/DemoFile.Benchmark.csproj index fef731b..06ddeb6 100644 --- a/src/DemoFile.Benchmark/DemoFile.Benchmark.csproj +++ b/src/DemoFile.Benchmark/DemoFile.Benchmark.csproj @@ -2,7 +2,7 @@ Exe - net8.0 + net7.0 enable enable $(DefineConstants);BASELINE diff --git a/src/DemoFile/PacketEvents.cs b/src/DemoFile/PacketEvents.cs index fdf6078..8352c8d 100644 --- a/src/DemoFile/PacketEvents.cs +++ b/src/DemoFile/PacketEvents.cs @@ -4,7 +4,6 @@ namespace DemoFile; public struct PacketEvents { - public Action? NetDisconnect; public Action? NetSplitScreenUser; public Action? NetTick; public Action? NetStringCmd; @@ -52,9 +51,6 @@ internal bool ParseNetMessage(int msgType, ReadOnlySpan buf) { switch (msgType) { - case (int)NET_Messages.NetDisconnectLegacy: - NetDisconnect?.Invoke(CNETMsg_Disconnect_Legacy.Parser.ParseFrom(buf)); - return true; case (int)NET_Messages.NetSplitScreenUser: NetSplitScreenUser?.Invoke(CNETMsg_SplitScreenUser.Parser.ParseFrom(buf)); return true;