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

Method getMediaPosterPath

src/utility.cpp:30–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30std::string Utility::getMediaPosterPath(const c2d::Io::File &file) {
31 std::string hash = std::to_string(std::hash<std::string>()(file.path));
32 return c2d_renderer->getIo()->getDataPath() + "cache/" + hash + "-poster.jpg";
33}
34
35std::string Utility::getMediaBackdropPath(const c2d::Io::File &file) {
36 std::string hash = std::to_string(std::hash<std::string>()(file.path));

Callers

nothing calls this directly

Calls 2

to_stringFunction · 0.85
getDataPathMethod · 0.80

Tested by

no test coverage detected