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

Method onUpdateSucceeded

launcher/minecraft/mod/ModFolderModel.cpp:253–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253void ModFolderModel::onUpdateSucceeded()
254{
255 auto update_results = static_cast<ModFolderLoadTask*>(m_current_update_task.get())->result();
256
257 auto& new_mods = update_results->mods;
258
259#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
260 auto current_list = m_resources_index.keys();
261 QSet<QString> current_set(current_list.begin(), current_list.end());
262
263 auto new_list = new_mods.keys();
264 QSet<QString> new_set(new_list.begin(), new_list.end());
265#else
266 QSet<QString> current_set(m_resources_index.keys().toSet());
267 QSet<QString> new_set(new_mods.keys().toSet());
268#endif
269
270 applyUpdates(current_set, new_set, new_mods);
271}
272
273void ModFolderModel::onParseSucceeded(int ticket, QString mod_id)
274{

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