Add optional Steam startup

This commit is contained in:
xXJsonDeruloXx committed 2026-09-27 09:27:30 -04:00
1 parent 0c8882fb26
commit 5110cb6b47
4 files changed
+42 -2

No files matched your search

@@ -313,6 +313,13 @@ object SessionPrefs {
prefs(context).edit().putString("steamChannel", id).apply()
}
/** Whether opening DroidDeck starts a Steam session instead of showing the front end. */
fun runSteamAtStartup(context: Context): Boolean = prefs(context).getBoolean("runSteamAtStartup", false)
fun setRunSteamAtStartup(context: Context, on: Boolean) {
prefs(context).edit().putBoolean("runSteamAtStartup", on).apply()
}
/**
* The folders of the user's own Windows games (one game per subfolder), any number of them
* from anywhere on the device. The single folder an earlier build kept is carried in.