MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / ModMatchesToken

Function ModMatchesToken

engine/Poseidon/Core/ModCollection.cpp:128–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126 return out;
127}
128
129bool 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
139std::string ResolveFromRootByMetadata(const std::filesystem::path& root, const std::string& token)

Callers 1

FindMethod · 0.85

Calls 3

ModIdClass · 0.85
LowerAsciiFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected