| 764 | } |
| 765 | |
| 766 | Asset* Content::GetAsset(const StringView& outputPath) |
| 767 | { |
| 768 | if (outputPath.IsEmpty()) |
| 769 | return nullptr; |
| 770 | PROFILE_CPU(); |
| 771 | ScopeLock lock(AssetsLocker); |
| 772 | for (auto i = Assets.Begin(); i.IsNotEnd(); ++i) |
| 773 | { |
| 774 | if (i->Value->GetPath() == outputPath) |
| 775 | { |
| 776 | return i->Value; |
| 777 | } |
| 778 | } |
| 779 | return nullptr; |
| 780 | } |
| 781 | |
| 782 | Asset* Content::GetAsset(const Guid& id) |
| 783 | { |
no test coverage detected