mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-19 13:00:12 -07:00
- Fix improper architecture detection
- Progressive transition towards a new architecture system
This commit is contained in:
parent
bcb9957e0c
commit
fed4fe74d5
4 changed files with 18 additions and 17 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue