From 45641db803b29b2d0f5f2246cdf18dcea28f0511 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Tue, 30 Sep 2014 03:53:14 +0000 Subject: [PATCH] Update the known locations of the addons in a Megaton installation. DONT_BUILD. git-svn-id: https://svn.eduke32.com/eduke32@4594 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/common.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/source/common.c b/polymer/eduke32/source/common.c index 2caf0336e..c9e066227 100644 --- a/polymer/eduke32/source/common.c +++ b/polymer/eduke32/source/common.c @@ -616,7 +616,13 @@ void G_AddSearchPaths(void) Bsnprintf(buf, sizeof(buf), "%s/gameroot", instpath); addsearchpath(buf); - Bsnprintf(buf, sizeof(buf), "%s/gameroot/addons", instpath); + Bsnprintf(buf, sizeof(buf), "%s/gameroot/addons/dc", instpath); + addsearchpath(buf); + + Bsnprintf(buf, sizeof(buf), "%s/gameroot/addons/nw", instpath); + addsearchpath(buf); + + Bsnprintf(buf, sizeof(buf), "%s/gameroot/addons/vacation", instpath); addsearchpath(buf); } @@ -636,7 +642,13 @@ void G_CleanupSearchPaths(void) Bsnprintf(buf, sizeof(buf), "%s/gameroot", instpath); removesearchpath(buf); - Bsnprintf(buf, sizeof(buf), "%s/gameroot/addons", instpath); + Bsnprintf(buf, sizeof(buf), "%s/gameroot/addons/dc", instpath); + removesearchpath(buf); + + Bsnprintf(buf, sizeof(buf), "%s/gameroot/addons/nw", instpath); + removesearchpath(buf); + + Bsnprintf(buf, sizeof(buf), "%s/gameroot/addons/vacation", instpath); removesearchpath(buf); }