mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-21 22:05:59 +00:00
Deck mode: enable Steam's performance overlay controls
The Quick Access menu's performance overlay toggle and level slider stayed greyed out: the client exposes SteamClient.System.Perf only with -steamos3, which SteamOS and Armada pass alongside -steamdeck. Deck mode now launches the client with both. The session already puts package/beta back to the forced branch before every start, which keeps -steamos3's own branch switch from turning into an update loop. The Deck mode switch moves from the Performance page to the Steam page's Client settings, next to the client branch it selects by default.
This commit is contained in:
1 parent
b2eaf380dc
commit
2341659cea
5 files changed
+26
-21
No files matched your search
@@ -232,7 +232,7 @@ object SessionPrefs {
|
||||
fun noGlError(context: Context): Boolean = prefs(context).getBoolean("noGlError", true)
|
||||
fun setNoGlError(context: Context, on: Boolean) { prefs(context).edit().putBoolean("noGlError", on).apply() }
|
||||
|
||||
/** `steam -steamdeck -steamos3`: the client as SteamOS runs it. Expects Deck hardware; untested. */
|
||||
/** Runs the SteamOS gamepad client with its Quick Access performance controls. */
|
||||
fun steamDeckMode(context: Context): Boolean = prefs(context).getBoolean("steamDeckMode", false)
|
||||
fun setSteamDeckMode(context: Context, on: Boolean) { prefs(context).edit().putBoolean("steamDeckMode", on).apply() }
|
||||
|
||||
|
||||
Reference in new issue
Block a user