| 88 | int titleCount(void) override { return (int)TitleCatalog::get().getTitleCount(g_currentUId); } |
| 89 | |
| 90 | bool titleAt(int idx, HostTitle& out) override |
| 91 | { |
| 92 | if (idx < 0 || idx >= titleCount()) { |
| 93 | return false; |
| 94 | } |
| 95 | Title title; |
| 96 | TitleCatalog::get().getTitle(title, g_currentUId, (size_t)idx); |
| 97 | out.id = title.id(); |
| 98 | out.name = title.displayName(); |
| 99 | // Every catalog entry on Switch *is* an installed save. |
| 100 | out.hasSave = true; |
| 101 | return true; |
| 102 | } |
| 103 | |
| 104 | int titleIndexOf(uint64_t id) override { return TitleCatalog::get().indexById(g_currentUId, (u64)id); } |
| 105 |
nothing calls this directly
no test coverage detected