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
This commit is contained in:
hendricks266 2014-09-30 03:53:14 +00:00
parent c3102f2c89
commit 45641db803

View file

@ -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);
}