mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-18 12:28:40 +00:00
Fix per-game screen effects profile resolution
This commit is contained in:
1 parent
f3383d226c
commit
20de27df0d
1 file changed
+7
-1
@@ -1988,9 +1988,15 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
private fun currentScreenEffectsProfileId(): String? {
|
||||
if (SessionState.running) return SessionPrefs.activeScreenEffectsProfileId(this)
|
||||
val mode = intent.getStringExtra(SessionService.EXTRA_MODE) ?: SessionService.MODE_STEAM
|
||||
val gameId = intent.getStringExtra(SessionService.EXTRA_GAME_ID)
|
||||
?.trim()
|
||||
?.takeIf { it.isNotEmpty() }
|
||||
?: intent.getStringExtra(SessionService.EXTRA_STEAM_URL)
|
||||
?.let { Regex("""(?:run|rungameid|launch)/(\d+)""", RegexOption.IGNORE_CASE).find(it)?.groupValues?.get(1) }
|
||||
|
||||
return SessionPrefs.screenEffectsProfileId(
|
||||
mode,
|
||||
intent.getStringExtra(SessionService.EXTRA_GAME_ID),
|
||||
gameId,
|
||||
intent.getStringExtra(SessionService.EXTRA_PROGRAM),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user