Merge remote-tracking branch 'origin/main' into codex/unified-controller-input

This commit is contained in:
Delete228 committed 2026-11-06 18:50:33 +03:00
commit aa3757eff1
41 files changed
+110 -165

No files matched your search

@@ -0,0 +1,21 @@
package com.droiddeck.launcher.ui
import com.droiddeck.launcher.frontend.Library
import org.junit.Assert.assertFalse
import org.junit.Assert.assertTrue
import org.junit.Test
class SteamLaunchOptionsVisibilityTest {
private fun game(library: String = "main", source: String = Library.SOURCE_STEAM) =
Library.SteamGame(42, "Test game", null, library, source = source)
@Test fun nativeSteamGamesExposeLaunchOptionsOutsideShortcutPicking() {
assertTrue(canEditSteamLaunchOptions(game(), shortcutPicker = false))
}
@Test fun pickerAddedAndStoreGamesDoNotExposeSteamLaunchOptions() {
assertFalse(canEditSteamLaunchOptions(game(), shortcutPicker = true))
assertFalse(canEditSteamLaunchOptions(game(library = Library.ADDED), shortcutPicker = false))
assertFalse(canEditSteamLaunchOptions(game(source = "gog"), shortcutPicker = false))
}
}