Skip to content

Commit

Permalink
VR (DD2): Fix output state offset
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Jul 21, 2024
1 parent 838cb85 commit fb81517
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion reversing/dd2.genny
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,7 @@ struct Scene : via.render.RenderLayer 0x1AC0 {
};

struct PrepareOutput : via.render.RenderLayer 0x1000 {
via.render.TargetState* output_state @ 0x108
via.render.TargetState* output_state @ 0x118
};
}

Expand Down
5 changes: 4 additions & 1 deletion shared/sdk/Renderer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,10 @@ class PrepareOutput : public sdk::renderer::RenderLayer {
}

private:
#if TDB_VER >= 71
// Man I REALLY need a way of automatically finding this.
#if TDB_VER >= 73
static constexpr inline auto s_output_state_offset = 0x118;
#elif TDB_VER >= 71
// verify for other games, this is for RE4
static constexpr inline auto s_output_state_offset = 0x108;
#elif TDB_VER >= 69
Expand Down

0 comments on commit fb81517

Please sign in to comment.