mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Buildfix, restore lost check
This commit is contained in:
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)) {
|
||||
|
||||
Reference in new issue
Block a user