| 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 = {}; |
no outgoing calls
no test coverage detected