moddable post-processing pipeline

This commit is contained in:
cody glassman 2022-05-13 18:58:00 -07:00
parent e7fb8b6fd8
commit 04843fed6d
130 changed files with 8645 additions and 608 deletions

View file

@ -105,6 +105,17 @@ namespace VFS
return {};
}
std::string Manager::getAbsoluteFileName(const std::string& name) const
{
std::string normalized = name;
normalize_path(normalized, mStrict);
std::map<std::string, File*>::const_iterator found = mIndex.find(normalized);
if (found == mIndex.end())
throw std::runtime_error("Resource '" + normalized + "' not found");
return found->second->getPath();
}
namespace
{
bool startsWith(std::string_view text, std::string_view start)