mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
OpenXR - Freezing on Pico 4 fixed
This commit is contained in:
parent
1c6f491db4
commit
32c0f19df6
2 changed files with 4 additions and 1 deletions
|
@ -159,6 +159,9 @@ class CameraHelper {
|
||||||
|
|
||||||
static ArrayList<String> getDeviceList() {
|
static ArrayList<String> getDeviceList() {
|
||||||
ArrayList<String> deviceList = new ArrayList<>();
|
ArrayList<String> deviceList = new ArrayList<>();
|
||||||
|
if (NativeActivity.isVRDevice()) {
|
||||||
|
return deviceList;
|
||||||
|
}
|
||||||
int nrCam = Camera.getNumberOfCameras();
|
int nrCam = Camera.getNumberOfCameras();
|
||||||
for (int index = 0; index < nrCam; index++) {
|
for (int index = 0; index < nrCam; index++) {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -1557,7 +1557,7 @@ public abstract class NativeActivity extends Activity {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isVRDevice() {
|
public static boolean isVRDevice() {
|
||||||
return BuildConfig.FLAVOR.startsWith("vr_");
|
return BuildConfig.FLAVOR.startsWith("vr_");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue