Make maxfps archive

This commit is contained in:
FutureRave 2022-03-23 13:49:42 +00:00
parent 0fd6597b71
commit 06ec92deef
No known key found for this signature in database
GPG Key ID: E883E2BC9657D955

View File

@ -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);
}
};