Commit Graph
16 Commits
Author SHA1 Message Date
khanhduytran0 4a789ab98c Build: rewrite java code compilation recipe
Every jar sources are now in its respective folder to avoid clutters. Rewrote javac recipe to allow compiling simultaneously.
2025-01-25 11:47:27 +07:00
khanhduytran0 d2709a95da Fix[Cosmetica]: broken DNS injector in java 8
This has been fixed for a while on Android but has yet been copied to iOS
2023-08-18 20:00:36 +07:00
Duy Tran KhanhandDuy Tran Khanh 8d6d66dd94 Feats: external runtime, update LWJGL to 3.3.1 (#579)
* Feat: external runtime manager

Currently missing: mmap hook

* we're past this ui todo

* feat: Bypass Library Validation (untested)

This bypass works because of JIT enabled, so the process can patch
anything loaded in the memory. Unsigned dylib works with JIT too.

* Fix `could not get real path` on iOS 14.x

iOS 15+ is untested, it may need patching in dyld instead of libSystem

* Make redirectFunction syscall-friendly

Replaced builtin_mprotect and vm_protect with a simple syscall to
_kernelrpc_mach_vm_protect_trap

* Add dyld hook back for iOS 15+, auto symlink xawt lib

* Cleanup Tools.java:showError+comments

Use System.exit(1) to drop to Game Exited screen instead of presenting
alert dialog on exception handled.

* Patch both to bypass codesigning at best

* Proper way of ignoring SIGBUS during patch

Turns out other background thread might also be calling inside dirty
page, so let's SIG_IGN them all until page permission is back to RX.

* Feat(install jar): auto detect java version

Rename Default version to Preferred version to match the behavior or
Install .jar detection: only override if selected version > required
version.
Add UnzipKit just to check jar file

Refactor(showDialog): remove viewController parameter, now use its own
ViewController to present.

* Feat: update LWJGL to 3.3.1
(tinygl4angle) add alias for GL_KHR_debug functions
Include nanovg for OneConfig mod
Move all LWJGLX classes to lwjgl3 repo
Set org.lwjgl.util.NoChecks=true to improve performance

* Fix: Forge 1.20 crashes (wrong artifact path)
Now use json-provided artifact path instead of generating one
Make lwjgl fat jar again

* Fix: handle null library artifact

* Fix: fatal glfw callback cleanup

* Build: fix copying LWJGL libraries

* Perf: set default settings

* Fix: incorrect SolClient useStackQueue check

* Feat: builtin runtime installer

Refactor parts of LauncherNavigationController.m
Workaround(LogView): disable animation on update to mitigate overload

* Fix: random game directory failures

This is caused by having current working directory unchanged after
re-making symlink.

* Fixes: TL-style artifact, update arc_dns_injector

Change pojavInit names

* Fix: 1.13+ isUseStackQueueCall check

* Build: update liblwjgl.dylib in attempt to fix ffi_closure_alloc

* Fix and improvements to the logger

- Dynamically get stdout/stderr fileno instead of fixed value
- Improve file migration logging
- Improve dyld bypass logging

* Fix(pickers): file permission issue

---------

Co-authored-by: Duy Tran Khanh <[email protected]>
2023-06-28 21:49:15 +07:00
Duy Tran Khanh 58bb3c2c45 Update java dependencies
Remove org.json (used by Java MSA, no longer used)
Update gson to 2.10.1 (may fix random issues, vulns)
2023-04-26 11:11:43 +07:00
khanhduytran0 1669857401 Fix Forge 1.19.2; wait timeout for CS_DEBUGGED in main()
Removed module-info.class from lwjgl jar files
2022-09-13 09:20:42 +07:00
khanhduytran0 97433a5596 Add support for mods that use Vulkan for rendering
Known mods: Blaze4D (untested), VulkanMod, more?
- VulkanMod: needs a tiny modification to get it work with LWJGL 3.2.3
2022-06-10 12:13:23 +07:00
Adam Tunnic 372831bc9e Add Arc capes 2022-02-05 11:28:51 -05:00
Duy Tran Khanh d949cb4e1b Fixes Sodium 0.3 crashes on saving settings
Sodium 0.3 won't work yet
2021-08-22 14:19:57 +07:00
Duy Tran Khanh f4503692fe Fixed dex2jar error on Minecraft 1.17
Removed the built-in Apache Commons library which was not fully
converted from dex to classes.
2021-06-04 10:46:52 +07:00
Duy Tran Khanh d82d70d631 Fix Microsoft login 2021-02-13 07:57:29 +07:00
Duy Tran Khanh 221a0abba3 More fixes 2021-01-30 12:16:33 +07:00
Duy Tran Khanh ea501578f5 Remove JavaFX libs (unused); Fixing java compile 2021-01-30 12:06:44 +07:00
Duy Tran Khanh f3265fb9f3 Try to get javafx works on
If javafx works, I will considering designing a tiny UI on.
2021-01-05 09:27:22 +07:00
khanhduytran0 2701d13425 Add LWJGL3; Add GLFW source to merge CallbackBridge.java 2021-01-01 18:24:32 +07:00
Duy Tran Khanh 2373738d3f Add missing java libraries 2021-01-01 17:12:21 +07:00
khanhduytran0 3c371a10ed [Change project structure to remove RoboVM depends) 2020-12-31 15:03:15 +07:00