Commit Graph
1523 Commits
Author SHA1 Message Date
Duy Tran Khanh d2986295ba Feature(custom controls): menu button
When added to custom control, it will replace the traditional swipe
gesture, while also show the menu in place (aka context menu)
2023-02-23 18:13:14 +07:00
Duy Tran Khanh 67e5080cb5 tinygl4angle: add VertexAttrib functions
Copy from gl4es:
https://github.com/ptitSeb/gl4es/blob/3b926be6f2fb47a8befd0604e64008db3
e0d779a/src/gl/wrap/gl4eswraps.c#L670-L704
2023-02-21 17:57:30 +07:00
Duy Tran Khanh aa4bbc90c6 Workaround: set back AVAudioSessionCategoryPlayback
Because microphone input is not currently working, audio session category is set back to its previous value to fix low volume issue.
2023-02-20 21:09:04 +07:00
Duy Tran Khanh 78e84807e6 Fix #507: multipleTouchEnabled is not set 2023-02-17 06:20:49 +07:00
khanhduytran0 c0fa045730 Fix: deadlock UI init when debug_ipad_ui absent, for real
Turns out realUIIdiom called before hooking UIKit
2023-02-14 06:26:25 +07:00
khanhduytran0 43f122ad72 Revert "Take 3 billion on fixing the UI init bug temporarily"
This reverts commit 4b23d34254.
2023-02-14 06:16:49 +07:00
Eilionoir Tunnicliff 4b23d34254 Take 3 billion on fixing the UI init bug temporarily
hidden sidebar no longer does anything, don't revert this because it's
the only thing we can currently use that works on iPhone, iPad and
iPod. breaks Apple TV but that doesn't matter atm
2023-02-13 17:55:05 -05:00
Eilionoir Tunnicliff 6959cf0322 Fix iPad UI bug 2023-02-13 17:00:36 -05:00
Eilionoir Tunnicliff f51d87b882 Only force iPad workaround for iPhone/iPod 2023-02-13 10:14:30 -05: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 ac0687ca8f Workaround(Input): treat horizontal scroll as vertical
The direction is unchecked: it may need to be inverted
2023-02-10 17:45:39 +07:00
khanhduytran0 03cb93245f Workaround(iPhone, UI): set default ipados_ui to true
This workaround fixes 2 issues:
* Pointer lock does not work for some reason
* iPhones running iOS 15+ do not initialize UI
2023-02-09 21:59:49 +07:00
khanhduytran0 bc084c8112 Revert "Temporary fix for UI initialization bug"
This reverts commit 256cd3846d.
2023-02-09 20:05:45 +07:00
Eilionoir Tunnicliff 256cd3846d Temporary fix for UI initialization bug
Using the iOS 14.0+ API for UISplitViewControllers broke init on those systems. Needs more investigation, to be done on another branch to prevent mainline breakage.
2023-02-09 00:14:03 -05:00
Eilionoir Tunnicliff c42e5478c9 Revert "(Untested) Fix(UI): broken UI init in compact iPhones"
Changed the issue from UI not initializing (which affects all devices) to UI not initializing (on 5.5" and bigger) and just not working at all (on 4.7" and smaller) @khanhduytran0
2023-02-05 16:54:53 -05:00
Duy Tran Khanh 35802571f4 FIx(GyroInput): camera jumps + (WIP)orientation
Use DeviceMotion (gyroscope + accelerometer) instead of Gyro for less
jittering
FIXME: camera jumps upon rotating screen while gyro is active
2023-02-05 17:47:06 +07:00
Duy Tran Khanh 54c2564c2f Feature: gyroscope controls 2023-02-05 12:16:46 +07:00
Duy Tran Khanh 5cad42909b (Untested) Fix(UI): broken UI init in compact iPhones 2023-02-05 11:48:01 +07:00
Duy Tran Khanh 69f92a0209 Fix(settings): hide home indicator always disabled 2023-02-03 06:15:49 +07:00
Duy Tran Khanh 7f65ad1e4f Fix window size for Minecraft 1.2.1-1.2.4 (https://github.com/PojavLauncherTeam/PojavLauncher/commit/4c43522) 2023-01-31 22:15:33 +07:00
Duy Tran Khanh 54a7f2b152 Fix(input_bridge): crash due to window resize called in wrong way
Actually, this pick up changes in
https://github.com/PojavLauncherTeam/PojavLauncher/commit/e2641813562c8
4290281c9f01d560ebca39ad595
2023-01-31 21:19:47 +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
Duy Tran Khanh f53c3910d5 Refactor(MCDL): cleanup unreachable code
turn out this piece of code is not useful now
2023-01-31 18:40:39 +07:00
Duy Tran Khanh d4f78fda6f Fix+Refactor(MCDL): simplify fetchLocalVersionList
Fix for the previous workaround: modded versions disappear
2023-01-31 18:23:40 +07:00
Duy Tran Khanh f477db18a0 Workaround(MCDL): modded version breaks if vanilla not installed 2023-01-31 06:34:51 +07:00
Duy Tran Khanh 2d455861de Fix(setupSlimmed): incorrect string format passed to NSString
no idea how this didn’t crash, but it’s better to change it to avoid the check being incorrect
2023-01-31 05:53:54 +07:00
khanhduytran0 9f9a3f706c Fix: broken TrollStore self-JIT in commit 23d9338
This adds a boolean to toggle JIT check between jailbreak and csops
because the jailbreak detection checks for CS_PLATFORM_BINARY, which
is available for both jailbroken and TrollStore
2023-01-31 05:45:34 +07:00
Duy Tran Khanh b9b0e0959b Fix: broken mouse coord input again
Turns out another fix broke it
2023-01-30 21:59:51 +07:00
Duy Tran Khanh d3743b3225 chore: set PATH for workflows 2023-01-30 10:20:40 +07:00
Duy Tran Khanh fd436d9f88 Fix: issues with legacy versions
This picks up the following commits from Android repo:
*
https://github.com/PojavLauncherTeam/PojavLauncher/commit/4716e99df12ab
5bfcaade881774e3b07e8e35450: Don't call Display.create in AWTGLCanvas
constructor (fixes Minecraft 1.2.1-1.2.4)
*
https://github.com/PojavLauncherTeam/PojavLauncher/commit/693cff45b09b3
ca09784a3038a3f9c89cacd391f: Infdev cursor grab: the Pojav part +
Window resize on first key even poll (actual on iOS is on grab state
changes because Android's approach does not work)
*
https://github.com/PojavLauncherTeam/PojavLauncher/commit/ee39334bf31ed
0687c750f37229cf6bea8919b4c (Comment out unnecessary calls to resize)
2023-01-30 09:57:15 +07:00
Duy Tran Khanh 4c71a17a35 Fix(version picker): empty array/OOB crashes 2023-01-30 09:07:47 +07:00
Duy Tran Khanh 4e2a62d24b Move strings to InfoPlist.strings, change AVAudioSession category
Change AVAudioSession category to AVAudioSessionCategoryPlayAndRecord
2023-01-30 08:40:27 +07:00
Duy Tran Khanh 9fb19fa211 Revert: Ask for microphone permission when launching the app
This partially reverts commit fe2b85ec32

Microphone permission is now only asked on-demand
2023-01-30 08:31:23 +07:00
Eilionoir Tunnicliff fe2b85ec32 Ask for microphone permission when launching the app, if not already enabled 2023-01-29 13:18:33 -05: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
Eilionoir Tunnicliff 97c7972f55 Requirements + tvOS things 2023-01-26 11:36:34 -05:00
Eilionoir Tunnicliff c5581e6342 README changes 2023-01-26 10:58:45 -05:00
Eilionoir Tunnicliff a27876d187 github.dev moment
Fix syntax error
2023-01-26 10:26:01 -05:00
Eilionoir Tunnicliff 23d9338f04 Jailbreak JIT fixes
- palera1n detection
- enable JIT if jailbreak bit is set
2023-01-26 10:21:31 -05:00
Eilionoir Tunnicliff 7cb7578c17 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.
2023-01-26 09:45:55 -05:00
Duy Tran Khanh cdd4d3908b Fix(MCDL): multiple debug prints of call stack
Fix(local,Makefile) : @ldid: command not found, why?
2023-01-26 12:52:03 +07:00
Duy Tran Khanh 9f2f6d93dd Fix(ControllerInput): joystick magnitude calculation 2023-01-24 06:25:55 +07:00
Duy Tran KhanhandEilionoir Tunnicliff 6f645d35a8 New Crowdin updates (#456)
* New translations Localizable.strings (Turkish)

* New translations Localizable.strings (Chinese Simplified)

* New translations Localizable.strings (English)

* New translations Localizable.strings (Indonesian)

* New translations Localizable.strings (Romanian)

* New translations Localizable.strings (French)

* New translations Localizable.strings (Spanish)

* New translations Localizable.strings (Arabic)

* New translations Localizable.strings (Czech)

* New translations Localizable.strings (German)

* New translations Localizable.strings (Greek)

* New translations Localizable.strings (Hebrew)

* New translations Localizable.strings (Italian)

* New translations Localizable.strings (Japanese)

* New translations Localizable.strings (Korean)

* New translations Localizable.strings (Lithuanian)

* New translations Localizable.strings (Dutch)

* New translations Localizable.strings (Norwegian)

* New translations Localizable.strings (Polish)

* New translations Localizable.strings (Portuguese)

* New translations Localizable.strings (Russian)

* New translations Localizable.strings (Slovak)

* New translations Localizable.strings (Serbian (Cyrillic))

* New translations Localizable.strings (Swedish)

* New translations Localizable.strings (Ukrainian)

* New translations Localizable.strings (Chinese Traditional)

* New translations Localizable.strings (Vietnamese)

* New translations Localizable.strings (Portuguese, Brazilian)

* New translations Localizable.strings (Persian)

* New translations Localizable.strings (Malay)

* New translations Localizable.strings (English, United Kingdom)

* New translations Localizable.strings (Filipino)

* New translations Localizable.strings (Tatar)

* New translations Localizable.strings (English (upside down))

* New translations Localizable.strings (LOLCAT)

* New translations Localizable.strings (Russian (pre-revolutionary))

* New translations Localizable.strings (Estonian)

* New translations Localizable.strings (Turkish)

* New translations Localizable.strings (Chinese Simplified)

* New translations Localizable.strings (English)

* New translations Localizable.strings (Indonesian)

* New translations Localizable.strings (French)

* New translations Localizable.strings (Spanish)

* New translations Localizable.strings (Czech)

* New translations Localizable.strings (German)

* New translations Localizable.strings (Italian)

* New translations Localizable.strings (Polish)

* New translations Localizable.strings (Russian)

* New translations Localizable.strings (Ukrainian)

* New translations Localizable.strings (Chinese Traditional)

* New translations Localizable.strings (Vietnamese)

* New translations Localizable.strings (Portuguese, Brazilian)

* New translations Localizable.strings (Filipino)

* New translations Localizable.strings (English (upside down))

* New translations Localizable.strings (Russian)

* New translations Localizable.strings (German)

* New translations Localizable.strings (Turkish)

* New translations Localizable.strings (Chinese Simplified)

* New translations Localizable.strings (English)

* New translations Localizable.strings (French)

* New translations Localizable.strings (Czech)

* New translations Localizable.strings (German)

* New translations Localizable.strings (Italian)

* New translations Localizable.strings (Russian)

* New translations Localizable.strings (Ukrainian)

* New translations Localizable.strings (Portuguese, Brazilian)

* New translations Localizable.strings (English (upside down))

* New translations Localizable.strings (Estonian)

* New translations Localizable.strings (Chinese Simplified)

* New translations Localizable.strings (German)

* New translations Localizable.strings (English)

* New translations Localizable.strings (French)

* New translations Localizable.strings (Indonesian)

* New translations Localizable.strings (Indonesian)

* New translations Localizable.strings (Chinese Simplified)

* New translations Localizable.strings (Czech)

* New translations Localizable.strings (Ukrainian)

* New translations Localizable.strings (English (upside down))

Co-authored-by: Eilionoir Tunnicliff <[email protected]>
2023-01-20 10:46:21 -05:00
Duy Tran Khanh fcc7d8b2d4 Fix(iOS 12): fatal issues: dlopen, entitlement
* dlopening the main executable fails
* dlopening dylib fails due to codesign
* Installing PojavLauncher with AppSync causing
extended-virtual-addressing entitlement to be checked improperly

Current issue: it seems that Java 8 is broken on iOS 12
2023-01-20 21:42:51 +07:00
Duy Tran Khanh a08563ee36 Refactor egl_bridge.m: no longer preloading gl4es 2023-01-20 21:02:35 +07:00
Duy Tran Khanh 7220af520b Fix: incorrect handling of auto renderer for 1.17+ 2023-01-20 19:19:47 +07: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
khanhduytran0 9e03e36be7 Refactor: deduplicate code, use cleaner syntax 2023-01-20 08:36:26 +07:00
Eilionoir Tunnicliff 919ac3c58b Remove unneeded compiler argument 2023-01-19 19:21:46 -05:00
Eilionoir Tunnicliff 657530f9e3 Try workaround 2023-01-19 14:46:02 -05:00