MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / addBase

Method addBase

launcher/net/HttpMetaCache.cpp:176–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176void HttpMetaCache::addBase(QString base, QString base_root)
177{
178 // TODO: report error
179 if (m_entries.contains(base))
180 return;
181
182 // TODO: check if the base path is valid
183 EntryMap foo;
184 foo.base_path = base_root;
185 m_entries[base] = foo;
186}
187
188auto HttpMetaCache::getBasePath(QString base) -> QString
189{

Callers 2

ApplicationMethod · 0.80
initTestCaseMethod · 0.80

Calls 1

containsMethod · 0.45

Tested by 1

initTestCaseMethod · 0.64