File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1423,6 +1423,8 @@ namespace detail {
1423
1423
#if TDB_VER >= 71
1424
1424
#if defined(SF6) || defined(DD2)
1425
1425
constexpr auto rtv_size = 0x98 ;
1426
+ #elif defined(MHRISE)
1427
+ constexpr auto rtv_size = 0x88 ;
1426
1428
#else
1427
1429
constexpr auto rtv_size = 0x98 - sizeof (void *);
1428
1430
#endif
@@ -1642,6 +1644,7 @@ RECamera* layer::Scene::get_main_camera_if_possible() const {
1642
1644
L" DefaultCamera" ,
1643
1645
L" Camera_mainmenu" ,
1644
1646
L" Camera_cp7mainmenu" ,
1647
+ L" SnowCamera" , // MHRise
1645
1648
};
1646
1649
1647
1650
for (const auto & camera_name : camera_names) {
Original file line number Diff line number Diff line change @@ -103,6 +103,8 @@ class Texture : public RenderResource {
103
103
// So because this discrepancy in SF6 is > 8 bytes (which is how much was added to RenderResource), trying to automate this
104
104
// is a bit trickier so we can look into this later, and just hardcode it for now.
105
105
static constexpr inline auto s_d3d12_resource_offset = 0xB8 ;
106
+ #elif defined(MHRISE)
107
+ static constexpr inline auto s_d3d12_resource_offset = 0x98 ; // WHAT THE HECK!!!
106
108
#else
107
109
static constexpr inline auto s_d3d12_resource_offset = 0xA0 ;
108
110
#endif
@@ -413,8 +415,12 @@ class PrepareOutput : public sdk::renderer::RenderLayer {
413
415
#if TDB_VER >= 73
414
416
static constexpr inline auto s_output_state_offset = 0x118 ;
415
417
#elif TDB_VER >= 71
418
+ #ifdef MHRISE
419
+ static constexpr inline auto s_output_state_offset = 0xF8 ;
420
+ #else
416
421
// verify for other games, this is for RE4
417
422
static constexpr inline auto s_output_state_offset = 0x108 ;
423
+ #endif
418
424
#elif TDB_VER >= 69
419
425
static constexpr inline auto s_output_state_offset = 0xF8 ;
420
426
#else
You can’t perform that action at this time.
0 commit comments