Skip to content

Commit

Permalink
1.60
Browse files Browse the repository at this point in the history
  • Loading branch information
Yamashi committed Sep 6, 2022
1 parent afebe5f commit f1401d6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Image.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ struct Image

static std::tuple<uint32_t, uint16_t> GetSupportedVersion() noexcept
{
return std::make_tuple(1, 52);
return std::make_tuple(1, 60);
}

static uint64_t MakeVersion(uint32_t aMajor, uint16_t aMinor) noexcept
Expand Down
2 changes: 1 addition & 1 deletion src/reverse/Addresses.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ constexpr uintptr_t CPhotoMode_SetRecordID = 0x142DBB7E0 - ImageBase; // 48 8B C
#pragma endregion

#pragma region CRenderGlobal
constexpr uintptr_t CRenderGlobal_InstanceOffset = 0x143BAACEE - ImageBase; // 49 8B 95 ? ? ? ? 48 8D 44 24 30 0F 57 C0, expected: 1, index: 0, offset: 3
constexpr uintptr_t CRenderGlobal_InstanceOffset = 0x144DD6FB0 - ImageBase; // 49 8B 95 ? ? ? ? 48 8D 44 24 30 0F 57 C0, expected: 1, index: 0, offset: 3
constexpr uintptr_t CRenderGlobal__DoNotUse_RenderQueueOffset = 0x151F68149 - ImageBase; // 49 39 29 0F 84 ? ? ? ? 41 39 69 24 0F 84 ? ? ? ? 49 8B 95, expected: 1, index: 0, offset: 0
constexpr uintptr_t CRenderGlobal_Resize = 0x142CDCA30 - ImageBase; // 44 88 4C 24 20 44 89 44 24 18 89 54 24 10 89 4C, expected: 1, index: 0
#pragma endregion
Expand Down
12 changes: 6 additions & 6 deletions src/reverse/RenderContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ struct RenderContext
struct Device
{
IDXGISwapChain* pSwapChain;
uint8_t pad8[0xB8 - 0x8];
uint8_t pad8[0x90 - 0x8];
};

RenderContext() = delete;
Expand All @@ -15,13 +15,13 @@ struct RenderContext

uint8_t pad0[0xC97F38];
Device devices[0x30]; // Count unknown, it is at least 0x20
uint8_t pad[0xED69C0 - 0xC9A1B8];
uint8_t pad[0xED64C0 - (0xC97F38 + sizeof(devices))];
void* unkED69C0; // Some pointer, might be related to d3d12on7, I have never seen it being anything other than null
uint8_t padED69C8[0x10];
ID3D12CommandQueue* pDirectQueue; // 0ED69D8
ID3D12CommandQueue* pDirectQueue; // ED64D8
};

static_assert(sizeof(RenderContext::Device) == 0xB8);
static_assert(sizeof(RenderContext::Device) == 0x90);
static_assert(offsetof(RenderContext, devices) == 0xC97F38);
static_assert(offsetof(RenderContext, unkED69C0) == 0xED69C0);
static_assert(offsetof(RenderContext, pDirectQueue) == 0xED69D8);
static_assert(offsetof(RenderContext, unkED69C0) == 0xED64C0);
static_assert(offsetof(RenderContext, pDirectQueue) == 0xED64D8);
2 changes: 1 addition & 1 deletion vendor/RED4ext.SDK

0 comments on commit f1401d6

Please sign in to comment.