Android: Use user directory for memcard root

This commit is contained in:
Connor McLaughlin 2021-03-21 02:54:04 +10:00
parent 93087d3c45
commit a5e316b916
1 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,8 @@ public class MemoryCardImage {
}
public static Uri[] getCardUris(Context context) {
final String directory = "/sdcard/duckstation/memcards";
final String directory = String.format("%s/memcards",
AndroidHostInterface.getUserDirectory());
final ArrayList<Uri> results = new ArrayList<>();
if (directory.charAt(0) == '/') {