MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / nameFromType

Function nameFromType

pcsx2/CDVD/InputIsoFile.cpp:21–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19#include "fmt/format.h"
20
21static 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
40static std::unique_ptr<ThreadedFileReader> GetFileReader(const std::string& path)
41{

Callers 1

OpenMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected