Buildfix, restore lost check

This commit is contained in:
Henrik Rydgård committed 2026-08-07 11:27:45 +02:00
1 parent cac10caed7
commit 9c8a4035ef
2 files changed
+4 -2

No files matched your search

@@ -308,7 +308,9 @@ public class PpssppActivity extends AppCompatActivity implements SensorEventList
if (externalFilesDirs != null) {
for (File dir : externalFilesDirs) {
if (dir != null) {
// getExternalFilesDirs() can return a non-null path for a card slot with no
// media inserted, so make sure it's actually mounted before trusting it.
if (dir != null && Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState(dir))) {
String root = getRootOfInnerSdCardFolder(dir);
if (root != null && !root.equalsIgnoreCase(primaryRoot)) {
if (!result.contains(root)) {