From b8bfd92061d59724e87b0a44c81e93656767dddd Mon Sep 17 00:00:00 2001 From: MysterD Date: Fri, 29 Apr 2022 21:35:10 -0700 Subject: [PATCH] Force frame limit to sane values --- src/pc/configfile.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pc/configfile.c b/src/pc/configfile.c index 128bb1f4..cf827e6a 100644 --- a/src/pc/configfile.c +++ b/src/pc/configfile.c @@ -468,6 +468,9 @@ NEXT_OPTION: fs_close(file); + if (configFrameLimit < 30) { configFrameLimit = 30; } + if (configFrameLimit > 3000) { configFrameLimit = 3000; } + #ifndef DISCORD_SDK configNetworkSystem = 1; #endif