From 782df794c8d26d0a0bc4dbd4a319fbce2e3fadb6 Mon Sep 17 00:00:00 2001 From: toaster Date: Fri, 4 Nov 2022 16:54:07 +0000 Subject: [PATCH] Use Partial Addfile for G_LoadDemoExtraFiles as well Still cope compared to the MP addfile codepath, but not the n^2 time cope of before. --- src/g_demo.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/g_demo.c b/src/g_demo.c index b5973eda8..e4257266e 100644 --- a/src/g_demo.c +++ b/src/g_demo.c @@ -2326,10 +2326,13 @@ static void G_LoadDemoExtraFiles(UINT8 **pp) } else { - P_AddWadFile(filename); + P_PartialAddWadFile(filename); } } } + + if (P_PartialAddGetStage() >= 0) + P_MultiSetupWadFiles(true); // in case any partial adds were done } static void G_SkipDemoExtraFiles(UINT8 **pp)