From 1729be49e33d12a472992a0d6ffd7cbe24631dfe Mon Sep 17 00:00:00 2001 From: Syping Date: Sun, 23 Nov 2025 04:00:29 +0100 Subject: [PATCH] fix size being added to updated gta5 json --- Json.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Json.cs b/Json.cs index c6c88cf..4f8f9e9 100644 --- a/Json.cs +++ b/Json.cs @@ -93,12 +93,12 @@ internal class Json { else { uid = uidValue.GetValue(); } + jsonObject["sign"] = photo.Sign; if (photo.Format == PhotoFormat.RDR2) { jsonObject["width"] = size.Width; jsonObject["height"] = size.Height; + jsonObject["size"] = photo.JpegSize; } - jsonObject["sign"] = photo.Sign; - jsonObject["size"] = photo.JpegSize; return jsonObject.ToJsonString(SerializerOptions); } catch (Exception exception) {