From 0b350ff4eca2fea4d5a7de4c545267dac9754495 Mon Sep 17 00:00:00 2001 From: Qrakhen Date: Sun, 9 Nov 2025 12:51:19 +0100 Subject: [PATCH] include context in serialization --- Qrakhen.Qamp.Core/Values/Ptr.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Qrakhen.Qamp.Core/Values/Ptr.cs b/Qrakhen.Qamp.Core/Values/Ptr.cs index 649eac7..c682e53 100644 --- a/Qrakhen.Qamp.Core/Values/Ptr.cs +++ b/Qrakhen.Qamp.Core/Values/Ptr.cs @@ -1,9 +1,6 @@ using Qrakhen.Qamp.Core.Values.Objects; using System.Runtime.InteropServices; using Qrakhen.Qamp.Core.Collections; -using System.Diagnostics.CodeAnalysis; -using System.Security.Cryptography; -using System.Text; namespace Qrakhen.Qamp.Core.Values; @@ -59,6 +56,8 @@ public readonly struct Ptr byte[] bytes; if (obj is Function function) { bytes = function.Serialize(); + } else if (obj is Context context) { + bytes = context.Function.Serialize(); } else { continue; }