Commit graph

55 commits

Author SHA1 Message Date
artdeell
67fac9a610 Changes
"Localize" renderer selection mechanism to several other classes
Add renderer changer to Per-Version Config
Move Per-Version Config to a separate class
2021-07-22 16:20:38 +03:00
artdeell
a7135cac1d Don't launch MC while the memory allocation dialog is opened 2021-07-22 13:28:49 +03:00
artdeell
ed5ef3c749 Add a simplistic multi-runtime manager class to prepare for multi-runtime features 2021-07-12 17:51:31 +03:00
Duy Tran Khanh
c0034126ca
Fixes ResConfHack not working 2021-07-04 12:48:16 +07: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
Duy Tran Khanh
296fd2ee90
Disable headful AWT if installed java version ≠ 8 2021-06-12 05:06:41 +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
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
Duy Tran Khanh
88f594b3f7
Filter out empty jvm arguments 2021-05-23 15:24:04 +07:00
Duy Tran Khanh
1744418bd9
Wrong branch.. 2021-05-02 19:53:23 +07:00
Duy Tran Khanh
c5f03607df
Early access of scoped storage :trollface: 2021-05-02 19:52:33 +07:00
artdeell
b7220184ab Manual RAM allocator 2021-03-20 16:27:01 +03:00
khanhduytran0
614e56edcb Rename libgl04es to libgl4es_114 2021-02-16 07:06:32 +07:00
artdeell
69531f09cc Library SHA checker 2021-02-15 14:11:33 +03:00
ArtDev
9e14381b32 Start moving Pojav modules outside of the game directory 2021-02-14 17:31:56 +07:00
Duy Tran Khanh
72346341ab
Set java.awt.headless to always false 2021-02-14 09:26:00 +07:00
artdeell
84b4f53a9b PVC first build 2021-02-13 18:19:23 +03:00
Duy Tran Khanh
6d6c535cfe
[AWT] Set X11FontManager as default for Impact 2021-02-05 21:19:47 +07:00
Duy Tran Khanh
63ece80954 Fix rare bug: show dialog when Activity finishing 2021-02-05 12:37:41 +07:00
Duy Tran Khanh
329cbca489
Enable use of FreetypeFontScaler for all modes 2021-02-03 06:01:40 +07:00
SerpentSpirale
d8ea3c63bb - Fixed fallback API implementation 2021-02-02 15:17:01 +01:00
Duy Tran Khanh
fdf8fefd17
Update Tools.java 2021-02-02 21:05:22 +07:00
Duy Tran Khanh
9f54be3156
Fixes API compatibility
~~No longer save bytes 😂~~
2021-02-02 21:01:47 +07:00
ArtDev
60d2a1b3dd Make use of the "map_to_resources" flag 2021-01-31 21:43:04 +03:00
ArtDev
e09df4d847 Update the version list to support some custom versions: reduce RAM usage by a bit 2021-01-31 20:56:39 +03:00
ArtDev
73858f8ec4 Update the version list to support some custom versions 2021-01-31 20:56:39 +03:00
artdeell
1564ef6138 Enable Caciocavallo for all versions 2021-01-31 15:42:39 +03:00
artdeell
d7acd362e2 Auto-download inherited version if it does not exist 2021-01-31 00:10:33 +03:00
LegacyGamerHD
a6231271cc
Merge pull request #747 from serpentspirale/v3_openjdk
Small UX improvements
2021-01-30 10:59:17 +00:00
SerpentSpirale
21969090b1 - Updated getDisplayMetrics to make use of compilation API level 30.
- The display width is now properly took into account.
- Introduced a ignore notch setting. (design not finished)
- Use proper split screen detection.
- Proper resizing for minecraft view.
- Removed inversion of width and height when the height is greater than the height.
2021-01-29 16:46:26 +01:00
khanhduytran0
201d8bb183 [AWT renderer] change field window to physical 2021-01-28 20:31:59 +07:00
SerpentSpirale
e826937f44 - Introduced the ability to ignore notches (API28+) 2021-01-28 13:44:18 +01:00
khanhduytran0
31b44a830e Enable Caciocavallo for mod install launcher 2021-01-28 14:17:28 +07:00
Duy Tran Khanh
c4548c0494
Comment out full args print 2021-01-22 16:43:29 +07:00
ArtDev
ac4c4ccf09 Add experimental resolution changer 2021-01-17 22:09:13 +03:00
artdeell
ddd9a27cdb Add automatic memory adjuster 2021-01-16 21:48:25 +03:00
artdeell
2c4619c462 Update the icons & fix the alpha versions not starting bug 2021-01-16 17:53:12 +03:00
Duy Tran Khanh
1b507bb583 Attempt to fix crash on #619 2021-01-16 17:13:59 +07:00
Duy Tran Khanh
e70958d9a2 Merge branch 'v3_openjdk' of git@github.com:PojavLauncherTeam/PojavLauncher.git 2021-01-16 17:05:55 +07:00
Duy Tran Khanh
2171a485de Get MC b1.4-1.5.2 works by stub DrawGlyphList.java 2021-01-16 15:09:19 +07:00
Duy Tran Khanh
eee95f98f5
Back to NullFontScaler due to earlier crash 2021-01-16 14:10:06 +07:00
Duy Tran Khanh
d27393164a [Cacio] restore to previous cacio 2021-01-16 14:02:16 +07:00
Duy Tran Khanh
0c74d85ddc [cacio] Set scaler 2021-01-16 13:40:25 +07:00
Duy Tran Khanh
298ceff15b
Only add caciocavallo properties when necessary 2021-01-16 11:12:13 +07:00
khanhduytran0
f6836e75e6 Integrated Caciocavallo to classpath to support launch b1.3_01 and older 2021-01-16 09:45:20 +07:00