From 06ec92deefb7e5b22bb3104a6f83adfee0543315 Mon Sep 17 00:00:00 2001 From: FutureRave Date: Wed, 23 Mar 2022 13:49:42 +0000 Subject: [PATCH] Make maxfps archive --- src/module/patches.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/module/patches.cpp b/src/module/patches.cpp index 2408de0..0318517 100644 --- a/src/module/patches.cpp +++ b/src/module/patches.cpp @@ -41,7 +41,7 @@ private: void patch_mp() const { - // Note: on SP it's already unlocked to 1000 + // Note: on SP the max value is already 1000 utils::hook(0x55411F, &dvar_register_com_max_fps, HOOK_CALL).install()->quick(); } @@ -63,9 +63,10 @@ private: } static const game::native::dvar_t* dvar_register_com_max_fps(const char* dvarName, int value, - int min, int /*max*/, unsigned __int16 flags, const char* description) + int min, int /*max*/, unsigned __int16 /*flags*/, const char* description) { - return game::native::Dvar_RegisterInt(dvarName, value, min, 1000, flags, description); + return game::native::Dvar_RegisterInt(dvarName, value, min, 1000, + game::native::dvar_flags::DVAR_ARCHIVE, description); } };