Skip to content

Commit be798d9

Browse files
committed
Merge branch 'master' into csharp-api
2 parents 331022b + 870f190 commit be798d9

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

src/mods/Graphics.cpp

+12
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,20 @@ bool Graphics::on_pre_gui_draw_element(REComponent* gui_element, void* primitive
396396
auto game_object = utility::re_component::get_game_object(gui_element);
397397
static auto letter_box_behavior_t = sdk::find_type_definition("app.LetterBoxBehavior");
398398
static auto letter_box_behavior_retype = letter_box_behavior_t != nullptr ? letter_box_behavior_t->get_type() : nullptr;
399+
static auto csmaskui_t = sdk::find_type_definition("app.solid.gui.CSMaskUI");
400+
static auto csmaskui_retype = csmaskui_t != nullptr ? csmaskui_t->get_type() : nullptr;
399401

400402
if (game_object != nullptr && game_object->transform != nullptr) {
403+
// Ultrawide for Dead Rising Deluxe Remaster
404+
if (csmaskui_retype != nullptr) {
405+
auto csmaskui = utility::re_component::find<REComponent*>(game_object->transform, csmaskui_retype);
406+
407+
if (csmaskui != nullptr) {
408+
game_object->shouldDraw = false;
409+
return false;
410+
}
411+
}
412+
401413
const auto name = utility::re_string::get_string(game_object->name);
402414
const auto name_hash = utility::hash(name);
403415

src/mods/Graphics.hpp

+8
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,15 @@ class Graphics : public Mod {
165165

166166
const ModToggle::Ptr m_ultrawide_fix{ ModToggle::create(generate_name("UltrawideFix"), false) };
167167
const ModToggle::Ptr m_ultrawide_vertical_fov{ ModToggle::create(generate_name("UltrawideFixVerticalFOV_V2"), false) };
168+
169+
// There is a trend with newer games where there actually is Ultrawide support, so we don't want to actually touch the FOV by default
170+
// And sometimes messing with the FOV causes permanent issues with the UI, so don't touch it by default
171+
#if TDB_VER >= 73
172+
const ModToggle::Ptr m_ultrawide_custom_fov{ModToggle::create(generate_name("UltrawideCustomFOV"), true)};
173+
#else
168174
const ModToggle::Ptr m_ultrawide_custom_fov{ModToggle::create(generate_name("UltrawideCustomFOV"), false)};
175+
#endif
176+
169177
const ModToggle::Ptr m_ultrawide_constrain_ui{ModToggle::create(generate_name("UltrawideConstrainUI"), false)};
170178
const ModToggle::Ptr m_ultrawide_constrain_child_ui{ModToggle::create(generate_name("UltrawideConstrainChildUI"), false)};
171179
const ModSlider::Ptr m_ultrawide_fov_multiplier{ ModSlider::create(generate_name("UltrawideFOVMultiplier_V2"), 0.01f, 3.0f, 1.0f) };

src/mods/IntegrityCheckBypass.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,11 @@ void IntegrityCheckBypass::disable_update_timers(std::string_view name) const {
302302
void IntegrityCheckBypass::ignore_application_entries() {
303303
Hooks::get()->ignore_application_entry(0x76b8100bec7c12c3);
304304
Hooks::get()->ignore_application_entry(0x9f63c0fc4eea6626);
305+
306+
#if TDB_VER >= 73
307+
Hooks::get()->ignore_application_entry(0x00c0ab9309584734);
308+
Hooks::get()->ignore_application_entry(0xa474f1d3a294e6a4);
309+
#endif
305310
}
306311

307312
void IntegrityCheckBypass::immediate_patch_re8() {

0 commit comments

Comments
 (0)