| 514 | } |
| 515 | |
| 516 | std::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 | |
| 529 | FileReader * ScriptExtender::OnFileReaderCreate(FileReader::CtorProc* next, FileReader * self, Path const& path, unsigned int type, unsigned int unknown) |
| 530 | { |