aboutsummaryrefslogtreecommitdiff
path: root/libraries/launcher/org
AgeCommit message (Collapse)Author
2022-11-08Try to improve consistencyTheKodeToad
- Makes code formatting more consistent with the C++ codebase. Probably removes some trailing whitespace. Maybe it would be best to commit an Eclipse or IntelliJ code format preferences file? - Removes obscure suppressions. I personally think it's better to only suppress warnings that javac complains about. Suppressing a lot of non-standardised warnings (many of them turned off by default even in IntelliJ) just creates needless clutter. - Fixes some trivial warnings instead of suppressing them. serialVersionUID is sort of stupid, but I'd rather mentally ignore it or just fix it if it's really that annoying. Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-11-08Fix license headerssolonovamax
- Update license headers in several files to remove multimc apache reference, when unneeded - LauncherFactory: we've entirely rewritten this class at this point, so it's fully under GPL code - Launcher: this interface contains zero logic, and only a single method named `launch`, so I doubt you can actually copyright that - LauncherProvider: same as above - ParseException, ParameterNotFoundException: same as above; this class contains almost no logic (And the logic that was added is under GPL) - ReflectionUtils, StringUtils: add license header - Everything else: modify the program name in the license header from "PolyMC - Minecraft Launcher" to "Prism Launcher" Signed-off-by: solonovamax <solonovamax@12oclockpoint.com>
2022-11-08More informative exceptions in entrypointsolonovamax
Signed-off-by: solonovamax <solonovamax@12oclockpoint.com>
2022-11-08Cleanup launcher classessolonovamax
Cleanup a bunch of the code in launcher classes - Migrate the majority of the reflection to ReflectionUtils - Decrease logic in AbstractLauncher - Add logging to launcher classes at FINE level - make mcParams in AbstractLauncher an immutable list to prevent runtime manipulation - StandardLauncher instead copies the list to modify it Signed-off-by: solonovamax <solonovamax@12oclockpoint.com>
2022-11-08Get rid of gross HashMap being used by `LauncherFactory` and instead use ↵solonovamax
*fancy* enum Signed-off-by: solonovamax <solonovamax@12oclockpoint.com>
2022-11-08Cleanup splitting string into a pairsolonovamax
Signed-off-by: solonovamax <solonovamax@12oclockpoint.com>
2022-11-08Make main staticTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me> Inline local variable Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-11-08Create launcher.impl.legacyTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-11-08Remove the need for LegacyUtilsTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-11-08Better variable namingTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-11-08Attempt to sort out copyright headersTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-11-08Fix formattingTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-11-08Cleanup EntryPoint codesolonovamax
- Don't return an int from listen(). An enum is preferred. - Make parseLine() static, and pass Parameters to it. Signed-off-by: solonovamax <solonovamax@12oclockpoint.com>
2022-11-08Code refactorssolonovamax
- Refactor LauncherFactory.LauncherProvider to LauncherFactory - Refactor all launcher related components to launcher package - some basic code cleanup - Rename all, allSafe -> getList and first, firstSafe -> getString - Rename Utils -> LegacyUtils Signed-off-by: solonovamax <solonovamax@12oclockpoint.com>
2022-11-08Get rid of singleton, and refactor LauncherFactory to be a static classsolonovamax
Signed-off-by: solonovamax <solonovamax@12oclockpoint.com>
2022-11-08Various tweaks to the Java component of the launcherTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-10-19RenameSamisafool
Signed-off-by: Samisafool <thenerdiestguy@gmail.com>
2022-09-18Merge pull request #903 from jopejoe1/demo-launchSefa Eyeoglu
2022-09-15fix: allow demo for older versionsflow
We were not propagating the '--demo' flag in the legacy launcher, unconditionally setting the 'demo' parameter to false. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-15fix: allow starting rd- versionsSefa Eyeoglu
Using `Collections.emptyList()` doesn't allow us to later append stuff into that list. Use an empty `ArrayList` instead. Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-09-05Revert "Move classpath definition into NewLaunch itself"Sefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-08-18refactor: move classpath definition into NewLaunch itselfSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-06-16fix: add classpath exception to launcher librarySefa Eyeoglu
Signed-off-by: icelimetea <fr3shtea@outlook.com>
2022-06-15refactor: rename NewLaunch packageSefa Eyeoglu
2022-05-14Refactor script parsingicelimetea
2022-05-14Fix the license headericelimetea
2022-05-13Add the license header to EntryPointicelimetea
2022-05-13Add the license header to LauncherFactoryicelimetea
2022-05-13Fix formattingicelimetea
2022-05-05Make line count check more lenienticelimetea
2022-05-05Fix typoicelimetea
2022-05-05Improve mpticket file parsing codeicelimetea
2022-05-03More minor fixesicelimetea
2022-05-03Fix method access modifiericelimetea
2022-05-03Use only Java 7 features (in order to deal with #515)icelimetea
2022-05-02Refactor some parts of NewLaunch (part 2)icelimetea
2022-04-25Clarify exception messagesicelimetea
2022-04-24Use java.util.logging instead of custom loggingicelimetea
2022-04-24Refactor some parts of NewLaunchicelimetea
2021-10-21NOISSUE continue debranding...Petr Mrázek
2021-05-22NOISSUE Make LauncherPart aware of server to joinJanrupf
2021-01-18NOISSUE Update Copyright YearAppleTheGolden
2019-01-16Update Copyright YearAppleTheGolden
2018-11-01GH-2238 fix issues with whitespace/newlines in folder and instance namesPetr Mrázek
2018-07-15NOISSUE tabs -> spacesPetr Mrázek
2018-02-11NOISSUE update copyright datesPetr Mrázek
2017-11-18Support for classic multiplayer via mpticketMinecraftZuriki
2017-10-29GH-2026 avoid using awt Dimension class to fix input issues on macOSPetr Mrázek
2017-10-29GH-2026 remove some macOS stuff from launcher part to fix input issues on 1.13Petr Mrázek
2017-09-27GH-1997 replace use of weird hacks with normal java argumentsPetr Mrázek
This affects classpath and java.library.path. The catch is that if the strings cannot be expressed in system codepage on Windows, it tries to use 8.3 paths.