Commit Graph
93 Commits
Author SHA1 Message Date
khanhduytran0 1d7e8a8214 Experimental Minecraft Downloader
This is not yet finished, there are 3 main things left
- Make sure everything works
- (Assets) download old structure
- Cleanup

What are implemented?
- Downloading file is handled with AFNetworking
- SHA1 validation, can be turned off in Preferences
- inheritsFrom support (need testing)
- Downloading assets with 20 jobs parallel

Known issue
- Assets SHA1 validating freezes the UI

Additional things
- [Custom controls] Dynamic position error is now handled instead of just crashes
- [Custom controls] The editor animation is now changed to fade in/out (for now, later might change)
- VGPU renderer is now made hidden, since it's too limited on iOS, removal planned
- [Code cleanup] Use NSDictionary instead of a set of fields for renderer list; Fix wrong field name.
- Some more stuff...
2022-04-20 20:45:47 +07:00
Duy Tran Khanh 8575e9f2f6 Bug fixes
- Random infinite game launching process
- Input not working on 1.13+ when `Restart before launching game` is
enabled.
2022-02-18 16:21:48 +07:00
khanhduytran0 fbde4948d5 Various bug fixes
- Input cursor movement seems too fast, attempt to reduce it by setting larger font size in the hidden text field.
- latestlog.txt doesn't log in 1.12+ since Log4j patch. Fixed by adding some config lines.
- Makefile: building is broken when run make from a path with space(s). Fixed by handling spaces with backslashes.
- text2speech is not overridden properly. Fixed by excluding it from download list and adding launcher.jar itself to the classpath.
- XML log output in < 1.12 since Log4j patch. Fixed by using our own configuration file.

Some more changes:
- Commented out a debug line in LWJGLX
- Fix a typo.
- JavaLauncher: use (ObjC)BOOL instead of (std)bool.
2022-01-17 08:18:06 +07:00
Duy Tran Khanh 33b00e417c Fix a NullPointerException when launching ≤ 1.6.4 2021-12-26 05:43:14 +07:00
Duy Tran Khanh 1b0d564379 New toggle option: Restart before launching game
This option allows the launcher to restart itself before launching the
game, therefore all changes are applied such as JVM Arguments and Java
version. The restart mechanism doesn't always work, so a toggle is
here for now.
2021-12-17 21:13:50 +07:00
Duy Tran Khanh fea17bb28e Log4J RCE patch config: disable XML format output
This applies for Minecraft 1.12+
Disable XML formatting for now until we have a log viewer.
2021-12-15 05:49:46 +07:00
Duy Tran Khanh 7d527942a2 Completely fix Log4J RCE (1.7-1.16.5) (not yet tested)
TODO: checker with SHA1
2021-12-13 20:50:42 +07:00
Duy Tran Khanh 96ea5fd687 Cleanup unused files
~~also fix a bit of grammar :trollface:~~
2021-11-27 15:11:09 +07:00
Duy Tran Khanh d533bfbb10 Local account: update the error message a bit 2021-11-27 13:55:43 +07:00
Duy Tran Khanh 4f59e0ffff PojavCore is now inside the main executable
This took so long since there was a failed attempt in unloading and
reloading JVM to support Forge 1.17.x. Next attempt would be rewrite
everything to Objective-C and move the JVM entry point to the start of
the game.
2021-10-01 11:14:05 +07:00
Duy Tran Khanh 7fb5b55d8b Override JNA to 5.8.0
This fixes LabyMod 1.8.9 crashing.
2021-09-27 11:06:15 +07:00
Duy Tran Khanh 5dcacb6d00 Changes
- Fixes #272
- Replaced MGLLayer with EGL calls
- Re-implemented Zink renderer to work with new Renderer selection system (currently hidden due to unfinished)
2021-09-14 10:57:24 +07:00
Duy Tran Khanh f571e96662 Changes
- Replace MGLKView with UIView + MGLLayer. Attempt to fix crash at "[MGLKView initWithFrame]". Known issue: hotbar offset is a bit wrong when scale ≠ 100%
- Cleanup some unused files.
2021-08-24 11:36:01 +07:00
Duy Tran Khanh 0668d016bf Changes
- Added Caciocavallo (libawt_xawt stubs) support library.
- Added support lauching Minecraft 1.5.2 and older (requires latest
JRE8 build)
- [Custom controls] Implemented opacity property.
- Version info is now updated through macro instead of `sed` command.
2021-08-01 10:41:02 +07:00
Duy Tran Khanh 14c5a5ac8f Update PLaunchApp.java 2021-07-18 07:49:54 +07:00
Duy Tran Khanh 7c766a1a5d [Java] This messy plist parser should be fixed now 2021-07-18 07:44:07 +07:00
Duy Tran Khanh 69e8f38894 Update PLaunchApp.java 2021-07-18 07:21:55 +07:00
Duy Tran Khanh 1b606997e1 wrong offset in current selected version parser 2021-07-17 20:34:32 +07:00
Duy Tran Khanh 322870f8a3 Bug fix: always download 1.16.5 2021-07-17 16:13:06 +07:00
Duy Tran Khanh 8f5059e741 Changes
- [Custom controls] Removed control size limit, prepare custom controls
screen.
- [Jailed] Use  directory as home instead of

- [Preference] Added "button scale"
- [Preferences] Moved into launcher_preferences.plist
2021-07-17 07:18:03 +07:00
Duy Tran Khanh 35afa7ec5c Local account implementation 2021-07-05 05:31:03 +07:00
Duy Tran Khanh be1646c8ce Now this can be installed as an IPA :trollface: 2021-07-02 20:05:59 +07:00
Duy Tran Khanh 705e53e47b well, just remove this piece of check :trollface:
Local interrupt is already handled by mIsAssetsProcessing
2021-07-02 04:53:48 +07:00
Adam Tunnic b29289fc13 Recreate error, now that the Makefile is fixed 2021-07-01 17:41:22 -04:00
Adam Tunnic 6211f42f55 Revert "TEST: Update MC assets downloader to match Android" 2021-07-01 11:50:22 -04:00
Duy Tran Khanh 41d1943c87 TEST: Update MC assets downloader to match Android
Could fix issue #182
See https://github.com/PojavLauncherTeam/PojavLauncher/commit/2adc410ef81bc5641a8517000cfeeaaf2df3f1eb
2021-07-01 20:40:00 +07:00
Duy Tran Khanh 55499b52e6 Prepare for version list filtering 2021-06-16 15:18:06 +07:00
Duy Tran Khanh b5c4e9ef1d Changes
- Cleaned some unused codes
- Set client brand name
- Set window size correctly(?)
2021-06-03 07:15:38 +07:00
Duy Tran Khanh b1f449b91d Prevent from running directly on command line 2021-02-15 12:38:52 +07:00
Duy Tran Khanh 57e626b3d3 Display error when attempt run on command line 2021-02-14 19:22:44 +07:00
Duy Tran Khanh 49ea01d7e6 Auto create launcher_profiles.json if necessary
This fixes Fabric and OptiFine installer errors.
2021-02-14 06:24:42 +07:00
Duy Tran Khanh 59f4aed848 Update PLaunchApp.java 2021-02-11 19:48:59 +07:00
Duy Tran Khanh e405fe3462 Another broken launcher fix 2021-02-11 19:43:37 +07:00
Duy Tran Khanh ad91db1c18 Bug fix: broken launcher 2021-02-11 11:14:17 +07:00
khanhduytran0 3f2e09c616 More fix 2021-02-11 08:35:51 +07:00
Duy Tran Khanh aef99100ef [WIP] Mojang auth 2021-02-10 20:58:43 +07:00
Duy Tran Khanh c2e4e993ab Allow playing without network connection
Also Login UI WIP: add account list
2021-02-10 13:22:04 +07:00
Duy Tran Khanh 9881949f30 [WIP] Login UI, no functional yet 2021-02-08 18:21:54 +07:00
Duy Tran Khanh 335c734019 Update PLaunchApp.java 2021-02-03 15:41:07 +07:00
Duy Tran Khanh 124b96caaa Update PLaunchApp.java 2021-02-03 11:58:23 +07:00
Duy Tran Khanh 4016462d86 Handle multithread use ThreadPoolExecutor 2021-02-03 09:18:13 +07:00
Duy Tran Khanh 477fe35d7d Update PLaunchApp.java 2021-02-03 08:24:57 +07:00
Duy Tran Khanh 17119d7bc6 Update PLaunchApp.java 2021-02-03 08:04:28 +07:00
Duy Tran Khanh 38083fb3c7 Update PLaunchApp.java 2021-02-03 07:50:29 +07:00
Duy Tran Khanh 9e63c503d4 Update PLaunchApp.java 2021-02-03 06:26:24 +07:00
Duy Tran Khanh cd7ed5ed50 Try download assets on 30 threads
Also, fix native build error
2021-02-03 05:57:42 +07:00
Duy Tran Khanh 2f99a5ecd7 [WIP] Add ability to skip download assets 2021-02-03 05:23:15 +07:00
Duy Tran Khanh e918010b90 [Input] Bridge with direct pipe 2021-02-02 19:00:54 +07:00
Duy Tran Khanh 9c5302c0ba Java side fix 2021-02-02 08:10:33 +07:00
Duy Tran Khanh 4d31dbf0c0 Update PLaunchApp.java 2021-02-02 08:01:45 +07:00