Skip to content

Commit 1729be4

Browse files
committed
fix size being added to updated gta5 json
1 parent ad7241c commit 1729be4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Json.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ internal static String Update(Photo photo, Size size, String json, out Int32 uid
9393
else {
9494
uid = uidValue.GetValue<Int32>();
9595
}
96+
jsonObject["sign"] = photo.Sign;
9697
if (photo.Format == PhotoFormat.RDR2) {
9798
jsonObject["width"] = size.Width;
9899
jsonObject["height"] = size.Height;
100+
jsonObject["size"] = photo.JpegSize;
99101
}
100-
jsonObject["sign"] = photo.Sign;
101-
jsonObject["size"] = photo.JpegSize;
102102
return jsonObject.ToJsonString(SerializerOptions);
103103
}
104104
catch (Exception exception) {

0 commit comments

Comments
 (0)