diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 2efb0b20ae..a74978be8f 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -30,6 +30,7 @@ jobs: uses: dawidd6/action-download-artifact@v2 with: github_token: ${{secrets.LTW_CLONER_SECRET}} + repo: PojavLauncherTeam/BigTinyWrapper workflow: android.yml workflow_conclusion: success name: output-aar diff --git a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/Tools.java b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/Tools.java index ff0e57f2d3..18aef85a5f 100644 --- a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/Tools.java +++ b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/Tools.java @@ -1386,13 +1386,15 @@ public static RenderersList getCompatibleRenderers(Context context) { // Currently, only 32-bit x86 does not have the Zink binary boolean deviceHasZinkBinary = !(Architecture.is32BitsDevice() && Architecture.isx86Device()); boolean deviceHasOpenGLES3 = JREUtils.getDetectedVersion() >= 3; + // LTW is an optional proprietary dependency + boolean appHasLtw = new File(Tools.NATIVE_LIB_DIR, "libltw.so").exists(); List rendererIds = new ArrayList<>(defaultRenderers.length); List rendererNames = new ArrayList<>(defaultRendererNames.length); for(int i = 0; i < defaultRenderers.length; i++) { String rendererId = defaultRenderers[i]; if(rendererId.contains("vulkan") && !deviceHasVulkan) continue; if(rendererId.contains("zink") && !deviceHasZinkBinary) continue; - if(rendererId.contains("ltw") && !deviceHasOpenGLES3) continue; + if(rendererId.contains("ltw") && (!deviceHasOpenGLES3 || !appHasLtw)) continue; rendererIds.add(rendererId); rendererNames.add(defaultRendererNames[i]); }