Skip to content

Commit

Permalink
DD2: Fix RenderContext::alloc scan
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Mar 13, 2024
1 parent dd6aa13 commit da51667
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions shared/sdk/Renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ sdk::renderer::command::Base* RenderContext::alloc(uint32_t t, uint32_t size) {
spdlog::info("Searching for RenderContext::alloc");

const auto game = utility::get_executable();
const auto scan_result = utility::scan(game, "48 8b d9 44 8d 42 38 e8 ? ? ? ?");
const auto scan_result = utility::scan(game, "48 8b ? 44 8d 42 38 e8 ? ? ? ?");

if (!scan_result) {
spdlog::error("Failed to find RenderContext::alloc");
Expand Down Expand Up @@ -1129,8 +1129,8 @@ sdk::intrusive_ptr<RenderTargetView> RenderTargetView::clone(uint32_t new_width,
}

namespace detail {
#if TDB_VER == 71
#ifdef SF6
#if TDB_VER >= 71
#if defined(SF6) || defined(DD2)
constexpr auto rtv_size = 0x98;
#else
constexpr auto rtv_size = 0x98 - sizeof(void*);
Expand Down

0 comments on commit da51667

Please sign in to comment.