MCPcopy Create free account
hub / github.com/Norbyte/bg3se / GetPathOverride

Method GetPathOverride

BG3Extender/Extender/ScriptExtender.cpp:516–527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

514}
515
516std::optional<STDString> ScriptExtender::GetPathOverride(STDString const & path)
517{
518 auto absolutePath = GetStaticSymbols().ToPath(path, PathRootType::Data);
519
520 std::unique_lock lock(pathOverrideMutex_);
521 auto it = pathOverrides_.find(absolutePath);
522 if (it != pathOverrides_.end()) {
523 return it->second;
524 } else {
525 return {};
526 }
527}
528
529FileReader * ScriptExtender::OnFileReaderCreate(FileReader::CtorProc* next, FileReader * self, Path const& path, unsigned int type, unsigned int unknown)
530{

Callers

nothing calls this directly

Calls 3

ToPathMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected