libragephoto: add RDR 2 SignInitial
This commit is contained in:
parent
f1485be7a7
commit
3d9d632d7b
3 changed files with 4 additions and 0 deletions
|
@ -644,6 +644,8 @@ uint64_t RagePhoto::jpegSign(uint32_t photoFormat, RagePhotoData *rp_data)
|
||||||
{
|
{
|
||||||
if (photoFormat == PhotoFormat::GTA5)
|
if (photoFormat == PhotoFormat::GTA5)
|
||||||
return (0x100000000000000ULL | joaatFromInitial(rp_data->jpeg, rp_data->jpegSize, SignInitials::SIGTA5));
|
return (0x100000000000000ULL | joaatFromInitial(rp_data->jpeg, rp_data->jpegSize, SignInitials::SIGTA5));
|
||||||
|
else if (photoFormat == PhotoFormat::RDR2)
|
||||||
|
return (0x100000000000000ULL | joaatFromInitial(rp_data->jpeg, rp_data->jpegSize, SignInitials::SIRDR2));
|
||||||
else
|
else
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -95,6 +95,7 @@ public:
|
||||||
/** Sign Initials */
|
/** Sign Initials */
|
||||||
enum SignInitials : uint32_t {
|
enum SignInitials : uint32_t {
|
||||||
SIGTA5 = 0xE47AB81CUL, /**< GTA V Sign Initial */
|
SIGTA5 = 0xE47AB81CUL, /**< GTA V Sign Initial */
|
||||||
|
SIRDR2 = 0x00FEEB1EUL, /**< RDR 2 Sign Initial */
|
||||||
};
|
};
|
||||||
RagePhoto();
|
RagePhoto();
|
||||||
~RagePhoto();
|
~RagePhoto();
|
||||||
|
|
|
@ -95,6 +95,7 @@ public:
|
||||||
/** Sign Initials */
|
/** Sign Initials */
|
||||||
enum SignInitials : uint32_t {
|
enum SignInitials : uint32_t {
|
||||||
SIGTA5 = 0xE47AB81CUL, /**< GTA V Sign Initial */
|
SIGTA5 = 0xE47AB81CUL, /**< GTA V Sign Initial */
|
||||||
|
SIRDR2 = 0x00FEEB1EUL, /**< RDR 2 Sign Initial */
|
||||||
};
|
};
|
||||||
RagePhotoA() {
|
RagePhotoA() {
|
||||||
instance = ragephoto_open();
|
instance = ragephoto_open();
|
||||||
|
|
Loading…
Reference in a new issue