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 {
uid = uidValue.GetValue<Int32>();
}
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) {