MCPcopy Create free account
hub / github.com/ElyPrismLauncher/Launcher / getPages

Method getPages

launcher/ui/dialogs/ResourceDownloadDialog.cpp:289–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289QList<BasePage*> ModDownloadDialog::getPages()
290{
291 QList<BasePage*> pages;
292
293 auto loaders = static_cast<MinecraftInstance*>(m_instance)->getPackProfile()->getSupportedModLoaders().value();
294
295 if (ModrinthAPI::validateModLoaders(loaders))
296 pages.append(ModrinthModPage::create(this, *m_instance));
297 if (APPLICATION->capabilities() & Application::SupportsFlame && FlameAPI::validateModLoaders(loaders))
298 pages.append(FlameModPage::create(this, *m_instance));
299
300 return pages;
301}
302
303GetModDependenciesTask::Ptr ModDownloadDialog::getModDependenciesTask()
304{

Callers 4

confirmMethod · 0.45
removeResourceMethod · 0.45
setButtonStatusMethod · 0.45
getTasksMethod · 0.45

Calls 6

createFunction · 0.85
valueMethod · 0.80
getPackProfileMethod · 0.80
appendMethod · 0.80
capabilitiesMethod · 0.80

Tested by

no test coverage detected