diff --git a/reversing/dd2.genny b/reversing/dd2.genny index e15ac63b..85a8516b 100644 --- a/reversing/dd2.genny +++ b/reversing/dd2.genny @@ -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 }; } diff --git a/shared/sdk/Renderer.hpp b/shared/sdk/Renderer.hpp index 873be7b7..18da66c9 100644 --- a/shared/sdk/Renderer.hpp +++ b/shared/sdk/Renderer.hpp @@ -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