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

Method getMediaScrapPath

src/utility.cpp:25–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25std::string Utility::getMediaScrapPath(const c2d::Io::File &file) {
26 std::string hash = std::to_string(std::hash<std::string>()(file.path));
27 return c2d_renderer->getIo()->getDataPath() + "cache/" + hash + ".scrap";
28}
29
30std::string Utility::getMediaPosterPath(const c2d::Io::File &file) {
31 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