7451 Commits

Author SHA1 Message Date
tomikun
1f8bf59b0a mitigation: very old forge will crash trying to load package name starting with "mod_"
Because of crummy regex
57be417b7c/common/cpw/mods/fml/common/Loader.java (L66)
Old forge will incorrectly load "mod_blahblah/yourclass.class" while
expecting a "yourclass.class" because package name started with "mod_".

Fixes https://github.com/AngelAuraMC/Amethyst-Android/issues/265
1.1.5
2026-05-28 21:19:47 +08:00
tomikun
ffe4929211 fix: Handle high polling rate sources
Android's onTouch and onGenericMotion are only called every screen
refresh. This means it is tied to your hz. So what android does for high
refresh rate devices is it stores them in
MotionEvent.getHistoricalAxisValue() and makes you process them all at
once on the next screen refresh.

See
https://developer.android.com/reference/android/view/MotionEvent#batching

We used to just completely ignore this so high DPI mice didn't work
properly.

Hopefully high DPI everything now works properly.
2026-05-14 23:21:11 +08:00
tomikun
65ca76015c Merge pull request #256 from AngelAuraMC/feat/misc
fix: Error parsing JVM args when JSON missing arguments field
2026-05-10 08:57:48 +08:00
tomikun
1883dde977 fix: Error parsing JVM args when JSON missing arguments field 2026-05-07 21:30:44 +08:00
tomikun
3f6656b0cc Merge pull request #254 from AngelAuraMC/feat/misc
misc bug fixes
2026-05-07 17:47:20 +08:00
tomikun
f8b7821d70 bump: version from 1.1.4 to 1.1.5 2026-05-06 19:09:17 +08:00
tomikun
405e370fb3 fix: Make renderer autoselect MobileGLues when angelica is found
Angelica exposes GL3.3core by using an FFP emulator they made. They are
the renderer.
2026-05-06 19:09:17 +08:00
tomikun
0e9f75b480 fix: Incorrect parsing of jvm args from JSON
This just ignored all JSONs that didn't inheritsFrom. It was assumed to
be vanilla if it wasn't inheriting, the problem is that LWJGL3ify and
others exist which don't have an inheritsFrom field yet contain jvm args
that are needed for launch. This simply removes the known problematic
vanilla arguments from being added to the launch rather than nuking the
whole thing.
2026-05-06 19:09:17 +08:00
tomikun
70a87ba7df fix(build): Correct location of local curseforge_key.txt file
Relative path bad, use absolute. It causes issues in gradle vers that
have workingDir in caches.
2026-05-06 19:09:17 +08:00
tomikun
5dd8c88db4 bump(MobileGlues): 1.1.5-dev, BGRA Swizzling
Fixes rendering for LWJGL3ify
Uses
https://github.com/AngelAuraMC/amethyst-prebuilt-libraries/actions/runs/24894710100
2026-05-06 19:09:17 +08:00
tomikun
fea907c33e fix: Fullscreen not being toggled when coming from floating window 2026-05-06 19:09:17 +08:00
tomikun
67d88696b6 fix(pojavexec): Crash on floating window in 26.2-snapshots becasue of invalid nativeSurface
This happens only on 26.2-snapshots when not using "Prefer OpenGL" as
the backend. This doesn't happen on 26.1.

This doesn't fully stop crashes when people trigger floating window
during resource/texture loading or window creation, that seems to be
more of a driver issue than anything, but at least it won't occur during
post-loading.
2026-05-06 19:09:17 +08:00
tomikun
dd94a7f2e8 fix(lwjgl): Load pojavexec earlier
Fixes 26.2-snapshot-4 crash

We put System.loadLibrary("pojavexec") in Library.java and Sys.java and
seperate out GLFW pojavexec init to GLFW static block initializer.

Uses
(3.4.1)
b84bec48c8
https://github.com/AngelAuraMC/lwjgl3/actions/runs/24783965974
(3.3.3)
b0ee05e894
https://github.com/AngelAuraMC/lwjgl3/actions/runs/24783304994
2026-04-25 16:38:46 +08:00
tomikun
a876e9e858 fix(krypton_wrapper): Crash on old versions
LIBGL_ES=1 crashes krypton wrapper
2026-04-25 16:36:34 +08:00
unilock
b97dcf204b fix(MinecraftDownloader): Account for artifact classifiers
com.github.GTNewHorizons:lwjgl3ify:3.0.15:forgePatches should now
install com.github.GTNewHorizons:lwjgl3ify:3.0.15:forgePatches instead
of com.github.GTNewHorizons:lwjgl3ify:3.0.15
2026-04-25 16:36:34 +08:00
tomikun
bdee4e18d3 Merge pull request #248 from AngelAuraMC/feat/misc
- OpenGL fallback for 26.2-snapshot-x (versions with the new Vulkan backend) should now work properly
- Fixed mods using Veil 3.1.0 or lower crashing on arm/arm64 architectures
1.1.4
2026-04-21 22:26:07 +08:00
tomikun
1cb34a03ec bump: version from 1.1.3 to 1.1.4 2026-04-21 22:14:38 +08:00
tomikun
8bf571735c mitigation: Mitigate Veil 3.1.0 using macOS imgui natives
See
8e0e093650
for when they fixed it. This commit simply edits `setImGuiPath()` to
nothing so we are able to properly override `imgui.library.name` for
older, broken Veil versions.
2026-04-21 22:14:38 +08:00
tomikun
b86fe17c82 fix(EGL): Handle window recreations with different APIs
Should fix Mojang Vulkan falling back to opengl
2026-04-21 02:52:07 +08:00
tomikun
4d57d4960a bump: version from 1.1.2 to 1.1.3 1.1.3 2026-04-18 02:21:36 +08:00
tomikun
8267e6c6b7 Merge pull request #242 from AngelAuraMC/feat/mixed-lwjgl
mixed lwjgl bugfixes
2026-04-18 02:14:17 +08:00
tomikun
fe12700fd7 update: LWJGL modules
Uses https://github.com/AngelAuraMC/lwjgl3/actions/runs/24576036363 and
https://github.com/AngelAuraMC/lwjgl3/actions/runs/24579760055 for 3.4.1
and 3.3.3 respectively

Literally changes nothing for 3.4.1, adds some fixes for 3.3.3

* https://github.com/AngelAuraMC/lwjgl3/pull/2
* 3.3.3 is now multi-release. This means its more in sync with official
mojang lwjgl.
2026-04-18 02:12:41 +08:00
tomikun
c944c8e5b0 fix(lwjgl): Specify org.lwjgl.librarypath
For some reason b1.7.3 doesn't work with only adding to
`java.library.path`. They appear to override it or something as the
LWJGL debug logs say it only looks through the android native library
dir and no other.
2026-04-18 01:37:52 +08:00
tomikun
5c0c78cb8b fix(lwjgl): Exclude vulkan related modules from merging 2026-04-18 01:37:51 +08:00
tomikun
0d3a52feb0 bump(krypton_wrapper): 0.4.4 to 0.4.5 (#241) 1.1.2 2026-04-17 14:57:33 +08:00
tomikun
28c208b0cd fix(GLFW): Incorrect logic for gl version select (#240)
Accidentally checked major instead of minor here
2026-04-17 14:47:00 +08:00
tomikun
9df33bae66 [FIXME]regression: Execute .jar non-functional (#239)
#238 pushed the wrong commit..oops
2026-04-16 00:11:38 +08:00
tomikun
f2542c059e [FIXME]regression: Execute .jar non-functional (#238)
Because we moved the lwjgl natives to another location, it could no
longer find freetype. This fix is a janky solution. We should really
ship freetype itself as they do have a fairly stable ABI.

Forge installers breaks without freetype.
1.1.1
2026-04-15 23:32:07 +08:00
tomikun
85670cdc3f bump: version from 1.0.0 to 1.1.0 1.1.0 2026-04-12 01:00:09 +08:00
tomikun
3474e9d963 Merge pull request #229 from AngelAuraMC/feat/mixed-lwjgl
rework(jre_lwjgl3glfw): Mixed LWJGL versions (3.3.3/3.4.1)
2026-04-11 18:50:50 +08:00
CADIndie
4f5bc35d69 fix(cacio): Remove things that break in java 25
Uses
https://github.com/AngelAuraMC/caciocavallo17/actions/runs/24133618071

Co-authored-by: alexytomi <60690056+alexytomi@users.noreply.github.com>
2026-04-10 19:19:16 +08:00
alexytomi
1a6732686d rework(jre_lwjgl3glfw): Mixed LWJGL versions (3.3.3/3.4.1)
3.3.3 is compatible enough from past experience, they started making
breaking changes after that.

Uses https://github.com/AngelAuraMC/lwjgl3/actions/runs/24239834125 and
https://github.com/AngelAuraMC/lwjgl3/actions/runs/24239000627 for 3.4.1
and 3.3.3 modules respectively

Removed the InfDev mouse stuff because it was moved to the LWJGLX
module.

Removed jemalloc because we don't have jemalloc natives so it's just
useless.

Enabled shaderc,vma,spvc,vulkan bindings for Mojang VK and VulkanMod.
Cinnabar still has the issue of needing to have the built-in lwjgl
classes inside the jar removed else module encapsulation screws it over
and it can't access lwjgl.jar classes.

[FIXME] Added spirv-cross natives as AAR. Using
https://github.com/AngelAuraMC/SPIRV-Cross/actions/runs/24189750259.
Should probably be included in lwjgl natives build but lets worry about
that another time.
2026-04-10 19:19:15 +08:00
tomikun
8e22693013 Merge pull request #227 from AngelAuraMC/feat/misc
feat: Download JREs from github
2026-04-05 00:28:02 +08:00
alexytomi
5ce315857d feat: Manual JRE downloads
Lets you decide if you wanna download the JREs in the runtime manager
2026-04-04 18:57:21 +08:00
alexytomi
afaa9bda94 feat: Download JREs from github
This should help reduce apk size.
We still maintain Java 8 due to reasons.

All old legacy code for having internal runtimes were not removed
because we have no reason to.
2026-04-04 02:09:47 +08:00
alexytomi
32d987c1b0 feat: Add common sodium fixes
People keep asking and asking in the discord and am going insane. Fine,
have it.
2026-04-02 22:46:52 +08:00
alexytomi
1eb0841ab1 rework(Tools): Make hasMods() not case sensitive
Sure mods are usually lowercase but lets not gamble
2026-04-02 22:46:52 +08:00
alexytomi
055d2989cb fix(GLFW): Crash when early loading screens are used
Oversight on my part and a regression.
2026-04-02 17:20:49 +08:00
alexytomi
c5c2ace87e fix(app): Shortname for app typo!
Accidentally forgot to remove while copy pasting, oops
2026-04-01 15:43:44 +08:00
alexytomi
34bcb3474b fix(gl4es): Remove unused holygl4es libs 1.0.0 2026-04-01 11:57:42 +08:00
alexytomi
4b4fc634d1 feat: Replace HolyGL4ES with Krypton Wrapper (#163)
I did not replace legacy holygl4es specific code.
Based on
https://github.com/AngelAuraMC/amethyst-prebuilt-libraries/actions/runs/23828877624
2026-04-01 11:55:19 +08:00
alexytomi
2215904d3e change(app): Add (Debug) to app display name if debug build (#219) 2026-04-01 10:54:59 +08:00
alexytomi
76fb5002fe change(version): use semver as part of version string
We maintain everything before since it's useful information.
2026-04-01 10:18:32 +08:00
alexytomi
aace6b3efd bump(MobileGlues): 1.3.2 to 1.3.4
Uses
https://github.com/AngelAuraMC/amethyst-prebuilt-libraries/actions/runs/23826433625
2026-04-01 09:43:10 +08:00
alexytomi
20b37b93c7 change(MobileGlues): Remove GL43 option 2026-04-01 08:43:34 +08:00
alexytomi
d72c19bcbe Merge pull request #216 from AngelAuraMC/update/readme
fix(README): Outdated nightly.link link
2026-04-01 06:48:19 +08:00
alexytomi
cfa621c5c7 fix(README): Outdated nightly.link link 2026-04-01 06:47:46 +08:00
alexytomi
258a8488b6 Merge pull request #203 from AngelAuraMC/feat/lwjgl3.3.6
bump(lwjgl): Update LWJGL to 3.3.6
2026-03-15 00:36:50 +08:00
alexytomi
68d55043c6 fix: classpath incorrectness causing crash on BTA and others 2026-03-14 18:15:27 +08:00
alexytomi
77f0b7d0ba rework: Hashing functions
Added `File[]` variant
2026-03-14 18:15:27 +08:00