TiManGames / AmnesiaTheDarkDescent

GNU General Public License v3.0
30 stars 8 forks source link

Extra resource configs aren't properly added to resources #60

Open jkulawik opened 4 days ago

jkulawik commented 4 days ago

e.g. ExtraStaticObjectDir. This is only reportedly and needs testing. Same thing with the entity version of this, probably.

jkulawik commented 4 days ago

Code which might fix this:

/////////////////////////////////////////////////////////
// Add any extra dirs!
// static objects
for (int i = 0; i < (int)mvExtraSODirs.size(); ++i)
{
    const tWString& sExtraDir = mvExtraSODirs[i];
    mpDirHandler->AddLookUpDir(eDir_StaticObjects, sExtraDir, true);
}
// entities
for (int i = 0; i < (int)mvExtraEntDirs.size(); ++i)
{
    const tWString& sExtraDir = mvExtraEntDirs[i];
    mpDirHandler->AddLookUpDir(eDir_Entities, sExtraDir, true);
}