fix size being added to updated gta5 json

This commit is contained in:
Syping 2025-11-23 04:00:29 +01:00
parent ad7241c60f
commit 1729be49e3

View file

@ -93,12 +93,12 @@ internal class Json {
else { else {
uid = uidValue.GetValue<Int32>(); uid = uidValue.GetValue<Int32>();
} }
jsonObject["sign"] = photo.Sign;
if (photo.Format == PhotoFormat.RDR2) { if (photo.Format == PhotoFormat.RDR2) {
jsonObject["width"] = size.Width; jsonObject["width"] = size.Width;
jsonObject["height"] = size.Height; jsonObject["height"] = size.Height;
}
jsonObject["sign"] = photo.Sign;
jsonObject["size"] = photo.JpegSize; jsonObject["size"] = photo.JpegSize;
}
return jsonObject.ToJsonString(SerializerOptions); return jsonObject.ToJsonString(SerializerOptions);
} }
catch (Exception exception) { catch (Exception exception) {