MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / CategoryName

Function CategoryName

apps/tools/Tools/commands/ScanCommand.cpp:57–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55};
56
57static const char* CategoryName(FileCategory cat)
58{
59 switch (cat)
60 {
61 case FileCategory::Model:
62 return "Model (.p3d)";
63 case FileCategory::Texture:
64 return "Texture (.paa/.pac/.dds)";
65 case FileCategory::Animation:
66 return "Animation (.rtm)";
67 case FileCategory::Terrain:
68 return "Terrain (.wrp)";
69 case FileCategory::Sound:
70 return "Sound (.wss/.ogg/.wav)";
71 case FileCategory::Pbo:
72 return "PBO archive";
73 case FileCategory::Font:
74 return "Font (.fxy)";
75 case FileCategory::Config:
76 return "Config (ParamFile)";
77 case FileCategory::Script:
78 return "Script (.sqs/.sqf)";
79 case FileCategory::LipSync:
80 return "LipSync (.lip)";
81 case FileCategory::Image:
82 return "Image (.jpg/.png/.bmp/.tga)";
83 case FileCategory::Document:
84 return "Document (.html/.txt/.csv)";
85 case FileCategory::Unknown:
86 return "Unknown";
87 }
88 return "Unknown";
89}
90
91static FileCategory CategorizeByExtension(const std::string& ext)
92{

Callers 1

RunScanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected