3160 Commits

Author SHA1 Message Date
Duy Tran Khanh
bca639b809
Fix: wrong gl4es when renderer is opengles2_5 2021-06-25 05:08:20 +07:00
ArtDev
b7b2c4868c
[TEST] Remove the JVM from LD_LIBRARY_PATH 2021-06-25 00:06:30 +03:00
Duy Tran Khanh
4a90c8f124
Merge Zink renderer to upstream (#1585)
* OSMesa EGLBridge

* It renders a gray screen with Zink!

* Image

* Added missing file: gl/glext.h

* Added jniLibs/arm64-v8a/libOSMesa_8.so

* Load built-in libOSMesa when dev lib not available

* Added jniLibs/x86_64/libOSMesa_8.so

* Start trying to use Android's internal APIs to manage framebuffers

* Automatic stride to un-broke the image

* DMA

* Update lwjgl3 version

* Update LauncherPreferences.java

Temporary force set, to fix #1121

* Remove ndk.abiFilters

* Re-add ndk.abiFilters but for 64bit archs only

* Fixed x86_64 libOSMesa_8.so

* Fix buffer size

* [WIP] Force enable VK ext for GL 3.0

* WIP force ext

* Attempt get Zink GL 3.0 by force enable some exts

* Just missing ;;

* Mesa3D: set OpenGL version to 4.6

* Added Zink to renderer list

* Fixed the renderer check

* Maybe correct the switch between gl4es and zink

* Update JREUtils.java

fixes from https://github.com/sp614x/optifine/issues/420

* also set glsl version

* [NOT TESTED] (DO NOT TRY DEVS ONLY) upstream mesa to staging mesa branch

* upstream mesa once again

* Revert "upstream mesa once again"

This reverts commit ccb0f429b707c6fed1376809bb978e7eb8230222.

* add arm32

* Enable building for arm32

* Attempt fix auto change to libname libOSMesa

* Attempt fix (2/2)?

* Added missed `break`, should fix gl4es crashes

* Update JREUtils.java

* Support OpenJDK 17 runtime environment (internal)

* Update JREUtils.java

* [zink] use RGBA instead of RGB

Some mobile GPUs does not support RGB format, so switching to RGBA is necessary. However, native window is set to RGBX to ignore alpha channel.

* Move jreReleaseList to here

* Update BaseMainActivity.java

* Fixes (#1525)

* import java.util.Map
* fix: String cannot be converted to boolean
* Fixes
* Put readJREReleaseProperties to try catch

* Remove loading libtinyiconv.so (statically linked)

* lets do this

* upsteam to the staging branch of 21.0

* [zink] exports OpenGL 4.6 again

Limit OpenGL version does nothing other than deny the game to use it, so limiting is probably useless. Also, this is a lie that user see "export OpenGL 4.6" in renderer list but see "OpenGL 3.2" when enter game. Therefore, change back to OpenGL 4.6.

* New string: mcn_check_fail_vulkan_support

* [not yet finish] error if GPU doesn’t have Vulkan

* [not yet finished] error if vulkan is unsupported

* Additional checks for Vulkan support state

* Changes about gl4es renderers

* Define new renderer: opengles2_5 g4es 1.1.4

Also, change how gl4es renderers works

* Filter out "_5"

* Don’t allow custom OpenGL libname from jvm args

* Update strings.xml

* Update headings_array.xml

* Update headings_array.xml

* Update strings.xml

* Unreachable code

* Enable build for 32-bit x86 (zink not added!)

* Changes from upstream and security changes (#1575)

* import java.util.Map

* fix: String cannot be converted to boolean

* Fixes

* Put readJREReleaseProperties to try catch

* Attempt to redirect signal handler to JVM

* @artdeell: missed \n in printf

* Missed include errno.h

* Comment out last changes

* try and optimise gl4es with flags

* corect format

* dont shrink textures

* does notting

* Fix issue #1199

* Filter out Session ID on new log pipe

* int index

* Debug: print all env vars to latestlog.txt

Co-authored-by: artdeell
Co-authored-by: rhjdvsgsgks
Co-authored-by: LegacyGamerHD
Co-authored-by: Boulay Mathias
2021-06-24 19:51:56 +07:00
Boulay Mathias
76b185e3b5
Revision of .apk versioning (SerpentSpirale@PojavLauncher#1576)
* Add a way more robust version system.

* Improve lisibility of the version name.

* Add a fallback for non git users

* attempt at ignoring return value

* attempt 2 at fallback for non git users

* re-added try/catch

* Fix call to null function

* use of return statement when needed

* Add git to the workflow

* Create deliberate crash

* Force fetch all repo

* Attempt to only fetch tags

* add remote ?

* Reset full repo download 👀

* Change no-git to LOCAL

* added BRANCH on the version name

* build is now more resilient

* Remove useless symbols
2021-06-23 17:38:39 +03:00
Duy Tran Khanh
0085264717
int index 2021-06-22 10:09:46 +07:00
Duy Tran Khanh
9e4d4de70d
Filter out Session ID on new log pipe 2021-06-22 09:47:16 +07:00
Duy Tran Khanh
ab8c1e74e4
(3/?) move session id filter 2021-06-22 09:29:58 +07:00
Duy Tran Khanh
1598b2c995
(2/?) move session id filter 2021-06-22 08:39:55 +07:00
Duy Tran Khanh
2af8f54687
(1/?) Move Session ID filter 2021-06-22 08:37:46 +07:00
Boulay Mathias
20d7fa383a
Fix issue #1199 2021-06-18 18:29:33 +02:00
LegacyGamerHD
3db8fd76bf
does notting 2021-06-15 20:54:54 +02:00
LegacyGamerHD
13d83457a6
dont shrink textures 2021-06-13 19:13:50 +02:00
LegacyGamerHD
9ea8bbf14a
corect format 2021-06-13 19:07:04 +02:00
LegacyGamerHD
016f7c44b2
try and optimise gl4es with flags 2021-06-13 19:06:03 +02:00
Duy Tran Khanh
d5f59a661b
Comment out last changes 2021-06-12 19:29:37 +07:00
Duy Tran Khanh
b78562ebf7
Missed include errno.h 2021-06-12 18:54:31 +07:00
Duy Tran Khanh
f8a22c6b1c
@artdeell: missed \n in printf 2021-06-12 18:52:55 +07:00
Duy Tran Khanh
ad726d1006
Attempt to redirect signal handler to JVM 2021-06-12 18:50:42 +07:00
Duy Tran Khanh
2f294a9002
Put readJREReleaseProperties to try catch 2021-06-12 06:09:00 +07:00
Duy Tran Khanh
6987fafd1a
Fixes 2021-06-12 06:06:07 +07:00
Duy Tran Khanh
adb4161542
fix: String cannot be converted to boolean 2021-06-12 05:48:31 +07:00
Duy Tran Khanh
961ab6cb7c
import java.util.Map 2021-06-12 05:46:53 +07:00
Duy Tran Khanh
18f251e9c6
Print selected Minecraft version to latestlog.txt 2021-06-12 05:18:02 +07:00
Duy Tran Khanh
7caff641ec
tab -> spaces 2021-06-12 05:14:06 +07:00
Duy Tran Khanh
296fd2ee90
Disable headful AWT if installed java version ≠ 8 2021-06-12 05:06:41 +07:00
Duy Tran Khanh
a2fd82979e
Load jreReleaseList here 2021-06-12 05:00:57 +07:00
Duy Tran Khanh
63ddde53ae
Move jreReleaseList 2021-06-12 04:59:00 +07:00
Duy Tran Khanh
6b162101d9
Move jreReleaseList 2021-06-12 04:58:18 +07:00
Duy Tran Khanh
a5b8757c52
dlopen libtinyiconv, use global release map 2021-06-12 04:57:27 +07:00
Duy Tran Khanh
1484a80572
Move jreReleaseList here 2021-06-12 04:53:33 +07:00
Duy Tran Khanh
127bddd24a
Support OpenJDK 17 runtime environment (internal) 2021-06-11 18:10:12 +07:00
Duy Tran Khanh
63251c0dc0
Update Tools.java 2021-06-03 13:32:53 +07:00
Duy Tran Khanh
6c114875ba
Set launcher brand 2021-06-03 06:38:24 +07:00
Duy Tran Khanh
78f5ce7839
Set width height anyways 👀 2021-06-03 06:27:26 +07:00
Duy Tran Khanh
4b16bd2120
fix 2021-06-02 07:50:16 +07:00
Duy Tran Khanh
84434f1869
tf password check :trollface: 2021-06-02 07:41:51 +07:00
Duy Tran Khanh
8c5f5da516
Bring back this dirty compile trick :trollface:
it may buggy but idk
2021-05-30 14:25:11 +07:00
Duy Tran Khanh
8c2f7d39dc
strings.xml: \’ 2021-05-30 14:02:23 +07:00
Duy Tran Khanh
d54ca885ea
wrong place fixing account index 2021-05-30 12:35:07 +07:00
Duy Tran Khanh
b0ecb36120
Don’t let an offline account with password login
Users may be confusing about account, when they input Mojang account but enable offline, it may leak the email. This added a sanity check to prevent it. Later may add email detection and prevent further.
2021-05-30 12:33:28 +07:00
Duy Tran Khanh
c4a743be4d
Update strings.xml 2021-05-30 12:19:43 +07:00
Duy Tran Khanh
00ec352fe7
Move android:hasFragileUserData to right place
Backport from be7ed14
2021-05-27 20:43:47 +07:00
Duy Tran Khanh
5397a6f1bb
Merge pull request #1089 from PojavLauncherTeam/l10n_v3_openjdk2
New Crowdin updates
2021-05-27 11:26:33 +07:00
Duy Tran Khanh
181932570b New translations strings.xml (Arabic) 2021-05-26 17:57:59 +07:00
Duy Tran Khanh
e64be0922f New translations strings.xml (Arabic) 2021-05-26 16:57:56 +07:00
Duy Tran Khanh
24f317c0bf New translations strings.xml (Russian (pre-revolutionary)) 2021-05-25 19:39:12 +07:00
Duy Tran Khanh
aa18246798
Update .gitignore 2021-05-24 05:26:16 +07:00
Duy Tran Khanh
32c1d6fde0
Update Tools.java 2021-05-23 16:03:44 +07:00
Duy Tran Khanh
552f1e4453
Documents some of them 2021-05-23 16:01:23 +07:00
Duy Tran Khanh
21db071127
Reverse overrideableArgList loop 2021-05-23 15:32:30 +07:00