mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
OpenXR - Freezing on Pico 4 fixed
This commit is contained in:
1 parent
1c6f491db4
commit
32c0f19df6
2 files changed
+4
-1
No files matched your search
@@ -159,6 +159,9 @@ class CameraHelper {
|
||||
|
||||
static ArrayList<String> getDeviceList() {
|
||||
ArrayList<String> deviceList = new ArrayList<>();
|
||||
if (NativeActivity.isVRDevice()) {
|
||||
return deviceList;
|
||||
}
|
||||
int nrCam = Camera.getNumberOfCameras();
|
||||
for (int index = 0; index < nrCam; index++) {
|
||||
try {
|
||||
|
||||
@@ -1557,7 +1557,7 @@ public abstract class NativeActivity extends Activity {
|
||||
}
|
||||
}
|
||||
|
||||
private boolean isVRDevice() {
|
||||
public static boolean isVRDevice() {
|
||||
return BuildConfig.FLAVOR.startsWith("vr_");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user