| 38 | } |
| 39 | |
| 40 | SongPtr |
| 41 | Song::LoadFile(Storage &storage, std::string_view path_utf8, |
| 42 | const StorageFileInfo &info, Directory &parent) |
| 43 | { |
| 44 | assert(!uri_has_scheme(path_utf8)); |
| 45 | assert(VerifyRelativePathUTF8(path_utf8)); |
| 46 | |
| 47 | auto song = std::make_unique<Song>(path_utf8, parent); |
| 48 | if (!song->UpdateFile(storage, info)) |
| 49 | return nullptr; |
| 50 | |
| 51 | return song; |
| 52 | } |
| 53 | |
| 54 | #endif |
| 55 |
nothing calls this directly
no test coverage detected