feat(library): owned Steam games list in the Library like the other stores

Owned Steam games the client has not installed join the Library's Steam tab
(no second Steam tab, no duplicate of an installed game) and install from
their page with the store engine into the Steam library the user picks.
Favorites made before the install carry over.

- Steam's sign-in card opens Steam, which is where the account signs in.
- Removing a Steam game goes through the engine, which removes what the
  client removes (manifest, depot cache, libraryfolders entries, unshared
  redistributables) and refuses while Steam may be running; the old file
  delete stays as the fallback.
- A game with a Linux build that is not mapped to a Proton is not installed
  by the engine: the client would install the Linux build, so the page says
  to install it from Steam.
- Play on a finished Steam download opens the installed game.
This commit is contained in:
Kurt Himebauch committed 2026-11-26 08:53:53 -05:00
1 parent cdd7ba06c1
commit 4fc0799c5b
41 files changed
+93 -66

No files matched your search

@@ -3096,6 +3096,10 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
return
}
val target = com.droiddeck.launcher.frontend.GameRemoval.steamFiles(g) ?: return
if (Library.fromSteamClient(g)) {
com.droiddeck.launcher.stores.steam.SteamStore.uninstall(this, g.appId, fallback = { com.droiddeck.launcher.frontend.GameRemoval.delete(target) }) { refreshAddedGames(); refresh() }
return
}
Thread({
com.droiddeck.launcher.frontend.GameRemoval.delete(target)
ui.post { refreshAddedGames(); refresh() }
@@ -15,6 +15,9 @@ enum class Store(val id: String, val label: String, val shortLabel: String) {
val folder: String get() = if (this == ITCH) "itch" else shortLabel
/** The Library tab its games list under: Steam's are the Steam client's own tab. */
val librarySource: String get() = if (this == STEAM) com.droiddeck.launcher.frontend.Library.SOURCE_STEAM else id
companion object {
fun byId(id: String?): Store? = entries.firstOrNull { it.id == id }
}
@@ -49,16 +49,18 @@ internal object SteamStore {
var picking by mutableStateOf<CatalogItem?>(null)
class Plan(val installDir: String, val downloadBytes: Long, val installBytes: Long, val buildId: String) {
class Plan(val installDir: String, val downloadBytes: Long, val installBytes: Long, val buildId: String, val linuxBuild: Boolean) {
companion object {
fun of(json: JSONObject): Plan? {
if (!json.optBoolean("ok")) return null
val dir = json.optString("installDir").takeIf { SteamStore.validDir(it) } ?: return null
return Plan(dir, json.optLong("downloadBytes"), json.optLong("installBytes"), json.optString("buildId"))
return Plan(dir, json.optLong("downloadBytes"), json.optLong("installBytes"), json.optString("buildId"), json.optBoolean("linuxBuild"))
}
}
}
internal const val LINUX_BUILD = "linux_build"
private val plans = ConcurrentHashMap<Int, Plan>()
private val work = Executors.newSingleThreadExecutor { r -> Thread(r, "steam-store") }
@Volatile private var rejectedThisRun: String? = null
@@ -80,6 +82,7 @@ internal object SteamStore {
val error = answer.optString("error")
return when {
error == SteamEngine.MISSING -> SteamEngine.MISSING_TEXT
error == LINUX_BUILD -> context.getString(R.string.steam_store_linux_build)
isSignInError(error) -> context.getString(R.string.stores_login_title, Store.STEAM.label)
error.isBlank() -> "Steam: install failed"
else -> error
@@ -218,13 +221,20 @@ internal object SteamStore {
/** Reaches the network; call off the main thread. */
internal fun plan(context: Context, appId: Int, language: String = SteamClient.language(context)): Pair<Plan?, JSONObject> {
plans[appId]?.let { return it to JSONObject().put("ok", true) }
val answer = SteamEngine.plan(context, appId, language)
val plan = Plan.of(answer)
val error = answer.optString("error")
if (plan != null) plans[appId] = plan
else if (isSignInError(error)) signInFailed(context, error)
return plan to answer
val plan = plans[appId] ?: run {
val answer = SteamEngine.plan(context, appId, language)
val error = answer.optString("error")
if (isSignInError(error)) signInFailed(context, error)
Plan.of(answer)?.also { plans[appId] = it } ?: return null to answer
}
if (plan.linuxBuild && !protonMapped(context, appId)) return null to SteamEngine.failure(LINUX_BUILD)
return plan to JSONObject().put("ok", true)
}
/** The engine installs the Windows depots; a game with a Linux build gets those from the client only when it is mapped to a Proton. */
private fun protonMapped(context: Context, appId: Int): Boolean {
val config = runCatching { File(SteamClient.root(context), "config/config.vdf").readText() }.getOrNull() ?: return false
return SteamStorage.compatMappings(config)[appId.toString()]?.contains("proton", ignoreCase = true) == true
}
internal fun plannedBytes(context: Context, item: CatalogItem): Long =
@@ -270,7 +280,8 @@ internal object SteamStore {
DownloadQueue.enqueue(app, entry) { SteamInstallJob(app, appId, guest) }
}
fun uninstall(context: Context, appId: Int, onDone: () -> Unit = {}) {
/** Removes a game like the client does; [fallback] deletes it when the engine cannot (no engine, or a library it does not map). */
fun uninstall(context: Context, appId: Int, fallback: () -> Unit, onDone: () -> Unit = {}) {
val app = context.applicationContext
if (SteamClient.clientMayRun()) {
toast(app, R.string.steam_store_close_steam)
@@ -282,11 +293,10 @@ internal object SteamStore {
Thread({
val answer = runCatching {
val game = SteamLibraryFolders.installed(SteamClient.libraries(app))[appId]
if (game == null) JSONObject().put("ok", true)
else {
val engine = SteamClient.engineLibraries(app)
SteamEngine.uninstall(appId, SteamClient.root(app).absolutePath, engine.hostOf(game.library).absolutePath, game.library.guest, engine.json)
}
val engine = SteamClient.engineLibraries(app)
val answer = if (game == null) SteamEngine.failure(SteamEngine.MISSING)
else SteamEngine.uninstall(appId, SteamClient.root(app).absolutePath, engine.hostOf(game.library).absolutePath, game.library.guest, engine.json)
if (answer.optString("error") == SteamEngine.MISSING) { fallback(); JSONObject().put("ok", true) } else answer
}.getOrElse { SteamEngine.failure(it.javaClass.simpleName) }
val ok = answer.optBoolean("ok")
StoresState.logLine(if (ok) "Steam: uninstalled $appId" else "Steam: uninstall of $appId failed: ${answer.optString("error")}")
@@ -117,7 +117,6 @@ import com.droiddeck.launcher.stores.StoreSizes
import com.droiddeck.launcher.stores.StoresState
import com.droiddeck.launcher.stores.gamejolt.GameJoltApi
import com.droiddeck.launcher.stores.battlenet.BattleNetInstall
import com.droiddeck.launcher.stores.steam.SteamStore
import com.droiddeck.launcher.stores.download.DownloadQueue
import com.droiddeck.launcher.stores.download.DownloadState
import com.droiddeck.launcher.stores.formatBytes
@@ -184,7 +183,7 @@ internal fun GameDetail(
if (nothing) return
val source = game?.source ?: store?.id ?: Library.SOURCE_STEAM
val title = game?.name ?: item?.title ?: installed?.sidecar?.title ?: id.orEmpty()
val favoriteKey = if (store != null && id != null) "${store.id}:$id" else game?.let { GameRef.key(it) } ?: key
val favoriteKey = if (store == Store.STEAM && id != null) "app:$id" else if (store != null && id != null) "${store.id}:$id" else game?.let { GameRef.key(it) } ?: key
val scores = if (source != Library.ADDED) rememberGameScores(title.takeIf { it.isNotBlank() && it != id }) else null
val achievements = remember(store, id, item?.accessible, installed) {
when {
@@ -245,7 +244,7 @@ internal fun GameDetail(
if (installed != null && installed.sidecar.store == Store.ITCH) ItchCheckButton(installed)
if (installed != null && installed.sidecar.store == Store.GAMEJOLT) GameJoltCheckButton(installed)
FavoriteButton(favoriteKey)
if (store == Store.STEAM) SteamRemoveButton(title, id?.toIntOrNull(), a) else RemoveButton(title, game, installed, a)
RemoveButton(title, game, installed, a)
}
}
}
@@ -890,43 +889,6 @@ internal fun RemoveButton(title: String, game: Library.SteamGame?, installed: In
)
}
@Composable
private fun SteamRemoveButton(title: String, appId: Int?, a: FrontEndActions) {
val ctx = LocalContext.current
val colors = MaterialTheme.colorScheme
val game = appId?.let { SteamStore.installed[it] } ?: return
val key = SteamStore.key(game.appId)
if (StoresState.uninstalling[key] != null) {
val uninstalling = stringResource(R.string.stores_uninstalling)
Box(contentAlignment = Alignment.Center, modifier = Modifier.size(40.dp).glass(CircleShape).semantics { contentDescription = uninstalling }) {
CircularProgressIndicator(strokeWidth = 2.dp, color = colors.error, modifier = Modifier.size(20.dp))
}
return
}
val heading = stringResource(R.string.stores_uninstall_title, title)
val body = if (game.sizeOnDisk > 0) stringResource(R.string.stores_uninstall_body_size, formatBytes(game.sizeOnDisk)) else stringResource(R.string.games_uninstall_body)
val keep = stringResource(R.string.stores_notification_keep)
val remove = stringResource(R.string.stores_uninstall)
val busy = StoresState.download(key)?.isActive == true
val placed = remember { arrayOfNulls<androidx.compose.ui.layout.LayoutCoordinates>(1) }
Box(Modifier.onGloballyPositioned { placed[0] = it }) {
IconAction(Icons.Outlined.Delete, remove, "game:remove", danger = true, enabled = !busy, frosted = true) {
val at = placed[0]?.takeIf { it.isAttached }?.boundsInRoot() ?: return@IconAction
var confirmed = false
Steps.ask(StepAsk(anchor = at, side = StepSide.Left, accent = colors.error, items = 3, pillCorner = 12.dp, maxWidth = 340.dp,
onDismiss = { if (confirmed) SteamStore.uninstall(ctx, game.appId) { StoresState.refresh(ctx); a.onLibraryChanged() } },
handle = { Icon(Icons.Outlined.Delete, null, tint = colors.error, modifier = Modifier.size(18.dp)) }) {
StepTitle(heading)
Text(body, fontSize = 13.sp, lineHeight = 18.sp, color = colors.onSurfaceVariant, modifier = Modifier.stepItem(1).padding(start = 4.dp, bottom = 12.dp))
Row(horizontalArrangement = Arrangement.spacedBy(8.dp, Alignment.End), modifier = Modifier.fillMaxWidth().stepItem(2)) {
StepChoice(keep, enabled = open, modifier = Modifier.focusRequester(first)) { Steps.fold() }
StepChoice(remove, danger = true, enabled = open) { confirmed = true; Steps.fold() }
}
})
}
}
}
@Composable
private fun InstallButton(label: String, modifier: Modifier = Modifier, onInstall: () -> Unit) {
val placed = remember { arrayOfNulls<androidx.compose.ui.layout.LayoutCoordinates>(1) }
@@ -139,7 +139,8 @@ internal class LibraryEntry(
val game: Library.SteamGame?, val item: CatalogItem?, val installed: Boolean,
) {
val storeKey: String? get() = item?.key ?: game?.storeId?.let { "${game.source}:$it" }
val favoriteKey: String get() = storeKey ?: key
/** A Steam game keeps the key it has once the Steam client lists it, so favoriting it before the install carries over. */
val favoriteKey: String get() = if (item?.store == Store.STEAM) "app:${item.id}" else storeKey ?: key
}
internal fun libraryEntries(
@@ -149,6 +150,7 @@ internal fun libraryEntries(
val out = ArrayList<LibraryEntry>()
for (g in games.sortedBy { it.library == Library.XBOX_CLOUD }) {
if (g.library == Library.EPIC_LAUNCHER) continue
if (Library.fromSteamClient(g)) claimed.add("${Store.STEAM.id}:${g.appId}")
val storeKey = g.storeId?.let { "${g.source}:$it" }
val item = storeKey?.let { k -> Store.byId(g.source)?.let { st -> owned[st]?.firstOrNull { it.key == k } } }
if (storeKey != null) {
@@ -158,9 +160,9 @@ internal fun libraryEntries(
out += LibraryEntry(GameRef.key(g), g.source, g.name, g, item,
installed = g.library != Library.XBOX_CLOUD || storeKey in installedStore)
}
for (store in Store.entries) if (store != Store.STEAM) for (item in owned[store].orEmpty()) {
for (store in Store.entries) for (item in owned[store].orEmpty()) {
if (!claimed.add(item.key)) continue
out += LibraryEntry(GameRef.key(item), store.id, item.title, null, item, installed = item.key in installedStore)
out += LibraryEntry(GameRef.key(item), store.librarySource, item.title, null, item, installed = item.key in installedStore)
}
return out.distinctBy { it.key }
}
@@ -297,7 +299,7 @@ internal object LibraryView {
fun showOwned(context: android.content.Context, store: Store) {
SessionPrefs.setLibraryShowUninstalled(context, true)
ownedRequest++
source = store.id
source = store.librarySource
query = ""
focusFirst = true
}
@@ -368,7 +370,7 @@ internal fun LibraryPage(s: FrontEndState, a: FrontEndActions, selected: String,
remember { StoreTabsState.load(ctx) }
val storeTabs = StoreTabsState.tabs
val signInChips = if (!stores || !StoresState.accountsLoaded || preview == LibraryPreview.SAMPLE) emptySet() else storeTabs
.filter { it.shown && StoresState.backend(it.store) != null && (preview == LibraryPreview.SIGNED_OUT || storeAccount(it.store) != StoreAccount.SIGNED_IN) }
.filter { it.shown && it.store != Store.STEAM && StoresState.backend(it.store) != null && (preview == LibraryPreview.SIGNED_OUT || storeAccount(it.store) != StoreAccount.SIGNED_IN) }
.map { it.store.id }.toSet()
val sources = librarySources(
all, storeTabs.map { it.store.id },
@@ -239,7 +239,7 @@ internal fun ManageStoresSheet() {
SortableRows(
rows = {
val ids = StoreTabsState.tabs.map { it.store.id }
if (ManageStores.custom) placeLibraryTabs(ids, StoreTabsState.libraryPlaces) else ids
if (ManageStores.custom) placeLibraryTabs(ids - Store.STEAM.id, StoreTabsState.libraryPlaces) else ids
},
commit = { StoreTabsState.reorder(ctx, it) },
movable = { true },
@@ -578,7 +578,7 @@ internal fun CountPill(count: Int) {
@Composable
/** [inert]: shown in a Library preview, where signing in would act on the real account; the button only says so. */
internal fun SignInCard(store: Store, height: Dp, inert: Boolean = false) {
internal fun SignInCard(store: Store, height: Dp, inert: Boolean = false, onSignIn: (() -> Unit)? = null) {
val ctx = LocalContext.current
LaunchedEffect(store) { StoresState.preview(ctx, store) }
val art = remember(StoresState.shelves[store]) {
@@ -588,7 +588,7 @@ internal fun SignInCard(store: Store, height: Dp, inert: Boolean = false) {
?: shelves?.all.orEmpty().filter { !it.mature && !it.owned }.mapNotNull { it.tallImageUrl ?: it.imageUrl },
)
}
HeroWallCard(store.label, art, sourceColours(store.id), height) { SignInButton(store, large = true, inert = inert) }
HeroWallCard(store.label, art, sourceColours(store.id), height) { SignInButton(store, large = true, inert = inert, onSignIn = onSignIn) }
}
/** Repeats a short cover list so the wall has enough tiles to drift; too few covers leave it to the blank capsules. */
@@ -636,15 +636,17 @@ internal fun HeroWallCard(title: String, art: List<Any>, c: SourceColours, heigh
}
@Composable
private fun SignInButton(store: Store, large: Boolean = false, inert: Boolean = false) {
private fun SignInButton(store: Store, large: Boolean = false, inert: Boolean = false, onSignIn: (() -> Unit)? = null) {
val ctx = LocalContext.current
val colors = MaterialTheme.colorScheme
val placed = remember { arrayOfNulls<androidx.compose.ui.layout.LayoutCoordinates>(1) }
var askKey by remember { mutableStateOf(false) }
if (askKey) ItchKeyDialog { askKey = false }
Box(Modifier.onGloballyPositioned { placed[0] = it }) {
PrimaryButton(stringResource(R.string.stores_signin), main = true, large = large, icon = if (large) Icons.AutoMirrored.Filled.Login else null) {
val label = if (onSignIn != null) stringResource(R.string.stores_login_title, store.label) else stringResource(R.string.stores_signin)
PrimaryButton(label, main = true, large = large, icon = if (large) Icons.AutoMirrored.Filled.Login else null) {
if (inert) android.widget.Toast.makeText(ctx, R.string.dev_preview_read_only, android.widget.Toast.LENGTH_SHORT).show()
else if (onSignIn != null) onSignIn()
else startStoreSignIn(ctx, store, placed[0]?.takeIf { it.isAttached }?.boundsInRoot(), colors.primary) { askKey = true }
}
}
@@ -1337,6 +1339,6 @@ internal fun openUrl(ctx: android.content.Context, url: String) {
}
internal fun launchStoreGame(store: Store, id: String, s: FrontEndState, a: FrontEndActions) {
val game = s.steamGames.firstOrNull { it.source == store.id && it.storeId == id }
val game = GameRef(null, store, id).game(s.steamGames)
if (game != null) a.onSteamGame(game) else a.onStoreGame(store, id)
}
+1
View File
@@ -4243,4 +4243,5 @@
<string name="hud_only_during_game_hint">إخفاء HUD عند عدم اكتشاف إطارات اللعبة.</string>
<string name="steam_store_close_steam">أغلق Steam أولاً</string>
<string name="steam_store_session_wait">أوقف تنزيل Steam مؤقتًا أولاً</string>
<string name="steam_store_linux_build">تثبّت هذه اللعبة إصدار Linux الخاص بها. ثبّتها من Steam.</string>
</resources>
@@ -4123,4 +4123,5 @@
<string name="hud_only_during_game_hint">Ocultar el HUD cuando no se detecten fotogramas del juego.</string>
<string name="steam_store_close_steam">Cierra Steam primero</string>
<string name="steam_store_session_wait">Pausa primero la descarga de Steam</string>
<string name="steam_store_linux_build">Este juego instala su versión para Linux. Instálalo desde Steam.</string>
</resources>
+1
View File
@@ -4083,4 +4083,5 @@
<string name="hud_only_during_game_hint">Скривай HUD, когато не се засичат кадри от играта.</string>
<string name="steam_store_close_steam">Първо затворете Steam</string>
<string name="steam_store_session_wait">Първо поставете на пауза изтеглянето от Steam</string>
<string name="steam_store_linux_build">Тази игра инсталира версията си за Linux. Инсталирайте я от Steam.</string>
</resources>
+1
View File
@@ -4163,4 +4163,5 @@
<string name="hud_only_during_game_hint">Skrýt HUD, když nejsou detekovány snímky hry.</string>
<string name="steam_store_close_steam">Nejprve zavřete Steam</string>
<string name="steam_store_session_wait">Nejprve pozastavte stahování ze Steamu</string>
<string name="steam_store_linux_build">Tato hra instaluje svou verzi pro Linux. Nainstalujte ji ze Steamu.</string>
</resources>
+1
View File
@@ -4083,4 +4083,5 @@
<string name="hud_only_during_game_hint">Skjul HUD, når der ikke registreres spilbilleder.</string>
<string name="steam_store_close_steam">Luk Steam først</string>
<string name="steam_store_session_wait">Sæt Steam-downloaden på pause først</string>
<string name="steam_store_linux_build">Dette spil installerer sin Linux-version. Installer det fra Steam.</string>
</resources>
+1
View File
@@ -4083,4 +4083,5 @@
<string name="hud_only_during_game_hint">HUD ausblenden, wenn keine Spielframes erkannt werden.</string>
<string name="steam_store_close_steam">Schließe zuerst Steam</string>
<string name="steam_store_session_wait">Pausiere zuerst den Steam-Download</string>
<string name="steam_store_linux_build">Dieses Spiel installiert seine Linux-Version. Installiere es über Steam.</string>
</resources>
+1
View File
@@ -4083,4 +4083,5 @@
<string name="hud_only_during_game_hint">Απόκρυψη HUD όταν δεν ανιχνεύονται καρέ παιχνιδιού.</string>
<string name="steam_store_close_steam">Κλείστε πρώτα το Steam</string>
<string name="steam_store_session_wait">Θέστε πρώτα σε παύση τη λήψη του Steam</string>
<string name="steam_store_linux_build">Αυτό το παιχνίδι εγκαθιστά την έκδοσή του για Linux. Εγκαταστήστε το από το Steam.</string>
</resources>
+1
View File
@@ -4123,4 +4123,5 @@
<string name="hud_only_during_game_hint">Ocultar el HUD cuando no se detecten fotogramas del juego.</string>
<string name="steam_store_close_steam">Cierra Steam primero</string>
<string name="steam_store_session_wait">Pausa primero la descarga de Steam</string>
<string name="steam_store_linux_build">Este juego instala su versión para Linux. Instálalo desde Steam.</string>
</resources>
+1
View File
@@ -4083,4 +4083,5 @@
<string name="hud_only_during_game_hint">Piilota HUD, kun pelin ruutuja ei havaita.</string>
<string name="steam_store_close_steam">Sulje Steam ensin</string>
<string name="steam_store_session_wait">Keskeytä Steam-lataus ensin</string>
<string name="steam_store_linux_build">Tämä peli asentaa Linux-versionsa. Asenna se Steamista.</string>
</resources>
+1
View File
@@ -4122,4 +4122,5 @@
<string name="hud_only_during_game_hint">Masquer le HUD lorsqu’aucune image du jeu n’est détectée.</string>
<string name="steam_store_close_steam">Fermez d\'abord Steam</string>
<string name="steam_store_session_wait">Mettez d\'abord en pause le téléchargement Steam</string>
<string name="steam_store_linux_build">Ce jeu installe sa version Linux. Installez-le depuis Steam.</string>
</resources>
+1
View File
@@ -4083,4 +4083,5 @@
<string name="hud_only_during_game_hint">गेम के फ़्रेम का पता न चलने पर HUD छिपाएँ।</string>
<string name="steam_store_close_steam">पहले Steam बंद करें</string>
<string name="steam_store_session_wait">पहले Steam डाउनलोड रोकें</string>
<string name="steam_store_linux_build">यह गेम अपना Linux संस्करण इंस्टॉल करता है। इसे Steam से इंस्टॉल करें।</string>
</resources>
+1
View File
@@ -4083,4 +4083,5 @@
<string name="hud_only_during_game_hint">HUD elrejtése, ha nem észlelhetők játék képkockái.</string>
<string name="steam_store_close_steam">Előbb zárd be a Steamet</string>
<string name="steam_store_session_wait">Előbb szüneteltesd a Steam-letöltést</string>
<string name="steam_store_linux_build">Ez a játék a Linux-verzióját telepíti. Telepítsd a Steamből.</string>
</resources>
+1
View File
@@ -4053,4 +4053,5 @@
<string name="hud_only_during_game_hint">Sembunyikan HUD saat tidak ada frame game yang terdeteksi.</string>
<string name="steam_store_close_steam">Tutup Steam terlebih dahulu</string>
<string name="steam_store_session_wait">Jeda unduhan Steam terlebih dahulu</string>
<string name="steam_store_linux_build">Game ini memasang versi Linux-nya. Pasang dari Steam.</string>
</resources>
+1
View File
@@ -4122,4 +4122,5 @@
<string name="hud_only_during_game_hint">Nascondi l’HUD quando non vengono rilevati fotogrammi del gioco.</string>
<string name="steam_store_close_steam">Chiudi prima Steam</string>
<string name="steam_store_session_wait">Metti prima in pausa il download di Steam</string>
<string name="steam_store_linux_build">Questo gioco installa la sua versione Linux. Installalo da Steam.</string>
</resources>
+1
View File
@@ -4053,4 +4053,5 @@
<string name="hud_only_during_game_hint">ゲームのフレームが検出されないときはHUDを非表示にする。</string>
<string name="steam_store_close_steam">先に Steam を閉じてください</string>
<string name="steam_store_session_wait">先に Steam のダウンロードを一時停止してください</string>
<string name="steam_store_linux_build">このゲームは Linux 版をインストールします。Steam からインストールしてください。</string>
</resources>
+1
View File
@@ -4053,4 +4053,5 @@
<string name="hud_only_during_game_hint">게임 프레임이 감지되지 않으면 HUD 숨기기.</string>
<string name="steam_store_close_steam">먼저 Steam을 닫으세요</string>
<string name="steam_store_session_wait">먼저 Steam 다운로드를 일시 중지하세요</string>
<string name="steam_store_linux_build">이 게임은 Linux 버전을 설치합니다. Steam에서 설치하세요.</string>
</resources>
+1
View File
@@ -4053,4 +4053,5 @@
<string name="hud_only_during_game_hint">Sembunyikan HUD apabila bingkai permainan tidak dikesan.</string>
<string name="steam_store_close_steam">Tutup Steam dahulu</string>
<string name="steam_store_session_wait">Jeda muat turun Steam dahulu</string>
<string name="steam_store_linux_build">Permainan ini memasang versi Linuxnya. Pasang daripada Steam.</string>
</resources>
+1
View File
@@ -4083,4 +4083,5 @@
<string name="hud_only_during_game_hint">Skjul HUD når ingen spillbilder registreres.</string>
<string name="steam_store_close_steam">Lukk Steam først</string>
<string name="steam_store_session_wait">Sett Steam-nedlastingen på pause først</string>
<string name="steam_store_linux_build">Dette spillet installerer Linux-versjonen sin. Installer det fra Steam.</string>
</resources>
+1
View File
@@ -4083,4 +4083,5 @@
<string name="hud_only_during_game_hint">Verberg de HUD wanneer er geen gameframes worden gedetecteerd.</string>
<string name="steam_store_close_steam">Sluit eerst Steam</string>
<string name="steam_store_session_wait">Pauzeer eerst de Steam-download</string>
<string name="steam_store_linux_build">Deze game installeert zijn Linux-versie. Installeer hem via Steam.</string>
</resources>
+1
View File
@@ -4163,4 +4163,5 @@
<string name="hud_only_during_game_hint">Ukryj HUD, gdy nie wykryto klatek gry.</string>
<string name="steam_store_close_steam">Najpierw zamknij Steam</string>
<string name="steam_store_session_wait">Najpierw wstrzymaj pobieranie ze Steam</string>
<string name="steam_store_linux_build">Ta gra instaluje swoją wersję dla Linuksa. Zainstaluj ją ze Steama.</string>
</resources>
@@ -4122,4 +4122,5 @@
<string name="hud_only_during_game_hint">Ocultar o HUD quando não forem detetados fotogramas do jogo.</string>
<string name="steam_store_close_steam">Feche primeiro o Steam</string>
<string name="steam_store_session_wait">Coloque primeiro em pausa a transferência do Steam</string>
<string name="steam_store_linux_build">Este jogo instala a sua versão para Linux. Instale-o a partir do Steam.</string>
</resources>
+1
View File
@@ -4130,4 +4130,5 @@
<string name="hud_only_during_game_hint">Ocultar o HUD quando nenhum quadro do jogo for detectado.</string>
<string name="steam_store_close_steam">Feche o Steam primeiro</string>
<string name="steam_store_session_wait">Pause o download do Steam primeiro</string>
<string name="steam_store_linux_build">Este jogo instala sua versão para Linux. Instale-o pelo Steam.</string>
</resources>
+1
View File
@@ -4123,4 +4123,5 @@
<string name="hud_only_during_game_hint">Ascunde HUD-ul când nu sunt detectate cadre ale jocului.</string>
<string name="steam_store_close_steam">Închide mai întâi Steam</string>
<string name="steam_store_session_wait">Pune mai întâi pe pauză descărcarea Steam</string>
<string name="steam_store_linux_build">Acest joc își instalează versiunea pentru Linux. Instalează-l din Steam.</string>
</resources>
+1
View File
@@ -4164,4 +4164,5 @@
<string name="hud_only_during_game_hint">Скрывать HUD, когда кадры игры не обнаруживаются.</string>
<string name="steam_store_close_steam">Сначала закройте Steam</string>
<string name="steam_store_session_wait">Сначала приостановите загрузку Steam</string>
<string name="steam_store_linux_build">Эта игра устанавливает свою версию для Linux. Установите её из Steam.</string>
</resources>
+1
View File
@@ -4083,4 +4083,5 @@
<string name="hud_only_during_game_hint">Dölj HUD när inga spelbildrutor upptäcks.</string>
<string name="steam_store_close_steam">Stäng Steam först</string>
<string name="steam_store_session_wait">Pausa Steam-nedladdningen först</string>
<string name="steam_store_linux_build">Det här spelet installerar sin Linux-version. Installera det från Steam.</string>
</resources>
+1
View File
@@ -4053,4 +4053,5 @@
<string name="hud_only_during_game_hint">ซ่อน HUD เมื่อไม่พบเฟรมของเกม</string>
<string name="steam_store_close_steam">ปิด Steam ก่อน</string>
<string name="steam_store_session_wait">หยุดการดาวน์โหลด Steam ชั่วคราวก่อน</string>
<string name="steam_store_linux_build">เกมนี้ติดตั้งเวอร์ชัน Linux ของตัวเอง ให้ติดตั้งจาก Steam</string>
</resources>
+1
View File
@@ -4083,4 +4083,5 @@
<string name="hud_only_during_game_hint">Oyun kareleri algılanmadığında HUD\'yi gizle.</string>
<string name="steam_store_close_steam">Önce Steam\'i kapatın</string>
<string name="steam_store_session_wait">Önce Steam indirmesini duraklatın</string>
<string name="steam_store_linux_build">Bu oyun Linux sürümünü yükler. Steam\'den yükleyin.</string>
</resources>
+1
View File
@@ -4163,4 +4163,5 @@
<string name="hud_only_during_game_hint">Приховувати HUD, коли кадри гри не виявляються.</string>
<string name="steam_store_close_steam">Спочатку закрийте Steam</string>
<string name="steam_store_session_wait">Спочатку призупиніть завантаження Steam</string>
<string name="steam_store_linux_build">Ця гра встановлює свою версію для Linux. Установіть її зі Steam.</string>
</resources>
+1
View File
@@ -4053,4 +4053,5 @@
<string name="hud_only_during_game_hint">Ẩn HUD khi không phát hiện khung hình trò chơi.</string>
<string name="steam_store_close_steam">Hãy đóng Steam trước</string>
<string name="steam_store_session_wait">Hãy tạm dừng tải xuống Steam trước</string>
<string name="steam_store_linux_build">Trò chơi này cài bản dành cho Linux. Hãy cài từ Steam.</string>
</resources>
@@ -4053,4 +4053,5 @@
<string name="hud_only_during_game_hint">未检测到游戏帧时隐藏 HUD。</string>
<string name="steam_store_close_steam">请先关闭 Steam</string>
<string name="steam_store_session_wait">请先暂停 Steam 下载</string>
<string name="steam_store_linux_build">此游戏会安装其 Linux 版本。请通过 Steam 安装。</string>
</resources>
@@ -4053,4 +4053,5 @@
<string name="hud_only_during_game_hint">未偵測到遊戲畫面時隱藏 HUD。</string>
<string name="steam_store_close_steam">請先關閉 Steam</string>
<string name="steam_store_session_wait">請先暫停 Steam 下載</string>
<string name="steam_store_linux_build">此遊戲會安裝其 Linux 版本。請透過 Steam 安裝。</string>
</resources>
@@ -4053,4 +4053,5 @@
<string name="hud_only_during_game_hint">未偵測到遊戲畫面時隱藏 HUD。</string>
<string name="steam_store_close_steam">請先關閉 Steam</string>
<string name="steam_store_session_wait">請先暫停 Steam 下載</string>
<string name="steam_store_linux_build">此遊戲會安裝其 Linux 版本。請透過 Steam 安裝。</string>
</resources>
+1
View File
@@ -4392,4 +4392,5 @@
<string name="onboarding_button_finish">Finish setup · %1$d%%</string>
<string name="steam_store_close_steam">Close Steam first</string>
<string name="steam_store_session_wait">Pause the Steam download first</string>
<string name="steam_store_linux_build">This game installs its Linux build. Install it from Steam.</string>
</resources>
@@ -27,6 +27,17 @@ class LibraryEntriesTest {
assertNull(entries[2].game)
}
@Test fun ownedSteamGamesJoinTheSteamTabAndAnInstalledOneShowsOnce() {
val games = listOf(Library.SteamGame(440, "Team Fortress 2", null, "Steam library"))
val library = mapOf(Store.STEAM to listOf(owned(Store.STEAM, "440", "Team Fortress 2"), owned(Store.STEAM, "620", "Portal 2")))
val entries = libraryEntries(games, library, emptySet())
assertEquals(listOf("app:440", "app:steamstore:620"), entries.map { it.key })
assertEquals(listOf(Library.SOURCE_STEAM, Library.SOURCE_STEAM), entries.map { it.source })
assertFalse(entries[1].installed)
assertEquals("app:620", entries[1].favoriteKey)
assertEquals(listOf("steam"), librarySources(entries, listOf(Store.STEAM.id, "epic")))
}
@Test fun theEpicLauncherIsNotAGame() {
val launcher = Library.SteamGame(0, Library.EPIC_LAUNCHER_NAME, null, Library.EPIC_LAUNCHER)
assertEquals(emptyList<String>(), libraryEntries(listOf(launcher), emptyMap(), emptySet()).map { it.key })