| 93 | #ifdef ENABLE_ARCHIVE |
| 94 | |
| 95 | SongPtr |
| 96 | Song::LoadFromArchive(ArchiveFile &archive, std::string_view name_utf8, |
| 97 | Directory &parent) noexcept |
| 98 | { |
| 99 | assert(!uri_has_scheme(name_utf8)); |
| 100 | assert(VerifyRelativePathUTF8(name_utf8)); |
| 101 | |
| 102 | auto song = std::make_unique<Song>(name_utf8, parent); |
| 103 | if (!song->UpdateFileInArchive(archive)) |
| 104 | return nullptr; |
| 105 | |
| 106 | return song; |
| 107 | } |
| 108 | |
| 109 | bool |
| 110 | Song::UpdateFileInArchive(ArchiveFile &archive) noexcept |
nothing calls this directly
no test coverage detected