Commit Graph
150 Commits
Author SHA1 Message Date
khanhduytran0 ed57e98a9b Draft (doesn't work now): MGL renderer
This is currently only for debugging purpose
2023-03-23 06:51:32 +07:00
Eilionoir Tunnicliff 23aef2d1ca Fix slimmed check
Previously this was bugged so that you could never force Java 17.
2023-03-21 11:50:34 -04:00
Eilionoir Tunnicliff bcdcc080fb Controller configurator!
Same keycode names as the on-screen editor to make it easier to identify the possible values. Xbox and PlayStation button names for familiarity. Saving configs handled by the Save and Exit buttons on the navigation bar.

Currently known issues:
- may be jumpy when cells reload or load onto the screen
- loading a new configuration file does not update the value of the cells
- loading a new configuration file does not update the "Controller configurator" item in the main Settings window
	- both of these are solved by closing and reopening the view controller for now
2023-03-21 10:52:16 -04:00
Eilionoir Tunnicliff d8c2c68237 Changes
- Move controller init code to a file for the controller configurator code I'm working on locally
- Add option to limit framerate to 60FPS on ProMotion-enabled displays
2023-03-16 02:47:03 -04:00
Eilionoir Tunnicliff 0d6994c354 Add new "Penciled Development" app icon
Also switches to the new Universal app icon type. Backwards compatible to iOS 12, but requires Xcode 14+ to work.
2023-03-15 23:36:33 -04:00
Eilionoir Tunnicliff de2b1843cc Use modals for presenting view controllers from Settings view
Also change "Minecraft game directory" to just "Game directory". Reduce output of reloadVersionList to just localized description.
This does require the modals to have dismissModalViewController() defined in their classes, not really an issue since all view controllers will be custom classes anyway.
2023-03-15 13:14:14 -04:00
Eilionoir Tunnicliff e96111c572 Feature: option to disable control overlay when a mouse or game controller is connected
To be paired with incoming game controller configuration, as right now the keyboard cannot be opened with this enabled and a controller connected.
2023-03-13 10:07:34 -04:00
Duy Tran Khanh 881dc5cf54 Fixes: Invisible toolbar views on iOS 12-13
Correct GLFWInputImplementation.java location
Add back Swipeable Hotbar option (removed by accident)
2023-03-10 07:11:45 +07:00
Eilionoir Tunnicliff 7fd4b7902b Add option to disable AltKit, changes to dialogs, and larger navigation bar headers
Time to go play Destiny 2
2023-03-09 17:46:19 -05:00
Eilionoir Tunnicliff e2040fb3be Readd account button to Settings and only show text in landscape mode
There is a bug in this where the text can become "sticky" and stay the same when rotating if the sidebar is opened but no rows are selected (meaning that the app just finished launching and LauncherNewsViewController is still presented by LauncherNavigationController.) More needs to be done to fix this little bug, however it does not hinder the usability of the account button or anything else in the launcher so I'm pushing it now to fix later.
2023-03-09 13:13:32 -05:00
Eilionoir Tunnicliff 0f89fdc0e2 Readd hidden sidebar option and fix issue with portrait mode on compact iPhones 2023-03-05 16:08:05 -05:00
Duy Tran Khanh e83b3a3bb3 Feature: mouse/hotbar gesture switches
Closes #519
2023-03-05 22:13:23 +07:00
Eilionoir Tunnicliff 8c90010b61 An actual workaround for the UI initialization bug without forcing the iPad UI
Basically consists of pushing the LauncherNewsViewController from LauncherNavigationController when the app first starts up, and setting the navigation bar items from the LNVC class. This commit also moves the account button to the right of the bar, removes the profile name outside of the list view, and does not appear on the Settings view. Removes the hidden sidebar option in favor of always hidden. Moves PID to the bottom of the General section footer. Tested on my iPad Pro (12.9-inch, 2nd generation), iPhone 14 Pro Max, iPhone 6s Plus, and iPhone SE (1st generation) over a grueling week of staring at code and banging my head against a wall. I'm going to bed now.
2023-03-05 00:23:31 -05:00
Duy Tran Khanh 1114a7a864 Feature: show pid in settings 2023-03-03 21:49:35 +07:00
Duy Tran Khanh be3a834b33 Fix(UI) empty line in action sheet; include missing header 2023-02-10 18:09:08 +07:00
Duy Tran Khanh 54c2564c2f Feature: gyroscope controls 2023-02-05 12:16:46 +07:00
Duy Tran Khanh 69f92a0209 Fix(settings): hide home indicator always disabled 2023-02-03 06:15:49 +07:00
Duy Tran Khanh d94fc6a9ac Chore: move config macros to generator
avoid rebuilding the whole project after every git commit
2023-01-31 19:16:50 +07:00
Eilionoir Tunnicliff d1cc9ac977 Add "slim" builds (#494)
* Merge 'main' into 'slim-building' (#493)

* Remove java-16-openjdk from environmentFailsafes()

Versions that use 16 can use 17 as well. Instead of wasting storage and installing both, use just 17 instead.

* Jailbreak JIT fixes

- palera1n detection
- enable JIT if jailbreak bit is set

* github.dev moment

Fix syntax error

* README changes

* Requirements + tvOS things

* Produce a "slimmed" build

Slimmed builds only include the Java 8 runtime, meaning only 1.16.5 and lower can be played. Made for those tight on storage or only using older versions.

* Move zip around

* No need for the * glob

* Escape globs

* --exclude instead of -x

I literally have no idea what's going on, this probably won't fix it

* Payload

* bruh
2023-01-27 09:18:50 -05:00
Duy Tran Khanh 642ce8f84d New option: Erase Demo game data
Since users have no access to the demo instance, this option is added
to make it possible to clean up it in case it is not needed anymore,
such as after buying Minecraft.
2023-01-20 13:43:02 +07:00
Eilionoir Tunnicliff 1c6b4f6e35 oops 2023-01-19 11:46:31 -05:00
Eilionoir Tunnicliff 289b47abfc Move demo mode stuffs to secure location
This way, local mode users cannot use it to download game files without a license.
2023-01-19 11:44:04 -05:00
Duy Tran Khanh 8577636a4e Fix: user interaction issue on iOS below 14
The following changes apply for iOS 13.7 and below.
* Actually, a fake toolbar view is added on top of the real one, in
order for subviews (the version picker and the play button) to receive
user interaction properly
* Tweaked Split behavior to fix another dead-locked sidebar issue
* The toggle of hiding sidebar is now available
2023-01-19 20:45:34 +07:00
Eilionoir Tunnicliff fe38eacf9d Port hidden sidebar stuffs from 2.1.1 branch
As well as add a new preference to enable hiding by default and when rotating for iOS 14 and newer.
2022-12-18 18:10:29 -05:00
Duy Tran Khanh 63c2fe0f30 Added option to control AirPlay mode
Closes #450

Internal change to debug: cache to debugBoundsEnabled instead of
getting preference every time
2022-12-17 21:25:23 +07:00
Duy Tran Khanh d0279af8aa Internal changes
- First changes for tvOS (very WIP) this will be a challenge to use
remote storage as ATV doesn't allow persistent storage (at least
without jailbreak). Low priority for now.
- Change regLog, debugLog to NSLog, NSDebugLog
- Rewrite most of JavaLauncher.m to ObjC
- Update README.md
2022-12-17 21:25:23 +07:00
Duy Tran Khanh a0cb1c0789 Rename renderer: tinygl4angle to ANGLE
This avoids confusion between Android and iOS version when mentioning
this renderer
2022-12-06 18:33:47 +07:00
Duy Tran Khanh b46cfcfc82 New debug option: auto correction
Sometimes autocorrection can be annoying, so there's now a toggle,
enabled by default to preserve behavior.
2022-12-06 18:21:31 +07:00
Eilionoir Tunnicliff e645cfcde8 Changes
- Refine WKWebView on notched devices (worked fine on my 7 as well...)
- Add iDevice model, iOS version, and install to General footer
2022-12-06 00:12:26 -05:00
Duy Tran Khanh f1da61ef26 New debug option: hide home indicator
This allows home indicator to be hidden again, usually useful for users
who play with external controlling device without having to use Guided
Access.

Changed icon of some settings.
Home indicator, status bar and screen edge lock is now based on side
menu visibility.
2022-11-29 19:17:10 +07:00
Duy Tran Khanh 6cb661801e Tweaks to LauncherPreferencesViewController
- Picker alert message now display settings description, if available
- TypePickField now have action property, replacing currently
hardcoded AppIcon check
- AppIcon.enableCondition is now based on
UIApplication.supportsAlternateIcons; removed respondsToSelector check
as it's unnecessary
2022-11-28 10:58:44 +07:00
Duy Tran Khanh 5752c2f086 Add version info to settings and log 2022-11-28 09:49:56 +07:00
Duy Tran Khanh 9fb149e25a Tweak: collapsable settings sections 2022-11-27 13:09:25 +07:00
Eilionoir Tunnicliff d01d616c06 Undo WIP SVC code + fix text in LPVC 2022-11-25 10:31:52 -05:00
Eilionoir Tunnicliff 8fe44a1aea Add alternate Dark icon
Feature request from a whiiiiiiiiiile ago
2022-11-25 10:22:27 -05:00
Duy Tran Khanh 1af09ca02d Tweak NSLocalizedString; Keep split display mode
Tweak NSLocalizedString to return English if not yet localized.
Keep Split display mode between rotations.
New debug option: skip JIT wait, for #423
2022-11-17 21:46:38 +07:00
Eilionoir Tunnicliff 0bd40dce62 Change icon for JitStreamer server setting 2022-11-14 17:18:24 -05:00
Eilionoir Tunnicliff cedbf1e7e5 Add custom JitStreamer server support
Closes #418
2022-11-13 14:54:11 -05:00
Duy Tran Khanh 8f8ec8df89 Cleanup some stuff 2022-11-13 09:15:24 +07:00
Duy Tran Khanh c44c987ee3 Minor UI tweaks
- Correct Settings icon name
- Make both `Send your logs` and the share icon visible, no matter
about iOS version.
- Settings: Use Action Sheet instead of Picker View.
- Cleanup LauncherFAQViewController that was no longer used.
2022-11-13 08:54:15 +07:00
Eilionoir Tunnicliff ab5bd8469e Changes
- Removed FAQ, About Launcher, and Update History buttons
- Moved *.png to Assets.xcassets
- Moved LPVC2 to LPVC
2022-11-10 00:03:37 -05:00
Duy Tran Khanh 022a8cae6f Remove v1 pref UI 2022-09-04 13:28:47 +07:00
Eilionoir Tunnicliff cbc7c569fa Merge remote-tracking branch 'origin/main' into wip-new-pref-ui 2022-09-03 19:29:14 -04:00
Eilionoir Tunnicliff cc69b4cbeb :bruh: 2 2022-09-02 23:27:05 -04:00
Eilionoir Tunnicliff 166f637a64 :bruh: 2022-09-02 23:25:58 -04:00
Duy Tran Khanh 83c54845b8 Get more settings to function 2022-09-02 15:45:18 +07:00
Duy Tran Khanh 9a5cee04c6 wip auto renderer 2022-08-18 08:09:46 +07:00
Eilionoir Tunnicliff 365cb1aa1a Merge remote-tracking branch 'refs/remotes/origin/main' 2022-08-17 02:54:31 -04:00
Eilionoir Tunnicliff 8f2ecc2476 Unlock java_home option when unjailbroken
Also prep code for Java 17 bundling

TODO: Allow building of ipa with different runtimes included
2022-08-17 02:54:22 -04:00
Eilionoir Tunnicliff 764f3e54c3 fix again 2022-08-14 00:19:01 -04:00