- Fix improper architecture detection

- Progressive transition towards a new architecture system
This commit is contained in:
SerpentSpirale 2021-08-11 16:46:55 +02:00
parent bcb9957e0c
commit fed4fe74d5
4 changed files with 18 additions and 17 deletions

View file

@ -1,5 +1,7 @@
package net.kdt.pojavlaunch;
import static net.kdt.pojavlaunch.Architecture.ARCH_X86;
import android.app.*;
import android.content.*;
import android.content.pm.PackageManager;
@ -763,7 +765,7 @@ public class BaseMainActivity extends LoggableActivity {
}
private void checkVulkanZinkIsSupported() {
if (Tools.CURRENT_ARCHITECTURE.equals("x86")
if (Tools.CURRENT_ARCHITECTURE == ARCH_X86
|| Build.VERSION.SDK_INT < 25
|| !getPackageManager().hasSystemFeature(PackageManager.FEATURE_VULKAN_HARDWARE_LEVEL)
|| !getPackageManager().hasSystemFeature(PackageManager.FEATURE_VULKAN_HARDWARE_VERSION)) {