| 89 | } |
| 90 | |
| 91 | bool TitleCatalog::nameById(std::string& dst, u64 id) |
| 92 | { |
| 93 | std::lock_guard<std::mutex> lock(mMutex); |
| 94 | for (const auto& title : mSaves) { |
| 95 | if (title.id() == id) { |
| 96 | dst = title.shortDescription(); |
| 97 | return true; |
| 98 | } |
| 99 | } |
| 100 | for (const auto& title : mExtdatas) { |
| 101 | if (title.id() == id) { |
| 102 | dst = title.shortDescription(); |
| 103 | return true; |
| 104 | } |
| 105 | } |
| 106 | return false; |
| 107 | } |
| 108 | |
| 109 | int TitleCatalog::indexById(u64 id, BackupKind kind) |
| 110 | { |