mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
moddable post-processing pipeline
This commit is contained in:
parent
e7fb8b6fd8
commit
04843fed6d
130 changed files with 8645 additions and 608 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue