| 360 | } |
| 361 | |
| 362 | QStringList 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 | |
| 388 | QStringList MinecraftInstance::javaArguments() |
| 389 | { |
nothing calls this directly
no test coverage detected