coastline 0.0.4
Loading...
Searching...
No Matches
discformats.h
Go to the documentation of this file.
1#pragma once
2
3#include <algorithm>
4#include <array>
5#include <string_view>
6
7namespace coastline {
8
11 ".b5t",
12 ".b6i",
13 ".b6t",
14 ".bin",
15 ".bwi",
16 ".bws",
17 ".bwt",
18 ".ccd",
19 ".cdi",
20 ".cue",
21 ".img",
22 ".iso",
23 ".isz",
24 ".mdf",
25 ".mds",
26 ".nrg",
27 ".pdi",
28 ".sub"};
29
36constexpr bool IsDiscImageExtension(std::string_view extension) {
37 return std::ranges::contains(DISC_IMAGE_EXTENSIONS, extension);
38}
39
40} // namespace coastline
Definition assetimport.h:11
constexpr std::array< std::string_view, 19 > DISC_IMAGE_EXTENSIONS
Disc images, track metadata, and companion files accepted by the importer.
Definition discformats.h:10
constexpr bool IsDiscImageExtension(std::string_view extension)
Check a lower-case filename extension, including its initial dot.
Definition discformats.h:36