un-cheat & un-readonly safeArea_* + save flags

This commit is contained in:
m 2021-04-15 06:19:07 -05:00 committed by GitHub
parent 4dbd9b4621
commit effa6c0e32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -286,6 +286,13 @@ 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?
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);
dvars::override::Dvar_RegisterFloat("safeArea_vertical", 1, 0, 1, game::DVAR_FLAG_SAVED);
}
static void patch_sp()