| 126 | return out; |
| 127 | } |
| 128 | |
| 129 | bool ModMatchesToken(const Mod& mod, const std::string& token) |
| 130 | { |
| 131 | const std::string key = LowerAscii(token); |
| 132 | if (LowerAscii(mod.id) == key) |
| 133 | return true; |
| 134 | if (!mod.catalogId.empty() && LowerAscii(mod.catalogId) == key) |
| 135 | return true; |
| 136 | return ModId(mod.id) == ModId(token) || (!mod.catalogId.empty() && ModId(mod.catalogId) == ModId(token)); |
| 137 | } |
| 138 | |
| 139 | std::string ResolveFromRootByMetadata(const std::filesystem::path& root, const std::string& token) |
no test coverage detected