| 19 | #include "fmt/format.h" |
| 20 | |
| 21 | static const char* nameFromType(int type) |
| 22 | { |
| 23 | switch (type) |
| 24 | { |
| 25 | case ISOTYPE_CD: |
| 26 | return "CD"; |
| 27 | case ISOTYPE_DVD: |
| 28 | return "DVD"; |
| 29 | case ISOTYPE_AUDIO: |
| 30 | return "Audio CD"; |
| 31 | case ISOTYPE_DVDDL: |
| 32 | return "DVD9 (dual-layer)"; |
| 33 | case ISOTYPE_ILLEGAL: |
| 34 | return "Illegal media"; |
| 35 | default: |
| 36 | return "Unknown or corrupt"; |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | static std::unique_ptr<ThreadedFileReader> GetFileReader(const std::string& path) |
| 41 | { |