* returns the file path stripped of any /tune_xxx.* subtune suffix * and the track number (or 1 if no "tune_xxx" suffix is present). */
| 162 | * and the track number (or 1 if no "tune_xxx" suffix is present). |
| 163 | */ |
| 164 | [[gnu::pure]] |
| 165 | static SidplayContainerPath |
| 166 | ParseContainerPath(Path path_fs) noexcept |
| 167 | { |
| 168 | const NarrowPath base = NarrowPath(path_fs.GetBase()); |
| 169 | unsigned track; |
| 170 | if (!base || (track = ParseSubtuneName(base)) < 1) |
| 171 | return { AllocatedPath(path_fs), 1 }; |
| 172 | |
| 173 | return { path_fs.GetDirectoryName(), track }; |
| 174 | } |
| 175 | |
| 176 | [[gnu::pure]] |
| 177 | static SignedSongTime |
no test coverage detected