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:
Dennis ZabolotnyandDennis Zabolotny authored and GitHub committed 2026-11-24 16:16:40 -05:00
1 parent 64647e0d99
commit 76e0460064
7 files changed
+50 -2

No files matched your search

@@ -637,6 +637,7 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
}
private var storageDiagnostics by mutableStateOf(false)
private var storageOptions by mutableStateOf<List<GameStorage.Option>>(emptyList())
private var storageFat32 by mutableStateOf(false)
private val pickGameStorage = registerForActivityResult(ActivityResultContracts.StartActivityForResult()) { r ->
if (r.resultCode == RESULT_OK) InAppFilePicker.pickedPath(r.data)?.let { path -> setGameStorage(path, GameStorage.labelFor(this, path)) }
}
@@ -652,6 +653,7 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
private fun addSteamLibrary(path: String) {
Thread({
val result = SteamLibraries.add(this, path)
val fat32 = result is SteamLibraries.AddResult.Added && GameStorage.isFat32(result.entry.path)
ui.post {
steamLibraries = SteamLibraries.list(this)
refreshFoundSteamLibraries()
@@ -662,6 +664,7 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
result is SteamLibraries.AddResult.Added && result.entry.path != path ->
android.widget.Toast.makeText(this, getString(R.string.libraries_used_inner, result.entry.label), android.widget.Toast.LENGTH_LONG).show()
}
if (fat32) android.widget.Toast.makeText(this, R.string.main_storage_fat32, android.widget.Toast.LENGTH_LONG).show()
}
}, "steam-library-add").start()
}
@@ -2668,6 +2671,7 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
mic = if (mode == SessionService.MODE_STEAM) mic else null,
gameStorage = if (mode == SessionService.MODE_STEAM) gameStorage else null,
storageOptions = storageOptions,
storageFat32 = storageFat32,
steamLibraries = steamLibraries,
foundSteamLibraries = foundSteamLibraries,
allFilesAccessMissing = allFilesAccessMissing,
@@ -3090,10 +3094,12 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
Thread({
drivers.refreshDrivers()
val storage = GameStorage.options(this)
val fat32 = GameStorage.effective(this)?.path?.let(GameStorage::isFat32) == true
val deckyInstalled = if (mode == SessionService.MODE_STEAM) DeckyManager.installed(this) else null
val deckySupervisor = mode == SessionService.MODE_STEAM && DeckyManager.supervisorEnabled(this)
ui.post {
storageOptions = storage
storageFat32 = fat32
if (mode == SessionService.MODE_STEAM) {
decky.deckyInstalled = deckyInstalled
decky.deckySupervisor = deckySupervisor
@@ -3115,6 +3121,8 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
}
SessionPrefs.setGameStorage(this, path, label)
gameStorage = path
storageFat32 = GameStorage.effective(this)?.path?.let(GameStorage::isFat32) == true
if (storageFat32) android.widget.Toast.makeText(this, R.string.main_storage_fat32, android.widget.Toast.LENGTH_LONG).show()
checkUsbLink()
if (settingsMode == SessionService.MODE_STEAM) refreshFoundSteamLibraries()
}