| 52 | } |
| 53 | |
| 54 | void VersionFile::applyTo(LaunchProfile* profile, const RuntimeContext& runtimeContext) |
| 55 | { |
| 56 | // Only real Minecraft can set those. Don't let anything override them. |
| 57 | if (isMinecraftVersion(uid)) { |
| 58 | profile->applyMinecraftVersion(version); |
| 59 | profile->applyMinecraftVersionType(type); |
| 60 | // HACK: ignore assets from other version files than Minecraft |
| 61 | // workaround for stupid assets issue caused by amazon: |
| 62 | // https://www.theregister.co.uk/2017/02/28/aws_is_awol_as_s3_goes_haywire/ |
| 63 | profile->applyMinecraftAssets(mojangAssetIndex); |
| 64 | } |
| 65 | |
| 66 | profile->applyMainJar(mainJar); |
| 67 | profile->applyMainClass(mainClass); |
| 68 | profile->applyAppletClass(appletClass); |
| 69 | profile->applyMinecraftArguments(minecraftArguments); |
| 70 | profile->applyAddnJvmArguments(addnJvmArguments); |
| 71 | profile->applyTweakers(addTweakers); |
| 72 | profile->applyJarMods(jarMods); |
| 73 | profile->applyMods(mods); |
| 74 | profile->applyTraits(traits); |
| 75 | profile->applyCompatibleJavaMajors(compatibleJavaMajors); |
| 76 | profile->applyCompatibleJavaName(compatibleJavaName); |
| 77 | |
| 78 | for (auto library : libraries) { |
| 79 | profile->applyLibrary(library, runtimeContext); |
| 80 | } |
| 81 | for (auto mavenFile : mavenFiles) { |
| 82 | profile->applyMavenFile(mavenFile, runtimeContext); |
| 83 | } |
| 84 | for (auto agent : agents) { |
| 85 | profile->applyAgent(agent, runtimeContext); |
| 86 | } |
| 87 | profile->applyProblemSeverity(getProblemSeverity()); |
| 88 | } |
nothing calls this directly
no test coverage detected