Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profiles 2: Electric Boogaloo #2535

Merged
merged 29 commits into from
Mar 21, 2022
Merged

Conversation

artdeell
Copy link
Member

This pull request adds support for Mojang's Launcher Profiles into the launcher, along with some features they carry.
Right now, it's mainly used just to do mergeability tracking, but it will be merged once its done.

artdeell and others added 18 commits November 30, 2021 20:57
The extraListener is now an interface

Co-authored-by: SerpentSpirale <mathiasboulay@free.fr>
 - Removed profiles fragment because Serpent begged me not to use viewpager
 - Progressed further with the profiles dialog, now it's actually usable
 - Now launcher doesn't have profile amnesia
 - More splitting of raw version selector and profile selector
 Bugs:
 - Saving profiles in the editor does nothing
 TODO:
 - Implement launching the game with selected profile
 - Replace "Unknown" version ID in profiles with mProfile.selectedVersion for ease of migration
- Added the ability create profiles
- Now the changes to profiles are immediately saved
- The game runs now
 - Add profile enabler-disabler
 - Change the lifecycle a bit
 - Fix: recreating PojavLauncherActivity causes crashes in Laun
 cherPreferences
Co-authored-by: SerpentSpirale <serpentspirale@gmail.com>
- Probably fix race condition when clearing the cache
- Unload unneeded launcher activity while in game
* Extended MCOptionUtils to support list values

* Mitigation for the Apache Log4j RCE in 1.8.x-1.18

Related issue: #2378

* Update JREUtils.java

Co-authored-by: SerpentSpirale <mathiasboulay@free.fr>
Co-authored-by: Duy Tran Khanh <40482367+khanhduytran0@users.noreply.github.com>
* Extended MCOptionUtils to support list values

* Mitigation for the Apache Log4j RCE in 1.8.x-1.18

Related issue: #2378

* Update JREUtils.java

* Completely fix Log4J RCE (1.7-1.16.5) (not yet tested)
#2378

* fix moment

* Fix a NullPointerException when launching ≤ 1.6.4

* Updated virgl vtest (arm64 only)

Experimental changes:
- HACK: explicitly set location for fsout_c0/1. this might not work, not tested
- Fix empty screen on OF + shader: caused by target fb/texture changed

* Trigger a texture creation, which then set VIRGL_TEXTURE_ID

* Replace sprintf with asprintf for auto allocation

* Update egl_bridge.c

* Updated vtest lib: fixes flipped screen

* CI: Update gl4es

* Updated vtest arm64: fixes black screen on <1.13(?)

Co-authored-by: SerpentSpirale <mathiasboulay@free.fr>
Co-authored-by: Duy Tran Khanh <40482367+khanhduytran0@users.noreply.github.com>
Co-authored-by: khanhduytran0 <khanhduytran0@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@users.noreply.github.com>
* add Arc capes DNS injector

* Bug fix: Arc DNS injector breaks on Java 17

Error:
Failed to inject cache!
java.lang.reflect.InaccessibleObjectException: Unable to make java.net.InetAddress$CachedAddresses(java.lang.String,java.net.InetAddress[],long) accessible: module java.base does not "opens java.net" to unnamed module @4157f54e

* Validate assets even if it’s fully downloaded (#2730)

* Update MinecraftDownloaderTask.java

Co-authored-by: Duy Tran Khanh <40482367+khanhduytran0@users.noreply.github.com>
@jtghph
Copy link
Contributor

jtghph commented Feb 24, 2022

profiles my beloved

artdeell and others added 4 commits March 17, 2022 17:48
- Force profiles, no more profiles on/off switch!
- (probably partially) Conventionalize all profile changes
- Rename most variables for the changes to look nice
- Squash a couple null checks
- Separate cache from adapter and change how it works
- Don't keep Context
…hods and sanitize the code according to serpent's recommendations
@DovydasTEDS
Copy link

Please add a customisable game directory

@artdeell artdeell merged commit d499fbc into v3_openjdk Mar 21, 2022
@Mathias-Boulay Mathias-Boulay deleted the profiles-2-electric-boogaloo branch June 14, 2023 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants