2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 20:27:43 +00:00

FRME and AGSC cooking fixes

This commit is contained in:
Jack Andersen
2017-01-20 16:38:34 -10:00
parent 04452ad919
commit 00247ca53e
3 changed files with 32 additions and 2 deletions

View File

@@ -239,6 +239,12 @@ bool ProjectResourceFactoryBase::AddFileToIndex(const hecl::ProjectPath& path,
DumpCacheAdd(pathTag, subPath);
#endif
}
else if (pathTag.type == SBIG('AGSC'))
{
/* Transform tag to glob */
pathTag = {SBIG('AGSC'), asGlob.hash().val32()};
useGlob = true;
}
/* Cache in-memory */
const hecl::ProjectPath& usePath = useGlob ? asGlob : path;
@@ -357,7 +363,7 @@ void ProjectResourceFactoryBase::BackgroundIndexProc()
std::string chLower = child.first;
std::transform(chLower.cbegin(), chLower.cend(), chLower.begin(), tolower);
m_catalogNameToTag[chLower] = search->first;
WriteNameTag(nameWriter, search->first, chLower);
WriteNameTag(nameWriter, search->first, child.first);
}
}
}