allow change on horizontal safezone

This commit is contained in:
m 2021-04-15 10:13:24 -05:00 committed by GitHub
parent effa6c0e32
commit a6c94990dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -287,8 +287,9 @@ namespace patches
// some anti tamper thing that kills performance
dvars::override::Dvar_RegisterInt("dvl", 0, 0, 0, game::DVAR_FLAG_NONE);
// un-cheat and un-readonly safeArea_* & give dvars saved flags (WIP)
// look into: safeArea_adjusted_* always being set to 1?
// unlock safeArea_*
utils::hook::nop(0x140219F62, 5); // not allowing change on horizontal
//utils::hook::nop(0x140219F89, 5);
dvars::override::Dvar_RegisterFloat("safeArea_adjusted_horizontal", 1, 0, 1, game::DVAR_FLAG_SAVED);
dvars::override::Dvar_RegisterFloat("safeArea_adjusted_vertical", 1, 0, 1, game::DVAR_FLAG_SAVED);
dvars::override::Dvar_RegisterFloat("safeArea_horizontal", 1, 0, 1, game::DVAR_FLAG_SAVED);