From 7817ccab07acf579e24dfce6f4d995f2d44198bf Mon Sep 17 00:00:00 2001 From: esuo1198 <54134.es@gmail.com> Date: Fri, 8 Mar 2024 11:39:23 +0900 Subject: [PATCH] Skip first 32 bytes of PlayresultData --- TaikoLocalServer/Controllers/Game/PlayResultController.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/TaikoLocalServer/Controllers/Game/PlayResultController.cs b/TaikoLocalServer/Controllers/Game/PlayResultController.cs index 5d7cb11..9e20687 100644 --- a/TaikoLocalServer/Controllers/Game/PlayResultController.cs +++ b/TaikoLocalServer/Controllers/Game/PlayResultController.cs @@ -36,7 +36,10 @@ public class PlayResultController : BaseController public async Task UploadPlayResult([FromBody] PlayResultRequest request) { Logger.LogInformation("PlayResult request : {Request}", request.Stringify()); - var decompressed = GZipBytesUtil.DecompressGZipBytes(request.PlayresultData); + + var truncated = request.PlayresultData.Skip(32).ToArray(); + + var decompressed = GZipBytesUtil.DecompressGZipBytes(truncated); var playResultData = Serializer.Deserialize(new ReadOnlySpan(decompressed));