From 9ce87671c7db2f261e12378c1d38449d8faa137f 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 0fbd920c6..f602e2752 100644 --- a/src/g_demo.c +++ b/src/g_demo.c @@ -2294,10 +2294,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)