Commit Graph
107 Commits
Author SHA1 Message Date
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 dd9be6e0c4 New renderer: Tiny GL wrapper for ANGLE
This renderer allows Minecraft 21w10a and newer to be rendered directly
in OpenGL ES through ANGLE with several wrapped functions, so the game
may runs with better performance.
Source code:
https://github.com/PojavLauncherTeam/gl4es/tree/master/tinygl4angle
2021-09-05 10:39:00 +07:00
Duy Tran Khanh 49125524d3 Preliminary support for v2 (code 3) control
TODO:
- Control editor
- Implement Drawer

FIXME:
-[MGLLayer init] crashes. Maybe replace with CAMetalLayer?
2021-08-30 07:13:39 +07:00
Duy Tran Khanh f00b09af2e Changes
- [Custom controls] Implemented `isSwipeable` property.
- VGPU has error at `sampler2DShadow`, so ignore it for now.
- WIP changes on jailed version.
2021-08-27 20:55:38 +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 d8115fab9d Attempt to fix crash 2021-08-23 13:28:16 +07:00
Duy Tran Khanh 5ce5dbcc00 Changes
- Avoid printing "Session ID". Several Minecraft versions do that.
- Fixes Minecraft 1.13 snapshot due to the usage of LWJGL functions from an older version.
- Minecraft's built in Fullscreen Resolution scaler is available now, but not working properly.
- Regal internal changes (still fail at )
2021-08-23 11:19:54 +07:00
Duy Tran Khanh ce3cc585cf Fix crash when logging surfaceRect 2021-08-22 09:27:03 +07:00
Duy Tran Khanh a4fca52430 Check surfaceRect 2021-08-22 07:28:17 +07:00
Duy Tran Khanh fe5f9e77a9 Changes
- Added a check to prevent attempt to launch 1.17+ with Java 8.
- Added an option to disable gl4es shaderconv in order to let ANGLE
processes them directly. This option lets Minecraft 1.17+ work
without the patch resource pack, OptiFine works aswell :)
- Changing renderer library no longer requires restart the launcher.
- Fixed some alert dialogs not displaying.
- PList default values are now set every time it loads.
2021-08-13 07:25:17 +07:00
Duy Tran Khanh a739cf7202 Resolution downscaler moment 2021-08-10 19:42:10 +07:00
Duy Tran Khanh 0212022859 Bug fix: the GUI button hides itself 2021-08-08 13:02:09 +07:00
Duy Tran Khanh 8eac9fefd5 Maybe this is not needed 2021-08-07 10:29:52 +07:00
Duy Tran Khanh c617b645b9 oof 2021-08-07 10:25:34 +07:00
Duy Tran Khanh 66bee901db Layout converter v1 -> unfinished v2
"i want new keyboard for pojavluancher" x20 by @𝙵𝚊𝚔ȇ̈_A𝕣ᴄᴀᴅᴇ#7200
2021-08-07 10:17:52 +07:00
Duy Tran Khanh e079e86a80 Changes
- Automatically set overrideWidth and overrideHeight
- Multi-context moment.
Current status of Forge 1.12.2:

Exception type: EXC_BAD_ACCESS (SIGSEGV)
Exception subtype: KERN_INVALID_ADDRESS: 0x964
Exception codes: 0x0000000000000001, 0x0000000000000964
Culprit: Unknown
VM Protection: 0x964 is not in any region.

Triggered by thread: 20
Thread name:
Call stack:
0   libgl4es_115.dylib  0x000000012196738c 0x121900000 + 422796  //
realize_glenv
1   libgl4es_115.dylib  0x00000001219672dc 0x121900000 + 422620  //
realize_glenv
2   libgl4es_115.dylib  0x0000000121966e78 0x121900000 + 421496  //
fpe_glDrawArrays
3   libgl4es_115.dylib  0x000000012199d4e4 0x121900000 + 644324  //
draw_renderlist
4   libgl4es_115.dylib  0x000000012197e39c 0x121900000 + 517020  //
gl4es_flush
5   libgl4es_115.dylib  0x00000001219609e4 0x121900000 + 395748  //
proxy_glEnable
2021-08-05 15:17:56 +07:00
Duy Tran Khanh a3976102a9 Removed MinecraftSurface storyboard dependence 2021-08-04 05:48:43 +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 d82a73a35a Update SurfaceViewController.m 2021-07-26 08:20:35 +07:00
Duy Tran Khanh b6b8e24189 Scroll using 2 fingers (known issue: too fast) 2021-07-26 08:17:02 +07:00
Duy Tran Khanh c896da08bb A lot of more changes
* Custom controls:
- Unfinished v2 control
- Auto generate default.json, removed internal fallback control
- Compatible with Android's dp (might need scaling)
- Implemented properties: keycodes, bgColor, strokeColor, strokeWidth,
cornerRadius

* Other changes
- Updated MetalANGLE to 0.0.7
- Updated gl4es 1.1.5

* TODO:
- Control converter
- Drawer buttons
- Multiple keys support (?)
- Implement properties: opacity, isSwipeable, isToggle,
passThruEnabled, (maybe more?)
2021-07-23 16:51:51 +07:00
Duy Tran Khanh 11e11a6ccf [Unfinished] Custom controls implementation 2021-07-19 20:02:58 +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 12f6fcf1b6 Bug fixes around interacting with hotbar
- GUI scale is never set, so hotbar offset becomes wrong.
- Touching from hotbar to outside and vice versa cause camera to jump
randomly.
2021-07-12 16:27:54 +07:00
Duy Tran Khanh 65eb859a13 Bug fix: text typing on MC <= 1.12.2 (still buggy) 2021-07-09 06:38:16 +07:00
Duy Tran Khanh a7866235af Merge egl_bridge_ios.m into egl_bridge.m 2021-07-08 16:11:18 +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 a742e5b14f Updated gl4es: probably fixes 1.17 empty terrain 2021-06-30 06:48:00 +07:00
Duy Tran Khanh 255e896fdc Changes
* Bug fixes:
- Duplicate version in picker list.
- Version list does not get automatic updated.
- Version picker does not scroll to the current selected version.

* Code changes.
2021-06-19 09:49:23 +07:00
Adam Tunnic bf49ea8291 Better implementation of hiding the home bar 2021-06-09 21:36:07 +07:00
Adam Tunnic 719b96829d Minor changes to System Gestures
Change from UIRectEdgeAll to UIRectEdgeBottom, so that the notification center and iPhone X/iPad CC can be pulled without two swipes. Useful for screen recording.
2021-06-02 12:36:56 +07:00
Duy Tran Khanh 40aa7434a4 Update SurfaceViewController.m 2021-05-26 20:53:53 +07:00
Duy Tran Khanh 8d2ec668f9 [Safe area] fixed touch view not full screen
Clean a piece of duplicated code
2021-05-26 20:49:04 +07:00
Duy Tran Khanh cddd176a27 [notch offset] ok, we should take left insets only 2021-05-26 20:41:49 +07:00
Duy Tran Khanh 32010a6979 [clipboard request] Fixed the check
Also cleaned other compile warnings
2021-05-25 20:38:07 +07:00
Duy Tran Khanh 3be87bfa46 Changes
- Added preferences screen (currently empty)
- Cleaned compiler warnings
- Implemented GLFW clipboard
2021-05-24 20:50:40 +07:00
Adam Tunnic 56bc70d999 PojavLauncher now feels like a game :)
Hiding the home bar and preventing accidental swipes from interrupting?
Check.
2021-04-25 02:12:45 -04:00
Adam Tunnic c650b72cd2 Attempt to hide on all the ViewControllers 2021-04-24 12:24:19 -07:00
Adam Tunnic a1bbd3e57c Readd HomeIndicAutoHidden 2021-04-24 15:06:23 -04:00
Adam Tunnic 048f509770 All instead of Bottom 2021-04-24 15:02:59 -04:00
Adam Tunnic 76264d4030 Try if(@available(iOS 12.0, *)
Still working on the home bar
2021-04-24 10:34:13 -07:00
Adam Tunnic 29cb728d67 Readd prefersHomeIndicatorAutoHidden 2021-04-24 12:20:56 -04:00
Adam Tunnic 8d2bc9661c setNeedsUpdateOfScreenEdgesDeferringSystemGestures 2021-04-24 11:52:33 -04:00
Adam Tunnic df7644c2bf UIRectEdge has a . 2021-04-24 11:48:13 -04:00
Adam Tunnic dce9a786b5 Attempt at home bar 3 2021-04-24 11:40:23 -04:00
Adam Tunnic 57febe1c9d Attempt at home bar pt 2 2021-04-24 11:21:20 -04:00
Adam Tunnic 81ccc6bafc Attempt at double-swipe home bar 2021-04-24 11:05:25 -04:00
Duy Tran Khanh fc19e16e4f Custom controls implementation changes
- Fallback to default control if custom control data size is over 100kb.
- Implemented dynamic position.
- Renamed folder from `customcontrols` to `controlmap` to match
Android.
2021-04-22 17:46:18 +07:00
Duy Tran Khanh 6005ae7206 Stills attempting to hide home indicator
Also, fixed custom controls
2021-03-20 19:39:13 +07:00
Duy Tran Khanh 6135799a42 Add a null check for default.json 2021-03-14 06:38:54 +07:00