mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-11 11:01:07 +00:00
First Steam session: Play sends no mode, and no mode is Steam - seed the Proton then too
This commit is contained in:
1 parent
dcbfc0bb06
commit
bc2d85d496
1 file changed
+1
-1
@@ -237,7 +237,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
|
||||
val needRuntime = com.droiddeck.launcher.runtime.LinuxRuntimeInstaller.installedVersion(this) == null
|
||||
val needDesktop = intent.getStringExtra(SessionService.EXTRA_MODE) == SessionService.MODE_DESKTOP &&
|
||||
!com.droiddeck.launcher.runtime.DesktopCatalog.desktopInstalled(this)
|
||||
val needProton = intent.getStringExtra(SessionService.EXTRA_MODE) == SessionService.MODE_STEAM &&
|
||||
val needProton = (intent.getStringExtra(SessionService.EXTRA_MODE) ?: SessionService.MODE_STEAM) == SessionService.MODE_STEAM &&
|
||||
com.droiddeck.launcher.runtime.DesktopCatalog.protonSeedNeeded(this)
|
||||
if (needRuntime || needDesktop || needProton) installThenStart(needRuntime, needDesktop, needProton)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user