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

Method onUpdateSucceeded

launcher/minecraft/mod/ResourceFolderModel.cpp:281–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281void ResourceFolderModel::onUpdateSucceeded()
282{
283 auto update_results = static_cast<BasicFolderLoadTask*>(m_current_update_task.get())->result();
284
285 auto& new_resources = update_results->resources;
286
287#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
288 auto current_list = m_resources_index.keys();
289 QSet<QString> current_set(current_list.begin(), current_list.end());
290
291 auto new_list = new_resources.keys();
292 QSet<QString> new_set(new_list.begin(), new_list.end());
293#else
294 QSet<QString> current_set(m_resources_index.keys().toSet());
295 QSet<QString> new_set(new_resources.keys().toSet());
296#endif
297
298 applyUpdates(current_set, new_set, new_resources);
299}
300
301void ResourceFolderModel::onParseSucceeded(int ticket, QString resource_id)
302{

Callers

nothing calls this directly

Calls 4

beginMethod · 0.80
endMethod · 0.80
resultMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected