MCPcopy Create free account
hub / github.com/Cpasjuste/pplay / getMediaBackdropPath

Method getMediaBackdropPath

src/utility.cpp:35–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35std::string Utility::getMediaBackdropPath(const c2d::Io::File &file) {
36 std::string hash = std::to_string(std::hash<std::string>()(file.path));
37 return c2d_renderer->getIo()->getDataPath() + "cache/" + hash + "-backdrop.jpg";
38}
39
40std::vector<std::string> Utility::getMediaExtensions() {
41 return {

Callers

nothing calls this directly

Calls 2

to_stringFunction · 0.85
getDataPathMethod · 0.80

Tested by

no test coverage detected