aboutsummaryrefslogtreecommitdiff
path: root/libraries
AgeCommit message (Collapse)Author
2022-11-08Fix WrongMethodTypeException. Invoke exact don't work like thatTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-11-08Less needless verbosity, and return fallbackTheKodeToad
Needlessly verbose commit message ik. Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
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-08Excessive safetyTheKodeToad
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-08Code cleanup to net.minecraft.Launchersolonovamax
No code logic has been changed, only: - add @Override annotatons - change setVisible(boolean b) -> setVisible(boolean visible) - Change block commend on class -> javadoc comment Signed-off-by: solonovamax <solonovamax@12oclockpoint.com>
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-22Change old style cast to C++ castBensuperpc
Change old style cast to C++ cast Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
2022-10-19RenameSamisafool
Signed-off-by: Samisafool <thenerdiestguy@gmail.com>
2022-10-15fix: remove some unused libsDioEgizio
Signed-off-by: DioEgizio <83089242+DioEgizio@users.noreply.github.com>
2022-10-14feat: add gulrak/filesystem submoduleflow
... for old macs that don't have std::filesystem in their stdlib. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-10-08Merge pull request #1033 from Scrumplex/multi-arch-supportSefa Eyeoglu
2022-09-26fix: pin tomlplusplus to latest releaseSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-09-24Replaced tomlc99 with tomlplusplusTrial97
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2022-09-20refactor: drop 64-bit checkSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
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-31Merge pull request #1067 from Scrumplex/classpath-epicnessflow
Move classpath definition into NewLaunch itself
2022-08-28Merge pull request #965 from flowln/fat_files_in_memorySefa Eyeoglu
Refactor a bit EnsureMetadataTask and calculate hashes in a incremental manner
2022-08-19fix(COPYING): fix COPYING.md by adding some missing copyright noticesDioEgizio
Signed-off-by: DioEgizio <83089242+DioEgizio@users.noreply.github.com>
2022-08-18refactor: move classpath definition into NewLaunch itselfSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-08-06chore(markdown): MD001 Heading levels should only increment by one level at ↵txtsd
a time Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
2022-08-06chore(markdown): MD037 Spaces inside emphasis markerstxtsd
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
2022-08-06chore(markdown): MD010 Hard tabstxtsd
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
2022-08-06chore(markdown): MD031 Fenced code blocks should be surrounded by blank linestxtsd
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
2022-08-06chore(markdown): MD032 Lists should be surrounded by blank linestxtsd
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
2022-08-06chore(markdown): MD009 Trailing spacestxtsd
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
2022-08-06chore(markdown): MD007 Unordered list indentationtxtsd
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
2022-08-06chore(markdown): MD025 Multiple top-level headings in the same documenttxtsd
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
2022-08-06chore(markdown): MD040 Fenced code blocks should have a language specifiedtxtsd
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
2022-08-06chore(markdown): MD012 Multiple consecutive blank linestxtsd
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
2022-08-06chore(markdown): MD022 Headings should be surrounded by blank linestxtsd
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
2022-08-01fix: remove iconfix from libraries/README.MDDioEgizio
someone forgor (💀) to remove it Signed-off-by: DioEgizio <83089242+DioEgizio@users.noreply.github.com>
2022-07-24change(libs): use a 4MiB buffer by default in murmur2 hashingflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-24feat(libs): add incremental version of murmurhash2 calculationflow
This does two passes for a given file, which is kinda slow, but I don't know how else to get the size excluding the filtered ones :< Signed-off-by: flow <flowlnlnln@gmail.com>