Commit Graph

7383 Commits

Author SHA1 Message Date
alexytomi
655c0b7b7d regression: caciocavallo17 only worked on java 25
Accidentally forgot to change target to 17
2026-02-13 12:00:43 +08:00
alexytomi
d94652753b Merge pull request #174 from AngelAuraMC/fix/cacio-java-25 2026-02-12 10:51:12 +08:00
Jokypond
aa62808b80 fix: Wiki links in-app and README 2026-02-12 10:50:40 +08:00
alexytomi
829d67d6d9 add: Java 25 from FCL 2026-02-12 10:35:39 +08:00
alexytomi
fed089040b fix: Workaround windows command-line length limit 2026-02-12 10:17:08 +08:00
SirDank
9fbdacd725 Add externalNativeBuild configuration for NDK
Signed-off-by: SirDank <52797753+SirDank@users.noreply.github.com>
2026-01-23 02:15:55 +05:30
alexytomi
6c84835fc9 fix: Java 25 Crash
Cacio doesn't work on java 25 in mainline. We cherry pick
71a93cd59f.

The jars were built in
https://github.com/AngelAuraMC/caciocavallo17/actions/runs/21113828819
2026-01-18 23:10:48 +08:00
alexytomi
5a797bfe61 Merge pull request #155 from AngelAuraMC/feat/import-modpack
Add functionality to import modpacks
2025-12-30 17:23:03 +08:00
alexytomi
39d04f3c49 Merge pull request #161 from AngelAuraMC/feat/kopper_zink
fix: OneUI rendering issues with Turnip by turning off UBWC
2025-12-30 17:19:01 +08:00
alexytomi
444919cb82 Merge pull request #165 from AngelAuraMC/fix/autorendererselect
Fix JVM args edgecase and misjudged autorenderer selector
2025-12-30 02:12:23 +08:00
alexytomi
9cdd425e85 fix: JVM arguments getting newlines inside it when pasting
When you paste a string with newlines in it, it literally puts newlines
here, then parsing it goes all wonky because of that.

Never trust user input
2025-12-30 01:34:05 +08:00
alexytomi
c3b671c417 fix: Update renderer autoselect
New behavior is as follows.
If below 1.17, use the GL4ES based renderer.
If below 1.17 and modded, use the Mesa renderer (Zink in this case).
If above 1.17 and/or modded, use MobileGlues.
2025-12-30 01:34:04 +08:00
alexytomi
e9728b87df Merge pull request #164 from alexytomi/add/sodium-warning
add: Sodium warning to log
2025-12-29 04:20:49 +08:00
alexytomi
5a304256f5 add: Sodium warning to log 2025-12-29 03:48:21 +08:00
alexytomi
7909646ef4 fix: OneUI rendering issues with Turnip by turning off UBWC
I believe we don't have any reason to be concerned about RAM bandwidth
limitations. This isn't the N64, and Minecraft is a pixelated game.
2025-12-29 03:03:22 +08:00
alexytomi
b134986aaf refactor: NeoForgeDownloadTask to one constructor
Simplifies to one constructor. We don't need to copy the approach of
forge because neoforge integrates the minecraft version into their
version scheme, thus we have no use for the minecraft version provided
to us.
2025-12-29 03:03:16 +08:00
alexytomi
e4ce830f66 fix: Neoforge not installing on modpack install
Also reworks the neoforge profile install to use neoforge maven
https://maven.neoforged.net/releases/net/neoforged/neoforge/maven-metadata.xml

This is away from using prism's jsons
https://meta.prismlauncher.org/v1/net.neoforged/index.json

This is because prism still has 1.20.1 listed, and we can't really run
those. We could have ran with prism for the profile select but that
would be even more confusing.
2025-12-29 03:03:16 +08:00
alexytomi
ee1596cbd8 fix: Neoforge not creating instances on modpack install 2025-12-29 03:03:16 +08:00
alexytomi
d20a20b57f fix: Fix crash report text from Pojav to Amethyst
the rebranding should really have been done far earlier. oh well, we're
gonna roll with it
2025-12-29 03:03:16 +08:00
alexytomi
6f75934b01 fix: workaround android 7 crash with Hex.encodeHexString
For some reason it keeps trying to use the system apache commons instead
of the one in the app, and because that one is really old, this method
is missing so it crashes.

Crash report
 - Time: 26-Dec-2025 6:46:49 PM
 - Device: lineage_Hol-U19 Hol-U19
 - Android version: 7.1.2
 - Crash stack trace:
 - Launcher version:
amethyst-legacy-20251226-c798f65-feat/import-modpack
java.lang.NoSuchMethodError: No static method
encodeHexString([B)Ljava/lang/String; in class
Lorg/apache/commons/codec/binary/Hex; or its super classes (declaration
of 'org.apache.commons.codec.binary.Hex' appears in
/system/framework/org.apache.http.legacy.boot.jar)
2025-12-29 03:03:16 +08:00
alexytomi
3a5fb8bff4 fix: Properly show error for incorrect file
It was crashing the launcher before, now it shows it in a box
2025-12-29 03:03:16 +08:00
alexytomi
cca5cc63de fix: Fix mimetype issues with stock android not matching .mrpack
We want to be able to grey out files that are not .zip or .mrpack  so
people can have an easier chance of seeing their modpacks. To do this,
we match the `application/x-modrinth-modpack+zip` and `application/zip`
mimetypes as prescribed in the Modrinth documentation
https://support.modrinth.com/en/articles/8802351-modrinth-modpack-format-mrpack.

Stock android does not have `application/x-modrinth-modpack+zip`. OEM
vendors seem to include this in their ROMs, possibly from just using
https://gitlab.freedesktop.org/xdg/shared-mime-info as part of where
they source their additional mimetypes from.

There's a tendency for Android 12 and below to not have the
`application/x-modrinth-modpack+zip` mimetype, likely due to the
addition of it being relatively recent, so we have to account for that
by also adding `application/octet-stream`.

We cannot only have `application/octet-stream` or else it fails to match
.mrpack in systems that have `application/x-modrinth-modpack+zip`.

Sadly there seems to be no reliable way to check whether or the the ROM
has the `application/x-modrinth-modpack+zip` mimetype so we just match
it along with `application/octet-stream` to cover our bases.
2025-12-29 03:03:16 +08:00
alexytomi
531df2978d Add functionality to import modpacks
Lets you import modpacks from mrpacks and zips
2025-12-29 03:03:16 +08:00
alexytomi
cfec6474e3 Merge pull request #162 from alexytomi/add/sodium-warning
Update sodium warning and switch
2025-12-28 18:20:53 +08:00
alexytomi
4125ae0fb5 rework: Sodium warning message
Now makes you wait some time to properly read everything.
2025-12-28 18:14:07 +08:00
alexytomi
e2efd00ffb add: Delete Sodium and dependents button in Sodium warning 2025-12-28 14:45:07 +08:00
alexytomi
037396540a fix: negative numbers not being typable 2025-12-28 14:41:42 +08:00
alexytomi
fe2fcdb5e6 Merge pull request #148 from alexytomi/add/sodium-warning
add: Sodium warning
2025-12-25 23:35:34 +08:00
alexytomi
18cf77efbe add: Sodium warning
Should now let sodium launch but display a warning
2025-12-25 23:32:51 +08:00
alexytomi
38177e54a1 Merge pull request #147 from AngelAuraMC/fix/kilt-crash
fix: kilt crashing due to how caciocavallo17 is loaded
2025-12-25 22:48:40 +08:00
alexytomi
c0cfad579b Merge pull request #154 from AngelAuraMC/fix/unabletobuild
fix: Grab JRE from any completed run
2025-12-19 08:27:54 +08:00
alexytomi
8e7ea27609 fix: Grab JRE from any completed run
This stops it from failing if we only have cancelled or errored runs but
still have android jre artifacts
2025-12-19 08:25:54 +08:00
alexytomi
7241b2563c Merge pull request #153 from blryface/patch-1
fix: PojavLauncher -> Amethyst in License note
2025-12-19 08:12:19 +08:00
blryface
1fb57bdab4 fix: PojavLauncher -> Amethyst in License note
Signed-off-by: blryface <me@blurry.gay>
2025-12-17 21:01:15 -03:00
alexytomi
0e2cab30ae fix: kilt crashing due to how caciocavallo17 is loaded
Fixes https://github.com/KiltMC/Kilt/issues/230 by using a javaagent
instead of a custom classloader

Uses
https://github.com/AngelAuraMC/caciocavallo17/actions/runs/20203346684
2025-12-14 13:34:58 +08:00
alexytomi
5e44be7d5c Merge pull request #139 from AngelAuraMC/fix/AE1-crash
mitigation: Mitigate AE1 bug
2025-12-14 12:47:14 +08:00
alexytomi
ea571a968d mitigation: Mitigate AE1 bug
AE1 mistakenly passes in `1` as an ASM api version when it uses
`SignatureVisitor`. This is valid in ASM4 because it never checks if the
Opcode is valid, this is fixed in ASM5, which we override ASM4 with due
to compatibility issues with the Java 8 JRE we use
2025-12-06 19:55:30 +08:00
alexytomi
b5fbd8edb6 Merge pull request #138 from Dev1ss0/v3_openjdk
Updated links in README.md for wiki, Crowdin and Discord
2025-12-04 22:40:49 +08:00
Dev1ss0
0a2c5fb2d2 added the correct Crowdin link (PojavLauncher one) to the README
Updated contribution links and added Crowdin badge.

Signed-off-by: Dev1ss0 <94245667+Dev1ss0@users.noreply.github.com>
2025-12-04 15:21:08 +01:00
Dev1ss0
b39254f83d Fixed wiki link and remove Crowdin badge, because we don't have Crowdin...
Updated the link for the wiki and removed the Crowdin badge.

Signed-off-by: Dev1ss0 <94245667+Dev1ss0@users.noreply.github.com>
2025-12-04 15:15:27 +01:00
Dev1ss0
2e78bdad6a Changed Crowdin badge link in README
Signed-off-by: Dev1ss0 <94245667+Dev1ss0@users.noreply.github.com>
2025-12-04 15:00:37 +01:00
Dev1ss0
e5e118b5d1 Updated links in README.md for wiki and Discord
Signed-off-by: Dev1ss0 <94245667+Dev1ss0@users.noreply.github.com>
2025-12-04 14:57:59 +01:00
alexytomi
79e88cf6d5 Merge pull request #125 from AngelAuraMC/fix/libflite
OpenAL Fixes
2025-11-21 18:48:44 +08:00
alexytomi
95669aee11 fix: Crash in ALC10Injector if asm not found
ASM is only loaded if we are modded, so we should only apply it if we
are modded or else ASM is missing.

We can leave it running even if the version being ran uses lwjgl3.3.3,
it wont cause issues, it's just an overload.
2025-11-21 18:34:36 +08:00
alexytomi
d88ab2d01b Revert "fix(openal-soft/lwjgl): PolyPatcher crash/audio Part 1&2"
This reverts commits 5a4a060a2e and
7641ba9c4f.

No longer needed because lwjgl itself has been updated with the changes
2025-11-21 18:21:37 +08:00
alexytomi
eee1ed415f fix: update lwjgl with fixes
Now has the Polypatcher and Sound Physics fix in the lwjgl libs
2025-11-21 18:21:37 +08:00
alexytomi
47a8b5f8a0 fix: add missing lwjgl2 function asminjector
Should fix SoundPhysics in older versions
2025-11-21 18:21:36 +08:00
alexytomi
3833ddb854 Merge pull request #124 from AngelAuraMC/feat/kopper_zink
feat: Use kopper zink
2025-11-19 19:15:08 +08:00
alexytomi
9b922f12df Merge pull request #119 from Zcraft3793/v3_openjdk
Update app name in issue template
2025-11-12 15:50:09 +08:00
alexytomi
57564d7f77 Merge pull request #122 from AngelAuraMC/fix/sdl-wrongautorefreshrate
fix: Don't run SDL's JNI on RenderThread
2025-11-12 15:45:54 +08:00