From 6756c850e76ca116571a136c53def5aeed573a0a Mon Sep 17 00:00:00 2001 From: Boondorl Date: Sat, 5 Jul 2025 16:54:51 -0400 Subject: [PATCH] Disable autoloading mods when playing online Any mods when hosting and joining should have to be explicitly labeled, this way extra mods aren't accidentally making their way into the lists. --- src/d_main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/d_main.cpp b/src/d_main.cpp index 52d3746b5..3f0ee70a0 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -2029,7 +2029,8 @@ static void AddAutoloadFiles(const char *autoname, std::vector& all } } - if (!(gameinfo.flags & GI_SHAREWARE) && !Args->CheckParm("-noautoload") && !disableautoload) + // Disable autoloading in netgames as we don't want people who are hosting/joining loading up random files. + if (!(gameinfo.flags & GI_SHAREWARE) && !Args->CheckParm("-noautoload") && !disableautoload && !Args->CheckParm("-host") && !Args->CheckParm("-join")) { FString file;