mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-24 23:36:04 +00:00
fix(storage): warn when game storage is formatted as FAT32 (#2883)
* fix(storage): warn when game storage is formatted as FAT32 FAT32 cannot hold files over 4 GB, so Steam games with larger files fail to install and Steam reports 'Not enough disk space'. Warn when such a card is chosen as game storage. * fix(storage): translate the FAT32 warning into Russian * fix(storage): warn about FAT32 for Automatic, extra libraries and store folders Show the FAT32 note in the Second library menu while the effective card is FAT32, so the default Automatic choice is covered, and warn when an additional Steam library or a store install folder is added. * fix(storage): shorten the FAT32 warning and warn on reselecting a saved folder * fix(storage): warn for the resolved store target and keep the SD note --------- Co-authored-by: Dennis Zabolotny <15849186+zdennisz@users.noreply.github.com>
This commit is contained in:
1 parent
64647e0d99
commit
76e0460064
7 files changed
+50
-2
No files matched your search
@@ -113,4 +113,18 @@ class GameStorageTest {
|
||||
SessionPrefs.setGameStorage(app, tmp.newFolder("plugged").path, "USB drive")
|
||||
assertFalse(GameStorage.disconnected(app))
|
||||
}
|
||||
|
||||
@Test fun onlyAVfatMountCountsAsFat32() {
|
||||
val mounts = """
|
||||
/dev/fuse /storage/emulated fuse rw 0 0
|
||||
/dev/block/vold/public:179,65 /mnt/media_rw/8C5A-1F23 vfat rw 0 0
|
||||
/dev/block/vold/public:8,1 /mnt/media_rw/1111-2222 exfat rw 0 0
|
||||
/dev/fuse /storage/8C5A-1F23 fuse rw 0 0
|
||||
""".trimIndent()
|
||||
assertTrue(GameStorage.isFat32("/storage/8C5A-1F23/Android/data/com.droiddeck.launcher/files/steam", mounts))
|
||||
assertTrue(GameStorage.isFat32("/mnt/media_rw/8C5A-1F23/Games", mounts))
|
||||
assertFalse(GameStorage.isFat32("/storage/1111-2222/Android/data/com.droiddeck.launcher/files/steam", mounts))
|
||||
assertFalse(GameStorage.isFat32("/storage/emulated/0/Android/data/com.droiddeck.launcher/files/steam", mounts))
|
||||
assertFalse(GameStorage.isFat32("/storage/8C5A-1F230/Games", mounts))
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user