diff options
author | TheKodeToad <TheKodeToad@proton.me> | 2022-10-24 18:21:26 +0100 |
---|---|---|
committer | TheKodeToad <TheKodeToad@proton.me> | 2022-11-08 16:24:55 +0000 |
commit | e68dcea6bcb5830659d17db40fc9a83a4eca9cc0 (patch) | |
tree | 9684169f7752919d05a70445abd1ec0b4e9dde7a /launcher/minecraft/MinecraftInstance.cpp | |
parent | e4e0c27e1c8317b7287a84dc24b274674c359615 (diff) | |
download | PrismLauncher-e68dcea6bcb5830659d17db40fc9a83a4eca9cc0.tar.gz PrismLauncher-e68dcea6bcb5830659d17db40fc9a83a4eca9cc0.tar.bz2 PrismLauncher-e68dcea6bcb5830659d17db40fc9a83a4eca9cc0.zip |
Various tweaks to the Java component of the launcher
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Diffstat (limited to 'launcher/minecraft/MinecraftInstance.cpp')
-rw-r--r-- | launcher/minecraft/MinecraftInstance.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/launcher/minecraft/MinecraftInstance.cpp b/launcher/minecraft/MinecraftInstance.cpp index 3a820951..5a5245ed 100644 --- a/launcher/minecraft/MinecraftInstance.cpp +++ b/launcher/minecraft/MinecraftInstance.cpp @@ -3,6 +3,7 @@ * PolyMC - Minecraft Launcher * Copyright (C) 2022 Sefa Eyeoglu <contact@scrumplex.net> * Copyright (C) 2022 Jamie Mansfield <jmansfield@cadixdev.org> + * Copyright (C) 2022 TheKodeToad <TheKodeToad@proton.me> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -647,7 +648,17 @@ QString MinecraftInstance::createLaunchScript(AuthSessionPtr session, MinecraftS { launchScript += "traits " + trait + "\n"; } - launchScript += "launcher onesix\n"; + + launchScript += "launcher "; + + // use legacy launcher if the traits are set + if (profile->getTraits().contains("legacyLaunch") || profile->getTraits().contains("alphaLaunch")) + launchScript += "legacy"; + else + launchScript += "standard"; + + launchScript += "\n"; + // qDebug() << "Generated launch script:" << launchScript; return launchScript; } |