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

Method onMetadataEnsured

launcher/ui/dialogs/ModUpdateDialog.cpp:304–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304void ModUpdateDialog::onMetadataEnsured(Mod* mod)
305{
306 // When the mod is a folder, for instance
307 if (!mod->metadata() || !m_update_mods)
308 return;
309
310 switch (mod->metadata()->provider) {
311 case ModPlatform::Provider::MODRINTH:
312 m_modrinth_to_update.push_back(mod);
313 break;
314 case ModPlatform::Provider::FLAME:
315 m_flame_to_update.push_back(mod);
316 break;
317 }
318}
319
320ModPlatform::Provider next(ModPlatform::Provider p)
321{

Callers

nothing calls this directly

Calls 1

metadataMethod · 0.80

Tested by

no test coverage detected