MCPcopy Create free account
hub / github.com/XorTroll/Goldleaf / FormatContentId

Function FormatContentId

Goldleaf/source/util/util_String.cpp:86–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 }
85
86 std::string FormatContentId(const NcmContentId &cnt_id) {
87 char cnt_id_str[FS_MAX_PATH] = {};
88 const auto lower = __bswap64(*(u64*)cnt_id.c);
89 const auto upper = __bswap64(*(u64*)(cnt_id.c + 0x8));
90 snprintf(cnt_id_str, sizeof(cnt_id_str), "%016lx%016lx", lower, upper);
91 return cnt_id_str;
92 }
93
94 NcmContentId GetContentId(const std::string &cnt_id_str) {
95 NcmContentId cnt_id = {};

Callers 5

PrepareInstallationMethod · 0.85
WriteContentsMethod · 0.85
ScanApplicationsFunction · 0.85
DisplayContentInfoMethod · 0.85
StartExportMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected