1017 Commits
Author SHA1 Message Date
Duy Tran Khanh 04f2fa566c didn’t remove mouse_* from mMenuMappingList
(Fix: save prompt appears even though there is nothing changed)
2023-04-22 05:42:59 +07:00
Eilionoir Tunnicliff b396fef7c2 Disable Zink on iOS 16 and later with release builds
Don't want users switching to Zink and asking why it's broken. Temporary measure until we can get our copy updated and working
2023-04-21 14:22:38 -04:00
Eilionoir Tunnicliff 471aa0f6fb Ensure that iOS 12 only devices don't get this warning 2023-04-21 00:32:52 -04:00
Eilionoir Tunnicliff 34ff464dcc Update warnings and move around a few keys
For some reason the simpler method wasn't working properly (make a function to make it cleaner) so...
2023-04-20 16:38:27 -04:00
Eilionoir Tunnicliff 80a701a8b1 Use a much more robust method of getting device data
- Doesn't require a hardcoded list of IDs
- Allows me to move the legacy devices dict to main.m
  - Make it annoying so I remember to remove it with 2.3
  - Now log when on iOS 12/13 or 1GB device
- Allows seeing if being run on a Mac
  - Although currently installing on Mac is completely broken. Thanks AltKit.
-
2023-04-19 13:17:35 -04:00
Eilionoir Tunnicliff 716ca0a66b Set slimmed builds to be development only
Oh yeah, changed "debug" to "development"
2023-04-19 10:50:30 -04:00
Duy Tran Khanh 2afe965570 Fix(ContCfg): filter out unused mouse_* mapping 2023-04-19 20:27:49 +07:00
khanhduytran0 8c70d7603d Revert "CI: Update gl4es"
This reverts commit d8d25949be.
2023-04-19 19:44:38 +07:00
github-actions d8d25949be CI: Update gl4es 2023-04-19 13:38:28 +01:00
Duy Tran Khanh 6a9443b464 Update to holy gl4es 1.1.5
Commit: 286c9ff1d9afbe450f8b2530de9e07058a1fc667
2023-04-19 19:12:33 +07:00
Duy Tran Khanh bcfc13a4f1 Major cleanup for the controller config vc
- Cleanup unused parts
- Cleanup complicated dictionary constructions
- Fix lag spikes during scrolling in this screen

Allow audio settings to be changed ingame
2023-04-19 19:12:32 +07:00
Eilionoir Tunnicliff b60d7d5e5d Missed these two 2023-04-13 17:51:38 -04:00
Eilionoir Tunnicliff 5bc0c0c15f Make device names match Apple's officials better 2023-04-13 17:50:49 -04:00
Eilionoir TunnicliffandDuy Tran Khanh 57ecfbf096 Use native input for controls (#524)
* WIP feature: native input

* Fixes: 1.13+, jar installer input
What's left: fix hotbar position

* Fix broken hotbar

---------

Co-authored-by: Duy Tran Khanh <[email protected]>
2023-04-09 13:33:30 +07:00
Duy Tran Khanh 31906e33b7 Fix: control safe area breaks in portrait mode
Rewrite the control safe area system:
- Use UIEdgeInsets instead of CGRect (breaking change!)
- Auto change depending on orientation (not really consistent yet)
The safe area is reset to reflect this breaking change.
2023-04-08 22:11:53 +07:00
Duy Tran Khanh ca98257884 Set default hidden_sidebar=true for iPhone only 2023-04-07 16:37:56 +07:00
khanhduytran0 cf03acbe92 Update libjnidispatch, again
https://github.com/java-native-access/jna/blob/5.13.0/lib/native/darwin-aarch64.jar
See https://github.com/PojavLauncherTeam/PojavLauncher_iOS/commit/83b4323
2023-04-07 10:14:36 +07:00
Duy Tran Khanh 2f966e07d9 Fix: crash on iPadOS 16.4
Invalid indexPath was not handled till 16.4, also fixes focus not
displaying at startup
2023-04-07 07:25:12 +07:00
Duy Tran Khanh 5c40cf8aa3 Apply the scroll workaround for both axes 2023-04-06 11:15:34 +07:00
Duy Tran Khanh 7a497c6d1d Fixes: nil UITableViewCell; small share icon 2023-04-06 07:39:44 +07:00
Duy Tran Khanh b6f5f9cede Update lwjgl (may break, need more testings)
warns on calling missing GL function instead of crash
2023-04-04 18:18:52 +07:00
Duy Tran Khanh b808f03b80 Workaround(scroll input) send both x and y as y
More proper workaround for https://bugs.mojang.com/browse/MC-121772
2023-04-04 18:18:52 +07:00
github-actions 95ec1d905e CI: Update gl4es 2023-04-04 11:31:20 +01:00
Duy Tran Khanh fcb9062b47 Fix: potential out of bounds exception 2023-04-04 07:10:42 +07:00
github-actions e7740fad30 CI: Update gl4es 2023-03-31 18:49:46 +01:00
github-actions f99d54fbad CI: Update gl4es 2023-03-31 18:40:50 +01:00
Eilionoir Tunnicliff 43123158a4 (WIP) Enable usage of JREs in Documents/
If there is no java_runtimes/ folder in the bundle, PojavLauncher will look for runtimes in Documents/jvm. Not currently working with my tests as this isn't the code I used before.
Also changes the slimmed ipas to not include any runtimes at all.
2023-03-27 09:41:19 -04:00
Duy Tran Khanh 828d858f11 Small workaround to Info.plist strings 2023-03-27 19:14:09 +07:00
Duy Tran Khanh cf44af927c Perf: speed up assets verification
- Log is cleaner, now prints "SHA1 passed for N/total asset files"
instead of individual files
- Removed redundant calls to the callback
2023-03-27 19:13:26 +07:00
Duy Tran Khanh d6a51017fc Return the old presentation style of GameDir VC 2023-03-25 20:50:09 +07:00
Duy Tran Khanh ac22507085 another fix for the last commit because iforgor 2023-03-25 20:16:09 +07:00
Duy Tran Khanh 7668f3cb9a Fix: audio output issues due to misplaced pref key
Issue introduced in 8d4a223257
2023-03-25 20:13:35 +07:00
Duy Tran Khanh d932ef8152 Fix: crashes on opening launcher settings ingame
Exception type: NSInvalidArgumentException
Reason: *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]
2023-03-25 10:00:01 +07:00
Eilionoir Tunnicliff 36fd10c80c Push back deprecations to 2.3
1GB RAM and iOS 12/13 devices will be deprecated at the same time.
2023-03-24 09:47:43 -04:00
Eilionoir Tunnicliff 2d32701a86 A bit of logging changes 2023-03-23 22:34:43 -04:00
Eilionoir Tunnicliff 8646bc779d Me when we don't need this anymore 2023-03-23 22:09:49 -04:00
Eilionoir Tunnicliff c8a31cdafa Rewrite the integrations function again to fix dialog race condition 2023-03-23 22:08:35 -04:00
Eilionoir Tunnicliff 8d4a223257 Add switch for customizing AVAudioSession (untested) 2023-03-23 21:50:57 -04:00
khanhduytran0 d58a731de7 Fix: Correct libjnidispatch (JNA) version build 2023-03-23 21:50:22 +07:00
Eilionoir Tunnicliff 62d7bfe425 Remove support for external JREs
Users can use the built-in JREs for PojavLauncher, and (if I can manage to make it work easily) JREs in the Documents directory
2023-03-23 10:21:13 -04:00
Eilionoir Tunnicliff 77b6ad15f3 Remove files that we do not need from the JREs
Should save us a bit of space
2023-03-23 10:04:59 -04:00
Eilionoir Tunnicliff 656f4d82d2 Makefile stuffs
- Rework check recipe to use .VARIABLES with a bunch of filters
- remove sudo dependency (except for deploy recipe, will require sudo make clean if you have perm issues)
- move java unpacking script to its own place
2023-03-23 00:04:24 -04:00
Duy Tran Khanh 285e7bafba Fix: BUNDLE_PATH is set to jre location, renderer fails to load
Fix a bug that is introduced in 23aef2d
2023-03-23 06:49:28 +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 761fed09b1 That wasn't supposed to be there, whoops! 2023-03-21 10:58:19 -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
Duy Tran Khanh 83b43238c9 Fix(JNA): snprintf() output has been truncated
Update JNA to 5.13.0:
https://github.com/java-native-access/jna/blob/767662a/lib/native/darwi
n-aarch64.jar
$ vtool -arch arm64 -set-build-version 2 12.0 16.0 -replace -output
libjnidispatch.dylib libjnidispatch.dylib
$ install_name_tool -change
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
/System/Library/Frameworks/Foundation.framework/Foundation
libjnidispatch.dylib
2023-03-19 16:04:15 +07:00
Duy Tran Khanh 9183b1fecc Feature: show instance folder size
- Move AFNetworking to the separate dynamic library
2023-03-18 18:14:02 +07:00
Eilionoir Tunnicliff f4ad12cc18 Update ControllerInput.m 2023-03-17 00:43:34 -04:00
Eilionoir Tunnicliff 7611c71bfe Forgot the haptics in that commit 2023-03-16 20:26:40 -04:00