mirror of
https://github.com/Syping/ragephoto-cli.git
synced 2025-12-04 16:51:48 +01:00
fix size being added to updated gta5 json
This commit is contained in:
parent
ad7241c60f
commit
1729be49e3
1 changed files with 2 additions and 2 deletions
4
Json.cs
4
Json.cs
|
|
@ -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["sign"] = photo.Sign;
|
||||
jsonObject["size"] = photo.JpegSize;
|
||||
}
|
||||
return jsonObject.ToJsonString(SerializerOptions);
|
||||
}
|
||||
catch (Exception exception) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue