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

Method extraArguments

launcher/minecraft/MinecraftInstance.cpp:362–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360}
361
362QStringList MinecraftInstance::extraArguments()
363{
364 auto list = BaseInstance::extraArguments();
365 auto version = getPackProfile();
366 if (!version)
367 return list;
368 auto jarMods = getJarMods();
369 if (!jarMods.isEmpty())
370 {
371 list.append({"-Dfml.ignoreInvalidMinecraftCertificates=true",
372 "-Dfml.ignorePatchDiscrepancies=true"});
373 }
374 auto addn = m_components->getProfile()->getAddnJvmArguments();
375 if (!addn.isEmpty()) {
376 list.append(addn);
377 }
378 auto agents = m_components->getProfile()->getAgents();
379 for (auto agent : agents)
380 {
381 QStringList jar, temp1, temp2, temp3;
382 agent->library()->getApplicableFiles(runtimeContext(), jar, temp1, temp2, temp3, getLocalLibraryPath());
383 list.append("-javaagent:"+jar[0]+(agent->argument().isEmpty() ? "" : "="+agent->argument()));
384 }
385 return list;
386}
387
388QStringList MinecraftInstance::javaArguments()
389{

Callers

nothing calls this directly

Calls 6

isEmptyMethod · 0.80
appendMethod · 0.80
getProfileMethod · 0.80
getApplicableFilesMethod · 0.80
libraryMethod · 0.80
argumentMethod · 0.80

Tested by

no test coverage detected