| 55 | } |
| 56 | |
| 57 | std::shared_ptr<File> File::Load(const std::string& filePath) { |
| 58 | auto byteData = ByteData::FromPath(filePath); |
| 59 | if (byteData == nullptr) { |
| 60 | return nullptr; |
| 61 | } |
| 62 | return pag::File::Load(byteData->data(), byteData->length(), filePath); |
| 63 | } |
| 64 | |
| 65 | std::shared_ptr<File> File::Load(const void* bytes, size_t length, const std::string& filePath) { |
| 66 | auto file = FindFileByPath(filePath); |
nothing calls this directly
no test coverage detected