From daf6206d57f272ec3c3ca5d60a7cd576b02fb8f6 Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 15:01:11 +0200 Subject: [PATCH 01/35] =?UTF-8?q?Uninstall:=20show=20Uninstalling=E2=80=A6?= =?UTF-8?q?=20while=20it=20runs,=20and=20take=20it=20only=20once?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/manage-tab.test.cjs | 2 +- tests/setup-background-progress.test.cjs | 6 ++-- tests/uninstall-keep-saves.test.cjs | 35 ++++++++++++++++++++++++ ui/app.js | 22 +++++++++++---- ui/i18n/ar.json | 1 + ui/i18n/de.json | 1 + ui/i18n/es-419.json | 1 + ui/i18n/es.json | 1 + ui/i18n/fr.json | 1 + ui/i18n/id.json | 1 + ui/i18n/it.json | 1 + ui/i18n/ja.json | 1 + ui/i18n/ko.json | 1 + ui/i18n/nl.json | 1 + ui/i18n/pl.json | 1 + ui/i18n/pt-BR.json | 1 + ui/i18n/pt.json | 1 + ui/i18n/ru.json | 1 + ui/i18n/th.json | 1 + ui/i18n/tr.json | 1 + ui/i18n/uk.json | 1 + ui/i18n/vi.json | 1 + ui/i18n/zh-Hans.json | 1 + ui/i18n/zh-Hant.json | 1 + ui/tv.js | 18 ++++++++---- 25 files changed, 89 insertions(+), 14 deletions(-) diff --git a/tests/manage-tab.test.cjs b/tests/manage-tab.test.cjs index 18d28c48..5fa801dc 100644 --- a/tests/manage-tab.test.cjs +++ b/tests/manage-tab.test.cjs @@ -37,7 +37,7 @@ test('the menu keeps what no tab has', () => { }); test('Uninstall stays in the menu of an installed game, last and in red', () => { - assert.match(fn(app, 'gameMenu'), /\.\.\.\(g \? \['-', \{ act: 'uninstall', id, label: t\('Uninstall…'\), cls: 'danger', icon: 'bin' \}\] : \[\]\),\n \];/); + assert.match(fn(app, 'gameMenu'), /\.\.\.\(g && st !== 'uninstalling' \? \['-', \{ act: 'uninstall', id, label: t\('Uninstall…'\), cls: 'danger', icon: 'bin' \}\] : \[\]\),\n \];/); }); // One submenu of the game's menu, from its label to its closing bracket. diff --git a/tests/setup-background-progress.test.cjs b/tests/setup-background-progress.test.cjs index d9ce364b..d40673b4 100644 --- a/tests/setup-background-progress.test.cjs +++ b/tests/setup-background-progress.test.cjs @@ -9,7 +9,7 @@ const tvSrc = fs.readFileSync(path.join(__dirname, '../ui/tv.js'), 'utf8'); test('status returns settingup when setupJobs has an active setup', () => { const c = vm.createContext({ - S: { running: new Set(), settingUp: new Set(), setupJobs: { 'test-game': { step: 'verify', pct: 0.5 } }, jobs: {}, library: {} }, + S: { running: new Set(), uninstalling: new Set(), settingUp: new Set(), setupJobs: { 'test-game': { step: 'verify', pct: 0.5 } }, jobs: {}, library: {} }, parentId: (id) => id.split('@')[0], forOS: () => true, }); @@ -22,7 +22,7 @@ test('status returns settingup when setupJobs has an active setup', () => { // The game page's main buttons while a setup runs, with the real status, actions and setupProg. function actionsWhile(ev) { const c = vm.createContext({ - S: { running: new Set(), settingUp: new Set(), setupJobs: { 'test-game': ev }, jobs: {}, library: {} }, + S: { running: new Set(), uninstalling: new Set(), settingUp: new Set(), setupJobs: { 'test-game': ev }, jobs: {}, library: {} }, parentId: (id) => id.split('@')[0], t: (s) => s, esc: String, @@ -100,7 +100,7 @@ test('onSetupFinished auto-adds to library and sets setup_ok', async () => { // Big Picture's main button and Home's words for it while a setup runs, with the real helpers. function tvWhile(ev) { const c = vm.createContext({ - S: { running: new Set(), settingUp: new Set(), setupJobs: { 'test-game': ev }, jobs: {}, library: {} }, + S: { running: new Set(), uninstalling: new Set(), settingUp: new Set(), setupJobs: { 'test-game': ev }, jobs: {}, library: {} }, parentId: (id) => id.split('@')[0], t: (s) => s, esc: String, diff --git a/tests/uninstall-keep-saves.test.cjs b/tests/uninstall-keep-saves.test.cjs index e8c3289d..26876c6b 100644 --- a/tests/uninstall-keep-saves.test.cjs +++ b/tests/uninstall-keep-saves.test.cjs @@ -59,3 +59,38 @@ test('every new uninstall text is in every language', () => { for (const s of texts) assert.ok(d[s], `${f}: ${s}`); } }); + +test('a game being uninstalled says so, ahead of anything else it could show', () => { + const st = fn(app, 'status'); + assert.match(st, /if \(S\.uninstalling\.has\(rid\)\) return 'uninstalling';/); + assert.match(fn(app, 'actions'), /case 'uninstalling': return `
/); +}); + +test('the desktop uninstall runs once, however many times it is pressed', () => { + const u = fn(app, 'confirmUninstall'); + assert.match(u, /if \(!g \|\| S\.uninstalling\.has\(id\)\) return;/); + assert.match(u, /S\.uninstalling\.add\(id\);\n\s+render\(true\);\n\s+let r = \{\};\n\s+try \{ r = \(await invoke\('uninstall'/); + assert.match(u, /catch \(err\) \{ S\.uninstalling\.delete\(id\);/); +}); + +test('the desktop hides its Uninstall buttons while it runs', () => { + assert.match(fn(app, 'gameMenu'), /\.\.\.\(g && st !== 'uninstalling' \? \['-', \{ act: 'uninstall'/); + assert.match(fn(app, 'manageTab'), /S\.uninstalling\.has\(id\) \? ``; switch (st) { case 'running': return b('main', 'resume', esc(t('Back to the game')), PLAY) + b('', 'stop', esc(t('Close game'))) + more; + // Deleting a big folder takes a while: show it's on its way, with nothing to press meanwhile. + case 'uninstalling': return `
${esc(t('Uninstalling…'))}
`; case 'settingup': { const sj = S.setupJobs && (S.setupJobs[a.id] || S.setupJobs[parentId(a.id)]); if (sj) { @@ -3034,7 +3038,7 @@ function manageTab(a) { const shotsCard = `

${esc(t('Screenshots'))}

${shots && shots.length ? `
${shots.slice(0, 8).map((f, i) => ``).join('')}
` : `

${esc(S.os === 'macos' ? t('In-game screenshot capture is not available on Mac yet.') : t('None yet. While you play, press F12, or View + RB on a controller.'))}

`}
`; const leave = inst.local ? `
${esc(t('Remove from Library'))}${esc(t('Your folder stays exactly as it is.'))}
` - : `
${esc(t('Uninstall'))}${esc(t('Takes it out of your Library. You choose whether its folder goes too.'))}
`; + : `
${esc(t('Uninstall'))}${esc(t('Takes it out of your Library. You choose whether its folder goes too.'))}
${S.uninstalling.has(id) ? `` : ``}
`; return `
${card(t('Updates'), manageUpdateRows(id, inst))}${card(t('Starting the Game'), manageStartRows(id, inst))}${card(t('Files and Saves'), manageFileRows(id, inst))}${shotsCard}
${leave}
`; } // Which version it has, and how it gets the next one. @@ -6814,7 +6818,7 @@ function gameMenu(id) { ] }, ...(hasOwnPlaytime(id) ? [{ act: 'play-reset', id, label: t('Reset Play Time…'), icon: 'history' }] : []), ] : links.length ? ['-', ...links] : []), - ...(g ? ['-', { act: 'uninstall', id, label: t('Uninstall…'), cls: 'danger', icon: 'bin' }] : []), + ...(g && st !== 'uninstalling' ? ['-', { act: 'uninstall', id, label: t('Uninstall…'), cls: 'danger', icon: 'bin' }] : []), ]; } // Its project page, one row with the site's logo: its README is on Overview, its releases on @@ -6882,6 +6886,8 @@ window.hasOwnPlaytime = hasOwnPlaytime; function confirmUninstall(id) { id = parentId(id); const g = S.library[id]; + // Already on its way out: a second press would only fail once the first one is done. + if (!g || S.uninstalling.has(id)) return; // A recomp with several games: they all go with it. const many = hasGames(id) ? S.gameSets[id].games : null; const s = document.createElement('div'); @@ -6903,9 +6909,13 @@ function confirmUninstall(id) { if (!x) return; const del = !!($('#u-del', s) || {}).checked, unins = !!($('#u-unins', s) || {}).checked, keep = !!($('#u-keep', s) || {}).checked; s.remove(); + if (S.uninstalling.has(id)) return; if (unins) toast(tf('{name}\'s uninstaller is opening. Finish it there.', { name: g.name })); + S.uninstalling.add(id); + render(true); let r = {}; - try { r = (await invoke('uninstall', { id, deleteFiles: del, runUninstaller: unins, keepSaves: keep })) || {}; } catch (err) { await refreshState(); render(true); return fail(err); } + try { r = (await invoke('uninstall', { id, deleteFiles: del, runUninstaller: unins, keepSaves: keep })) || {}; } catch (err) { S.uninstalling.delete(id); await refreshState(); render(true); return fail(err); } + S.uninstalling.delete(id); if (window.usageUninstall) window.usageUninstall(id); await keepOut(id); delete S.updates[id]; await refreshState(); render(true); @@ -7320,6 +7330,8 @@ function setupReqModal(id) { } async function playGame(id, program) { + // Its files are being deleted: starting it now would fail halfway. + if (S.uninstalling.has(parentId(id))) return; if (S.missing && S.missing.has(parentId(id))) return missingModal(parentId(id)); // Another game of the same recomp is running: one at a time, since they share one install. if (subOf(id) && S.running.has(parentId(id)) && !S.running.has(id)) return toast(tf('{name} is running. Close it first to play another of its games.', { name: (S.library[parentId(id)] || {}).name || '' }), true); diff --git a/ui/i18n/ar.json b/ui/i18n/ar.json index 5716f974..ea0329db 100644 --- a/ui/i18n/ar.json +++ b/ui/i18n/ar.json @@ -1442,6 +1442,7 @@ "Uninstall {name}": "إلغاء تثبيت {name}", "Uninstall {name}?": "إلغاء تثبيت {name}؟", "Uninstall, keep its folder": "إلغاء التثبيت مع الإبقاء على مجلدها", + "Uninstalling…": "جارٍ إلغاء التثبيت…", "Uninstall…": "إلغاء التثبيت…", "Unknown file.": "ملف غير معروف.", "Unlocks while you play": "تُفتح أثناء اللعب", diff --git a/ui/i18n/de.json b/ui/i18n/de.json index 0ddf3dfe..cf810f17 100644 --- a/ui/i18n/de.json +++ b/ui/i18n/de.json @@ -1442,6 +1442,7 @@ "Uninstall {name}": "{name} deinstallieren", "Uninstall {name}?": "{name} deinstallieren?", "Uninstall, keep its folder": "Deinstallieren, Ordner behalten", + "Uninstalling…": "Wird deinstalliert…", "Uninstall…": "Deinstallieren…", "Unknown file.": "Unbekannte Datei.", "Unlocks while you play": "Freischalten beim Spielen", diff --git a/ui/i18n/es-419.json b/ui/i18n/es-419.json index 13c1bac6..820af070 100644 --- a/ui/i18n/es-419.json +++ b/ui/i18n/es-419.json @@ -1431,6 +1431,7 @@ "Uninstall {name}": "Desinstalar {name}", "Uninstall {name}?": "¿Desinstalar {name}?", "Uninstall, keep its folder": "Desinstalar, conservar su carpeta", + "Uninstalling…": "Desinstalando…", "Uninstall…": "Desinstalar…", "Unknown file.": "Archivo desconocido.", "Unlocks while you play": "Se desbloquean mientras juegas", diff --git a/ui/i18n/es.json b/ui/i18n/es.json index 22a3edbf..df17f5c3 100644 --- a/ui/i18n/es.json +++ b/ui/i18n/es.json @@ -1442,6 +1442,7 @@ "Uninstall {name}": "Desinstalar {name}", "Uninstall {name}?": "¿Desinstalar {name}?", "Uninstall, keep its folder": "Desinstalar, conservar su carpeta", + "Uninstalling…": "Desinstalando…", "Uninstall…": "Desinstalar…", "Unknown file.": "Archivo desconocido.", "Unlocks while you play": "Se desbloquean mientras juegas", diff --git a/ui/i18n/fr.json b/ui/i18n/fr.json index 948d1556..4f3bdaec 100644 --- a/ui/i18n/fr.json +++ b/ui/i18n/fr.json @@ -1442,6 +1442,7 @@ "Uninstall {name}": "Désinstaller {name}", "Uninstall {name}?": "Désinstaller {name} ?", "Uninstall, keep its folder": "Désinstaller, garder son dossier", + "Uninstalling…": "Désinstallation…", "Uninstall…": "Désinstaller…", "Unknown file.": "Fichier inconnu.", "Unlocks while you play": "Débloqués pendant que vous jouez", diff --git a/ui/i18n/id.json b/ui/i18n/id.json index 7adabc86..2dc20469 100644 --- a/ui/i18n/id.json +++ b/ui/i18n/id.json @@ -1442,6 +1442,7 @@ "Uninstall {name}": "Copot {name}", "Uninstall {name}?": "Copot {name}?", "Uninstall, keep its folder": "Copot, simpan foldernya", + "Uninstalling…": "Mencopot…", "Uninstall…": "Copot…", "Unknown file.": "File tidak dikenal.", "Unlocks while you play": "Terbuka saat kamu bermain", diff --git a/ui/i18n/it.json b/ui/i18n/it.json index 8a5f3c60..834ba113 100644 --- a/ui/i18n/it.json +++ b/ui/i18n/it.json @@ -1442,6 +1442,7 @@ "Uninstall {name}": "Disinstalla {name}", "Uninstall {name}?": "Disinstallare {name}?", "Uninstall, keep its folder": "Disinstalla, tieni la cartella", + "Uninstalling…": "Disinstallazione…", "Uninstall…": "Disinstalla…", "Unknown file.": "File sconosciuto.", "Unlocks while you play": "Si sbloccano mentre giochi", diff --git a/ui/i18n/ja.json b/ui/i18n/ja.json index 9a0d00ac..7e0a4cbf 100644 --- a/ui/i18n/ja.json +++ b/ui/i18n/ja.json @@ -1442,6 +1442,7 @@ "Uninstall {name}": "{name} をアンインストール", "Uninstall {name}?": "{name} をアンインストールしますか?", "Uninstall, keep its folder": "アンインストールしてフォルダーは残す", + "Uninstalling…": "アンインストール中…", "Uninstall…": "アンインストール…", "Unknown file.": "不明なファイルです。", "Unlocks while you play": "プレイ中に解除", diff --git a/ui/i18n/ko.json b/ui/i18n/ko.json index 00f89141..bc60ba3a 100644 --- a/ui/i18n/ko.json +++ b/ui/i18n/ko.json @@ -1442,6 +1442,7 @@ "Uninstall {name}": "{name} 제거", "Uninstall {name}?": "{name}을(를) 제거할까요?", "Uninstall, keep its folder": "제거하고 폴더 유지", + "Uninstalling…": "제거 중…", "Uninstall…": "제거…", "Unknown file.": "알 수 없는 파일입니다.", "Unlocks while you play": "플레이 중 달성", diff --git a/ui/i18n/nl.json b/ui/i18n/nl.json index 59e05af9..4dead0ac 100644 --- a/ui/i18n/nl.json +++ b/ui/i18n/nl.json @@ -1442,6 +1442,7 @@ "Uninstall {name}": "{name} verwijderen", "Uninstall {name}?": "{name} verwijderen?", "Uninstall, keep its folder": "Verwijderen, de map houden", + "Uninstalling…": "Bezig met verwijderen…", "Uninstall…": "Verwijderen…", "Unknown file.": "Onbekend bestand.", "Unlocks while you play": "Vrijspelen tijdens het spelen", diff --git a/ui/i18n/pl.json b/ui/i18n/pl.json index fcdb6283..05625783 100644 --- a/ui/i18n/pl.json +++ b/ui/i18n/pl.json @@ -1442,6 +1442,7 @@ "Uninstall {name}": "Odinstaluj {name}", "Uninstall {name}?": "Odinstalować {name}?", "Uninstall, keep its folder": "Odinstaluj, zachowaj folder", + "Uninstalling…": "Odinstalowywanie…", "Uninstall…": "Odinstaluj…", "Unknown file.": "Nieznany plik.", "Unlocks while you play": "Odblokowujesz je podczas gry", diff --git a/ui/i18n/pt-BR.json b/ui/i18n/pt-BR.json index 6634b00b..3e0b1ddf 100644 --- a/ui/i18n/pt-BR.json +++ b/ui/i18n/pt-BR.json @@ -1431,6 +1431,7 @@ "Uninstall {name}": "Desinstalar {name}", "Uninstall {name}?": "Desinstalar {name}?", "Uninstall, keep its folder": "Desinstalar, manter a pasta", + "Uninstalling…": "Desinstalando…", "Uninstall…": "Desinstalar…", "Unknown file.": "Arquivo desconhecido.", "Unlocks while you play": "Desbloqueadas enquanto você joga", diff --git a/ui/i18n/pt.json b/ui/i18n/pt.json index 1242fd42..3b8978d6 100644 --- a/ui/i18n/pt.json +++ b/ui/i18n/pt.json @@ -1442,6 +1442,7 @@ "Uninstall {name}": "Desinstalar {name}", "Uninstall {name}?": "Desinstalar {name}?", "Uninstall, keep its folder": "Desinstalar, manter a pasta", + "Uninstalling…": "A desinstalar…", "Uninstall…": "Desinstalar…", "Unknown file.": "Ficheiro desconhecido.", "Unlocks while you play": "Desbloqueiam enquanto jogas", diff --git a/ui/i18n/ru.json b/ui/i18n/ru.json index 9a5f21bf..6a0e1095 100644 --- a/ui/i18n/ru.json +++ b/ui/i18n/ru.json @@ -1442,6 +1442,7 @@ "Uninstall {name}": "Удалить {name}", "Uninstall {name}?": "Удалить {name}?", "Uninstall, keep its folder": "Удалить, но оставить папку", + "Uninstalling…": "Удаление…", "Uninstall…": "Удалить…", "Unknown file.": "Неизвестный файл.", "Unlocks while you play": "Открываются во время игры", diff --git a/ui/i18n/th.json b/ui/i18n/th.json index f0ed3291..ff726a9b 100644 --- a/ui/i18n/th.json +++ b/ui/i18n/th.json @@ -1442,6 +1442,7 @@ "Uninstall {name}": "ถอนการติดตั้ง {name}", "Uninstall {name}?": "ถอนการติดตั้ง {name} ไหม?", "Uninstall, keep its folder": "ถอนการติดตั้ง เก็บโฟลเดอร์ไว้", + "Uninstalling…": "กำลังถอนการติดตั้ง…", "Uninstall…": "ถอนการติดตั้ง…", "Unknown file.": "ไฟล์ที่ไม่รู้จัก", "Unlocks while you play": "ปลดล็อกระหว่างเล่น", diff --git a/ui/i18n/tr.json b/ui/i18n/tr.json index 7d4eac4e..d3d23ace 100644 --- a/ui/i18n/tr.json +++ b/ui/i18n/tr.json @@ -1442,6 +1442,7 @@ "Uninstall {name}": "{name} eklentisini kaldır", "Uninstall {name}?": "{name} kaldırılsın mı?", "Uninstall, keep its folder": "Kaldır, klasörünü koru", + "Uninstalling…": "Kaldırılıyor…", "Uninstall…": "Kaldır…", "Unknown file.": "Bilinmeyen dosya.", "Unlocks while you play": "Oynarken açılır", diff --git a/ui/i18n/uk.json b/ui/i18n/uk.json index ab8c44e7..b4e6bea6 100644 --- a/ui/i18n/uk.json +++ b/ui/i18n/uk.json @@ -1442,6 +1442,7 @@ "Uninstall {name}": "Видалити {name}", "Uninstall {name}?": "Видалити {name}?", "Uninstall, keep its folder": "Видалити, але залишити папку", + "Uninstalling…": "Видалення…", "Uninstall…": "Видалити…", "Unknown file.": "Невідомий файл.", "Unlocks while you play": "Відкриваються під час гри", diff --git a/ui/i18n/vi.json b/ui/i18n/vi.json index 13004c2a..631f52ef 100644 --- a/ui/i18n/vi.json +++ b/ui/i18n/vi.json @@ -1442,6 +1442,7 @@ "Uninstall {name}": "Gỡ cài đặt {name}", "Uninstall {name}?": "Gỡ cài đặt {name}?", "Uninstall, keep its folder": "Gỡ cài đặt, giữ thư mục", + "Uninstalling…": "Đang gỡ cài đặt…", "Uninstall…": "Gỡ cài đặt…", "Unknown file.": "Tệp không xác định.", "Unlocks while you play": "Mở khóa khi bạn chơi", diff --git a/ui/i18n/zh-Hans.json b/ui/i18n/zh-Hans.json index cebe1f10..3b42704d 100644 --- a/ui/i18n/zh-Hans.json +++ b/ui/i18n/zh-Hans.json @@ -1442,6 +1442,7 @@ "Uninstall {name}": "卸载 {name}", "Uninstall {name}?": "要卸载 {name} 吗?", "Uninstall, keep its folder": "卸载,保留其文件夹", + "Uninstalling…": "正在卸载…", "Uninstall…": "卸载…", "Unknown file.": "未知文件。", "Unlocks while you play": "边玩边解锁", diff --git a/ui/i18n/zh-Hant.json b/ui/i18n/zh-Hant.json index 287076ee..04f94aeb 100644 --- a/ui/i18n/zh-Hant.json +++ b/ui/i18n/zh-Hant.json @@ -1442,6 +1442,7 @@ "Uninstall {name}": "解除安裝 {name}", "Uninstall {name}?": "要解除安裝 {name} 嗎?", "Uninstall, keep its folder": "解除安裝,保留其資料夾", + "Uninstalling…": "正在解除安裝…", "Uninstall…": "解除安裝…", "Unknown file.": "未知的檔案。", "Unlocks while you play": "邊玩邊解鎖", diff --git a/ui/tv.js b/ui/tv.js index 8626dc21..91e51098 100644 --- a/ui/tv.js +++ b/ui/tv.js @@ -363,7 +363,7 @@ const st = status(a), j = S.jobs[a.id]; const vers = TV.view !== 'library' && !j && verGroup(a); // One label: with a versions count on the poster, Setup Required stays on the game's page. - const badge = st === 'update' ? `${esc(t('Update'))}` : st === 'running' ? `${esc(t('Playing'))}` : st === 'soon' ? `${notifyOn(a.id) ? svg('bell', 15) : ''}${esc(t('Soon'))}` : (vers ? '' : sreqBadge(a)) || (st === 'installed' && TV.view !== 'library' && !String(key).startsWith('c:') ? `${esc(t('Installed'))}` : ''); + const badge = st === 'update' ? `${esc(t('Update'))}` : st === 'uninstalling' ? `${esc(t('Uninstalling…'))}` : st === 'running' ? `${esc(t('Playing'))}` : st === 'soon' ? `${notifyOn(a.id) ? svg('bell', 15) : ''}${esc(t('Soon'))}` : (vers ? '' : sreqBadge(a)) || (st === 'installed' && TV.view !== 'library' && !String(key).startsWith('c:') ? `${esc(t('Installed'))}` : ''); const rk = rank ? `#${fmtNum(rank)}` : ''; // Only Easy Setup and the versions count on a card (icons when both); Great on Deck and the // project's state are on the game's page. @@ -466,6 +466,7 @@ const st = status(a), id = a.id; switch (st) { case 'running': return btn(key, 'resume', esc(t('Back to the game')), { cls: 'main', id, g: 'a' }); + case 'uninstalling': return ``; case 'settingup': { const sj = S.setupJobs && (S.setupJobs[id] || S.setupJobs[parentId(id)]); // Said as on the desktop's game page and Downloads: "Building the game · 42%". @@ -582,6 +583,7 @@ const st = status(a), id = a.id; switch (st) { case 'running': return { label: t('Back to the game'), icon: 'play', run: () => invoke('resume_game').catch(fail) }; + case 'uninstalling': return null; case 'busy': return { label: t('Cancel the download'), sub: progLabel(S.jobs[id])[0], icon: 'stop', run: () => cancelDownload(id) }; case 'paused': return { label: t('Resume'), sub: progLabel(S.paused[id])[1], icon: 'down', run: () => resumeDl(id) }; case 'update': return { label: t('Update now'), sub: S.updates[id] ? tf('{v} is out', { v: S.updates[id] }) : '', icon: 'refresh', run: () => updateGame(id).then(() => draw(true)) }; @@ -604,6 +606,7 @@ function mainWords(a) { const st = status(a); if (st === 'busy') return progLabel(S.jobs[a.id])[0]; + if (st === 'uninstalling') return t('Uninstalling…'); if (st === 'soon') return t('Coming soon'); if (st === 'nobuild') return tf('No {os} version yet', { os: OS_NAME[S.os] }); if (st === 'settingup') { @@ -1855,7 +1858,7 @@ { label: t('Older releases'), sub: t('Go back to an older one, or forward again'), icon: 'history', run: () => versionsSheet(id) }, { label: t('Open its folder'), sub: g.path, icon: 'folder', run: () => invoke('open_folder', { id }).catch(fail) }, ...(!S.running.has(id) && window.hasOwnPlaytime(id) ? [{ label: t('Reset Play Time'), sub: t('Its play time on this PC starts again from zero'), icon: 'history', run: () => { closeSheet(); setTimeout(() => window.resetPlaytime(id), 250); } }] : []), - ...(!S.running.has(id) && !S.jobs[id] ? [{ gap: true, label: t('Uninstall'), sub: t('Take it off this PC'), icon: 'bin', cls: 'danger', run: () => tvUninstall(id) }] : []), + ...(!S.running.has(id) && !S.jobs[id] && !S.uninstalling.has(id) ? [{ gap: true, label: t('Uninstall'), sub: t('Take it off this PC'), icon: 'bin', cls: 'danger', run: () => tvUninstall(id) }] : []), ] : []), ]; const st = S.running.has(id) ? t('Playing now') : g ? timeLine(g) : a.game ? tf('Based on {game}', { game: a.game }) : ''; @@ -1907,13 +1910,18 @@ // Uninstall, from a controller: the same choices as on the desktop. function tvUninstall(id) { const g = S.library[id]; - if (!g) return; + // Already on its way out: a second press would only fail once the first one is done. + if (!g || S.uninstalling.has(id)) return; if (S.running.has(id)) return toast(t('Close the game first.'), true); // keep: a copy of its saves first, as the desktop's tick does (on unless the player picks the // item that deletes them too). const run = (del, keep = true) => async () => { + if (S.uninstalling.has(id)) return; + S.uninstalling.add(id); + draw(true); let r = {}; - try { r = (await invoke('uninstall', { id, deleteFiles: del, keepSaves: keep })) || {}; } catch (e) { await refreshState(); draw(true); return fail(e); } + try { r = (await invoke('uninstall', { id, deleteFiles: del, keepSaves: keep })) || {}; } catch (e) { S.uninstalling.delete(id); await refreshState(); draw(true); return fail(e); } + S.uninstalling.delete(id); if (window.usageUninstall) window.usageUninstall(id); if (window.keepOut) await window.keepOut(id); delete S.updates[id]; @@ -3009,7 +3017,7 @@ if (!g) return; sfx('open'); return sheet(g.name, [ - ...(!S.running.has(id) && !S.jobs[id] ? [{ label: t('Uninstall'), sub: t('Take it off this PC'), icon: 'bin', cls: 'danger', run: () => tvUninstall(id) }] : []), + ...(!S.running.has(id) && !S.jobs[id] && !S.uninstalling.has(id) ? [{ label: t('Uninstall'), sub: t('Take it off this PC'), icon: 'bin', cls: 'danger', run: () => tvUninstall(id) }] : []), { label: t('Open its folder'), sub: g.path, icon: 'folder', run: () => invoke('open_folder', { id }).catch(fail) }, { label: t('Game page'), icon: 'page', run: () => go('game', id) }, ]); From 412e4846a6869e836d4e06fbe8a14e993841556e Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 15:22:10 +0200 Subject: [PATCH 02/35] Setup step failure: keep the step's last lines, not one cut-off line A failed prepare step now says "Its setup step stopped with code N." on a line of its own, then the last 10 lines it printed (progress lines, blank lines and colour codes left out), so the UI can translate the launcher's line and show a short tail. --- src-tauri/src/lib.rs | 134 ++++++++++++++++++++++++++++++++++++++---- tests/beta54.test.cjs | 3 +- 2 files changed, 123 insertions(+), 14 deletions(-) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 5d52951f..ac6f0006 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -4386,12 +4386,17 @@ fn set_prepare_opts(st: State<'_, App>, id: String, opts: BTreeMap Ok(()) } -/// A build from what the setup step kept that didn't work: what it said, then that the player's -/// copy builds it instead. (What it said last may not end a sentence.) +/// A build from what the setup step kept that didn't work: its first line, then that the player's +/// copy builds it instead, then what the step printed, on lines of their own as before. fn kept_failed(said: &str) -> String { - let said = said.trim_end(); - let stop = if said.ends_with(['.', '!', '?']) { "" } else { "." }; - format!("{said}{stop} Choose your copy of the game to build it from that.") + let (head, printed) = said.split_once('\n').unwrap_or((said, "")); + let head = head.trim_end(); + let stop = if head.ends_with(['.', '!', '?']) { "" } else { "." }; + let line = format!("{head}{stop} Choose your copy of the game to build it from that."); + if printed.is_empty() { + return line; + } + format!("{line}\n{printed}") } /// What the setup step is run with: its own arguments, then those of the options the player @@ -4518,6 +4523,66 @@ mod win_job { /// How long a setup step may print nothing before it's given up on. const SILENT_FOR: std::time::Duration = std::time::Duration::from_secs(60 * 60); +/// How many of its last lines a setup step that failed shows the player: enough for a reason that +/// runs over a few lines (an install hint, the top of a stack trace), never the whole output. +const SAID_LINES: usize = 10; + +/// What a setup step printed last, progress lines left out: its last SAID_LINES lines, each as +/// a terminal would show it. +#[derive(Default)] +struct LastSaid(std::collections::VecDeque); + +impl LastSaid { + fn push(&mut self, line: &str) { + let line = plain_line(line); + if line.is_empty() { + return; + } + if self.0.len() == SAID_LINES { + self.0.pop_front(); + } + self.0.push_back(line); + } + + fn text(&self) -> String { + Vec::from(self.0.clone()).join("\n") + } +} + +/// A line a program printed, as a terminal shows it: colour codes taken out, and only what came +/// after its last carriage return (a progress bar drawn over itself). Long lines are cut. +fn plain_line(line: &str) -> String { + let shown = line.rsplit('\r').next().unwrap_or(line); + let mut out = String::new(); + let mut chars = shown.chars(); + while let Some(c) = chars.next() { + if c != '\u{1b}' { + out.push(c); + continue; + } + // ESC [ ... then one of @ to ~: a colour or cursor code. + if chars.next() != Some('[') { + continue; + } + for c in chars.by_ref() { + if ('@'..='~').contains(&c) { + break; + } + } + } + out.trim().chars().take(300).collect() +} + +/// A setup step that stopped with an error code: the launcher's line, then what it printed last +/// on lines of their own. The UI translates the first line and shows the rest as it was printed. +fn step_failed(code: &str, said: &str) -> String { + let head = format!("Its setup step stopped with code {code}."); + if said.is_empty() { + return head; + } + format!("{head}\n{said}") +} + /// Runs the recomp's setup step. `writing` is called once the step has started, when it can /// write over the last build; a step that can't start (its program missing, no room, no Proton) /// never calls it. @@ -4606,14 +4671,14 @@ fn run_prepare(pr: &profile::Prepare, install: &Path, copy: Option<&Path>, extra }); } drop(tx); - // What it said last (not a progress line): when it stops on an error, that's usually why. - let mut said = String::new(); + // What it said last (not progress lines): when it stops on an error, that's usually why. + let mut said = LastSaid::default(); // Whether it said Windows' path limit stopped it, on any line: the reason is usually followed // by a stack trace. let mut too_long = false; // When it last printed anything: a step that goes quiet for SILENT_FOR has stopped working. let mut heard = Instant::now(); - let read = |said: &mut String, too_long: &mut bool, heard: &mut Instant| { + let read = |said: &mut LastSaid, too_long: &mut bool, heard: &mut Instant| { while let Ok(l) = rx.try_recv() { *heard = Instant::now(); let mut w = l.splitn(3, ' '); @@ -4621,7 +4686,7 @@ fn run_prepare(pr: &profile::Prepare, install: &Path, copy: Option<&Path>, extra let pct = w.next().and_then(|x| x.parse::().ok()).unwrap_or(0.0).clamp(0.0, 1.0); report(pct, w.next().unwrap_or("").trim().to_string()); } else if !l.trim().is_empty() { - *said = l.trim().chars().take(300).collect(); + said.push(&l); *too_long |= setup_temp::says_too_long(&l); } } @@ -4636,11 +4701,12 @@ fn run_prepare(pr: &profile::Prepare, install: &Path, copy: Option<&Path>, extra std::thread::sleep(std::time::Duration::from_millis(150)); read(&mut said, &mut too_long, &mut heard); let code = s.code().map(|c| c.to_string()).unwrap_or_else(|| "a signal".into()); - trail::note(format!("Setup step stopped with code {code}; it said last: {said}")); + let said = said.text(); + trail::note(format!("Setup step stopped with code {code}; it said last: {}", said.replace('\n', " | "))); if cfg!(windows) && too_long { return Err(setup_temp::too_long_with(&said)); } - return Err(if said.is_empty() { format!("Its setup step stopped with code {code}.") } else { format!("Its setup step stopped with code {code}: {said}") }); + return Err(step_failed(&code, &said)); } // No time limit: a full build on a Steam Deck can take hours. Only a step that has printed // nothing for SILENT_FOR is given up on, and Cancel stops it any time. @@ -11567,11 +11633,53 @@ mod tests { #[test] fn a_build_from_what_was_kept_that_fails_asks_for_the_copy_in_a_sentence_of_its_own() { - let said = "Its setup step stopped with code 3: nothing kept"; - assert_eq!(kept_failed(said), "Its setup step stopped with code 3: nothing kept. Choose your copy of the game to build it from that."); + let said = "Its setup step stopped with code 3.\nnothing kept"; + assert_eq!(kept_failed(said), "Its setup step stopped with code 3. Choose your copy of the game to build it from that.\nnothing kept"); assert_eq!(kept_failed("It stopped. "), "It stopped. Choose your copy of the game to build it from that."); } + #[test] + fn a_failed_setup_step_shows_the_launchers_line_then_what_it_printed_last() { + let said = step_failed("1", "Missing: vulkan\nsudo apt install libvulkan-dev"); + assert_eq!(said, "Its setup step stopped with code 1.\nMissing: vulkan\nsudo apt install libvulkan-dev"); + } + + #[test] + fn a_setup_step_that_printed_nothing_shows_only_its_code() { + assert_eq!(step_failed("2", ""), "Its setup step stopped with code 2."); + } + + #[test] + fn a_setup_step_keeps_only_its_last_lines() { + let mut said = LastSaid::default(); + for i in 0..SAID_LINES + 5 { + said.push(&format!("line {i}")); + } + let text = said.text(); + let last = format!("line {}", SAID_LINES + 4); + assert_eq!(text.lines().count(), SAID_LINES); + assert_eq!(text.lines().next(), Some("line 5")); + assert_eq!(text.lines().last(), Some(last.as_str())); + } + + #[test] + fn a_setup_steps_blank_lines_are_not_kept() { + let mut said = LastSaid::default(); + said.push("reason"); + said.push(" "); + assert_eq!(said.text(), "reason"); + } + + #[test] + fn a_setup_steps_colour_codes_are_taken_out() { + assert_eq!(plain_line("\u{1b}[1;31merror:\u{1b}[0m vulkan missing"), "error: vulkan missing"); + } + + #[test] + fn a_progress_bar_drawn_over_itself_keeps_only_its_last_drawing() { + assert_eq!(plain_line("10%\r50%\rdone"), "done"); + } + #[test] fn run_prepare_cancellation_kills_process_and_preserves_external_files() { let dir = std::env::temp_dir().join(format!("rl-prep-cancel-{}", std::process::id())); diff --git a/tests/beta54.test.cjs b/tests/beta54.test.cjs index b259ae60..16010916 100644 --- a/tests/beta54.test.cjs +++ b/tests/beta54.test.cjs @@ -80,7 +80,8 @@ test('there is no Move Build: the build is the launcher\'s own, in the folder th test('a setup the game asks for runs, and a setup step that stops says what it said', () => { // (Only Play answers it: a shortcut or the page asking doesn't use up the game's request.) assert.match(own, /if g\.setup_done && asked_for_setup\(st, id, &g, play\) \{/); - assert.match(rust, /format!\("Its setup step stopped with code \{code\}: \{said\}"\)/); + assert.match(rust, /format!\("Its setup step stopped with code \{code\}\."\);/); + assert.match(rust, /format!\("\{head\}\\n\{said\}"\)/); assert.match(read('src-tauri/src/nup.rs'), /fn wrong_folder\(dir: &Path\) -> String/); assert.match(rust, /fn say_why_it_stopped\(\)/); }); From 36f6542b6009ff100d0c098733fb5ee844715b04 Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 15:31:40 +0200 Subject: [PATCH 03/35] Setup step failure: the reason and its last lines, on desktop and in Big Picture The error screen translates "Its setup step stopped with code N.", shows the last four lines the step printed in a small box under it, and is headed Setup Didn't Finish instead of blaming the copy. A build in the background toasts the reason and the last line. --- tests/setup-fail-output.test.cjs | 82 ++++++++++++++++++++++++++++++++ ui/app.css | 2 + ui/app.js | 34 ++++++++++++- ui/i18n/ar.json | 2 + ui/i18n/de.json | 2 + ui/i18n/es-419.json | 2 + ui/i18n/es.json | 2 + ui/i18n/fr.json | 2 + ui/i18n/id.json | 2 + ui/i18n/it.json | 2 + ui/i18n/ja.json | 2 + ui/i18n/ko.json | 2 + ui/i18n/nl.json | 2 + ui/i18n/pl.json | 2 + ui/i18n/pt-BR.json | 2 + ui/i18n/pt.json | 2 + ui/i18n/ru.json | 2 + ui/i18n/th.json | 2 + ui/i18n/tr.json | 2 + ui/i18n/uk.json | 2 + ui/i18n/vi.json | 2 + ui/i18n/zh-Hans.json | 2 + ui/i18n/zh-Hant.json | 2 + ui/tv.css | 2 + ui/tv.js | 2 +- 25 files changed, 159 insertions(+), 3 deletions(-) create mode 100644 tests/setup-fail-output.test.cjs diff --git a/tests/setup-fail-output.test.cjs b/tests/setup-fail-output.test.cjs new file mode 100644 index 00000000..ceb8527f --- /dev/null +++ b/tests/setup-fail-output.test.cjs @@ -0,0 +1,82 @@ +const assert = require('node:assert/strict'); +const { readFileSync } = require('node:fs'); +const { join } = require('node:path'); +const test = require('node:test'); +const { runInNewContext } = require('node:vm'); + +// A setup step that stopped: the player sees the launcher's line (translated, with the step's +// code) and the last few lines the step printed in a box, never one cut-off line or the whole log. +// Desktop and Big Picture draw it with the same helpers. +const ui = (f) => readFileSync(join(__dirname, '../ui', f), 'utf8'); +const app = ui('app.js'); +const tv = ui('tv.js'); +const between = (src, from, to) => src.slice(src.indexOf(from), src.indexOf(to)); +const helpersSrc = between(app, 'const SETUP_TAIL_LINES', '// Steps that finish quickly still show'); + +const esc = (s) => String(s).replace(/&/g, '&').replace(//g, '>'); +const tf = (s, o) => s.replace(/\{(\w+)\}/g, (_, k) => o[k]); +const helpers = runInNewContext(`${helpersSrc}\n({ setupFail, setupFailHtml, setupFailTitle, setupFailShort, SETUP_TAIL_LINES })`, { t: String, tf, esc }); + +const DEBIAN = [ + 'Its setup step stopped with code 1.', + 'Checking what this PC has...', + 'Missing: Vulkan SDK, .NET 10 SDK', + 'On Debian or Ubuntu, install them with:', + ' sudo apt install cmake ninja-build', + ' libvulkan-dev vulkan-validation-layers spirv-tools dotnet-sdk-10.0 git', +].join('\n'); + +test('the launcher line of a failed setup step is read with its code', () => { + const f = helpers.setupFail(DEBIAN); + assert.equal(f.head, 'Its setup step stopped with code 1.'); + assert.equal(f.step, true); +}); + +test('the lines the step printed are kept apart from the launcher line', () => { + assert.equal(helpers.setupFail(DEBIAN).printed.length, 5); +}); + +test('the error screen shows only the last few printed lines', () => { + const html = helpers.setupFailHtml(DEBIAN, 'su-err', 'su-tail'); + const box = html.match(/
([\s\S]*)<\/pre>/)[1];
+  assert.equal(box.split('\n').length, helpers.SETUP_TAIL_LINES);
+  assert.ok(!box.includes('Checking what this PC has'));
+  assert.ok(box.endsWith('dotnet-sdk-10.0 git'));
+});
+
+test('a step that printed nothing shows no box', () => {
+  const html = helpers.setupFailHtml('Its setup step stopped with code 2.', 'su-err', 'su-tail');
+  assert.equal(html, '

Its setup step stopped with code 2.

'); +}); + +test('what the step printed is escaped', () => { + const html = helpers.setupFailHtml('Its setup step stopped with code 1.\nno', 'su-err', 'su-tail'); + assert.ok(html.includes('<b>no</b>')); +}); + +test('a build from what was kept keeps its sentence after the code', () => { + const f = helpers.setupFail('Its setup step stopped with code 3. Choose your copy of the game to build it from that.\nnothing kept'); + assert.equal(f.head, 'Its setup step stopped with code 3. Choose your copy of the game to build it from that.'); +}); + +test('a failed setup step is not blamed on the copy', () => { + assert.equal(helpers.setupFailTitle(DEBIAN), 'Setup Didn\'t Finish'); + assert.equal(helpers.setupFailTitle('That file is not a disc image.'), 'That copy didn\'t work'); +}); + +test('the toast for a build in the background has the reason and the last line', () => { + assert.equal(helpers.setupFailShort('Its setup step stopped with code 1.\nfirst\nlast'), 'Its setup step stopped with code 1. last'); +}); + +test('desktop and Big Picture draw the error with the same helpers', () => { + assert.match(app, /setupFailHtml\(SU\.err, 'su-err', 'su-tail'\)/); + assert.match(tv, /setupFailHtml\(TS\.err, 'err', 'tv-tail'\)/); + assert.match(app, /setupFailTitle\(SU\.err\)/); + assert.match(tv, /setupFailTitle\(TS\.err\)/); +}); + +test('the new texts are translated', () => { + const de = JSON.parse(ui('i18n/de.json')); + assert.ok(de['Its setup step stopped with code {code}.'].includes('{code}')); + assert.ok(de['Setup Didn\'t Finish']); +}); diff --git a/ui/app.css b/ui/app.css index c54c5550..753c456b 100644 --- a/ui/app.css +++ b/ui/app.css @@ -787,6 +787,8 @@ body.light .pick .fmt,body.light .ready .set-row .k .fmt{background:rgba(20,120, .ni-content,.ni-tv{display:flex;flex-direction:column;min-height:0;gap:18px} .ni-notice p{margin:0 0 10px;color:var(--muted)} .su-err{color:#ffc2c2;white-space:pre-line} +/* The last lines a setup step printed, as it printed them: a few lines, never the whole log. */ +.su-tail{margin:0;padding:10px 12px;border-radius:10px;background:var(--fill2);color:var(--muted);font:12.5px/1.45 ui-monospace,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:9em;overflow:auto;user-select:text} /* ---------- Easy Setup in steps (setup-steps.js) ---------- One height for every step, the list scrolling inside it, so Back, the line by the button and Next/Set Up never move. The copy's box keeps its size and buttons whether it's empty or filled. */ diff --git a/ui/app.js b/ui/app.js index 81699640..68fd90c4 100644 --- a/ui/app.js +++ b/ui/app.js @@ -3851,6 +3851,36 @@ async function suAfterCopy() { SU.stage = 'ready'; suDraw(); } +// How many of the lines a setup step printed last show under its error: the reason, not the log. +const SETUP_TAIL_LINES = 4; +// A setup that stopped, as the core says it: the launcher's line first, then what the recomp's +// setup step printed last, on lines of their own. The launcher's line is translated (with the +// step's code in it); the step's own words stay as it printed them. +function setupFail(text) { + const [head, ...printed] = String(text || '').split('\n'); + const coded = /^Its setup step stopped with code (.+?)\.(?: (.+))?$/.exec(head); + if (!coded) return { head: t(head), printed, step: false }; + const said = tf('Its setup step stopped with code {code}.', { code: coded[1] }); + return { head: coded[2] ? `${said} ${t(coded[2])}` : said, printed, step: true }; +} +// The error screen's text, desktop and Big Picture alike: the reason, then the last few lines the +// step printed in a box of their own. +function setupFailHtml(text, pClass, tailClass) { + const f = setupFail(text); + const tail = f.printed.slice(-SETUP_TAIL_LINES); + const box = tail.length ? `
${esc(tail.join('\n'))}
` : ''; + return `

${esc(f.head)}

${box}`; +} +// The error screen's heading: a setup step that stopped didn't fail because of the copy. +function setupFailTitle(text) { + return setupFail(text).step ? t('Setup Didn\'t Finish') : t('That copy didn\'t work'); +} +// For a toast: the reason and the last line the step printed. +function setupFailShort(text) { + const f = setupFail(text); + const last = f.printed[f.printed.length - 1]; + return last ? `${f.head} ${last}` : f.head; +} // Steps that finish quickly still show for a moment, so each one can be seen. function suPump() { clearTimeout(SU.timer); @@ -3887,7 +3917,7 @@ T.event.listen('setup', ({ payload: p }) => { buildLeft(p.id); setTimeout(nextInLine, 0); if (!SU.el || SU.id !== p.id) { - toast(p.text || t("Setup didn't finish."), true); + toast(p.text ? setupFailShort(p.text) : t("Setup didn't finish."), true); render(true); if (S.view === 'game') refreshGame(); } @@ -3982,7 +4012,7 @@ function suDraw() {

${esc(t('The launcher can make a plain copy beside it and set the game up with that. Your own file stays as it is.'))}

`; } else { - right = `${esc(t('Easy Setup'))} · ${esc(a.name)}

${esc(t('That copy didn\'t work'))}

${esc(t(SU.err))}

+ right = `${esc(t('Easy Setup'))} · ${esc(a.name)}

${esc(setupFailTitle(SU.err))}

${setupFailHtml(SU.err, 'su-err', 'su-tail')}
`; } const keepDisc = $('.su-media .mdisc', box); diff --git a/ui/i18n/ar.json b/ui/i18n/ar.json index 5716f974..8fa483b0 100644 --- a/ui/i18n/ar.json +++ b/ui/i18n/ar.json @@ -1284,6 +1284,8 @@ "That cloud save is gone.": "ملف الحفظ السحابي هذا لم يعد موجودًا.", "That code ran out.": "انتهت صلاحية هذا الرمز.", "That copy didn't work": "لم تنجح تلك النسخة", + "Setup Didn't Finish": "لم يكتمل الإعداد", + "Its setup step stopped with code {code}.": "توقفت خطوة الإعداد الخاصة بها بالرمز {code}.", "That copy is gone.": "هذه النسخة لم تعد موجودة.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "لا يمكن قراءة صورة القرص هذه: ربما تكون ناقصة أو مضغوطة أو ليست قرص Xbox. استخدم ملف .iso كاملًا وغير مضغوط من قرصك.", "That disc image isn't the game this recomp reads.": "صورة القرص هذه ليست اللعبة التي تقرؤها هذه اللعبة المعاد تجميعها.", diff --git a/ui/i18n/de.json b/ui/i18n/de.json index 0ddf3dfe..481e727f 100644 --- a/ui/i18n/de.json +++ b/ui/i18n/de.json @@ -1284,6 +1284,8 @@ "That cloud save is gone.": "Diesen Cloud-Spielstand gibt es nicht mehr.", "That code ran out.": "Dieser Code ist abgelaufen.", "That copy didn't work": "Diese Kopie hat nicht funktioniert", + "Setup Didn't Finish": "Einrichtung nicht abgeschlossen", + "Its setup step stopped with code {code}.": "Sein Einrichtungsschritt wurde mit Code {code} beendet.", "That copy is gone.": "Diese Kopie gibt es nicht mehr.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "Dieses Disc-Image kann nicht gelesen werden: Es ist vielleicht unvollständig, komprimiert oder keine Xbox-Disc. Nimm eine vollständige, unkomprimierte .iso deiner Disc.", "That disc image isn't the game this recomp reads.": "Dieses Disc-Image ist nicht das Spiel, das dieser Recomp liest.", diff --git a/ui/i18n/es-419.json b/ui/i18n/es-419.json index 13c1bac6..dae9d1cf 100644 --- a/ui/i18n/es-419.json +++ b/ui/i18n/es-419.json @@ -1273,6 +1273,8 @@ "That cloud save is gone.": "Esa partida de la nube ya no está.", "That code ran out.": "Ese código venció.", "That copy didn't work": "Esa copia no funcionó", + "Setup Didn't Finish": "La configuración no terminó", + "Its setup step stopped with code {code}.": "Su paso de configuración se detuvo con el código {code}.", "That copy is gone.": "Esa copia ya no está.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "Esa imagen de disco no se puede leer: puede estar incompleta, comprimida o no ser un disco de Xbox. Usa una .iso completa y sin comprimir de tu disco.", "That disc image isn't the game this recomp reads.": "Esa imagen de disco no es del juego que lee este recomp.", diff --git a/ui/i18n/es.json b/ui/i18n/es.json index 22a3edbf..8aa5eabc 100644 --- a/ui/i18n/es.json +++ b/ui/i18n/es.json @@ -1284,6 +1284,8 @@ "That cloud save is gone.": "Esa partida de la nube ya no está.", "That code ran out.": "Ese código ha caducado.", "That copy didn't work": "Esa copia no ha funcionado", + "Setup Didn't Finish": "La configuración no ha terminado", + "Its setup step stopped with code {code}.": "Su paso de configuración se ha detenido con el código {code}.", "That copy is gone.": "Esa copia ya no está.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "Esa imagen de disco no se puede leer: puede estar incompleta, comprimida o no ser un disco de Xbox. Usa una .iso completa y sin comprimir de tu disco.", "That disc image isn't the game this recomp reads.": "Esa imagen de disco no es del juego que lee esta recomp.", diff --git a/ui/i18n/fr.json b/ui/i18n/fr.json index 948d1556..2eb5d13d 100644 --- a/ui/i18n/fr.json +++ b/ui/i18n/fr.json @@ -1284,6 +1284,8 @@ "That cloud save is gone.": "Cette sauvegarde du cloud n'existe plus.", "That code ran out.": "Ce code a expiré.", "That copy didn't work": "Cette copie n'a pas fonctionné", + "Setup Didn't Finish": "La configuration n'a pas abouti", + "Its setup step stopped with code {code}.": "Son étape de configuration s'est arrêtée avec le code {code}.", "That copy is gone.": "Cette copie n'existe plus.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "Cette image disque est illisible : elle est peut-être incomplète, compressée ou ce n’est pas un disque Xbox. Utilisez une .iso complète et non compressée de votre disque.", "That disc image isn't the game this recomp reads.": "Cette image disque ne correspond pas au jeu que lit cette recomp.", diff --git a/ui/i18n/id.json b/ui/i18n/id.json index 7adabc86..291c975f 100644 --- a/ui/i18n/id.json +++ b/ui/i18n/id.json @@ -1284,6 +1284,8 @@ "That cloud save is gone.": "Save cloud itu sudah tidak ada.", "That code ran out.": "Kode itu sudah kedaluwarsa.", "That copy didn't work": "Salinan itu tidak berhasil", + "Setup Didn't Finish": "Penyiapan Tidak Selesai", + "Its setup step stopped with code {code}.": "Langkah penyiapannya berhenti dengan kode {code}.", "That copy is gone.": "Salinan itu sudah tidak ada.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "Image disk itu tidak bisa dibaca: mungkin tidak lengkap, terkompresi, atau bukan disk Xbox. Gunakan .iso lengkap tanpa kompresi dari disk-mu.", "That disc image isn't the game this recomp reads.": "Image disc itu bukan game yang dibaca recomp ini.", diff --git a/ui/i18n/it.json b/ui/i18n/it.json index 8a5f3c60..e8ca99b2 100644 --- a/ui/i18n/it.json +++ b/ui/i18n/it.json @@ -1284,6 +1284,8 @@ "That cloud save is gone.": "Quel salvataggio nel cloud non c'è più.", "That code ran out.": "Quel codice è scaduto.", "That copy didn't work": "Questa copia non ha funzionato", + "Setup Didn't Finish": "Configurazione non completata", + "Its setup step stopped with code {code}.": "Il suo passaggio di configurazione si è fermato con il codice {code}.", "That copy is gone.": "Quella copia non c'è più.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "Questa immagine disco non si può leggere: potrebbe essere incompleta, compressa o non essere un disco Xbox. Usa una .iso completa e non compressa del tuo disco.", "That disc image isn't the game this recomp reads.": "Questa immagine disco non è il gioco che legge questo recomp.", diff --git a/ui/i18n/ja.json b/ui/i18n/ja.json index 9a0d00ac..ba513e45 100644 --- a/ui/i18n/ja.json +++ b/ui/i18n/ja.json @@ -1284,6 +1284,8 @@ "That cloud save is gone.": "そのクラウドのセーブデータはもうありません。", "That code ran out.": "このコードは期限切れです。", "That copy didn't work": "そのゲームデータは使えませんでした", + "Setup Didn't Finish": "セットアップが完了しませんでした", + "Its setup step stopped with code {code}.": "セットアップ手順がコード {code} で停止しました。", "That copy is gone.": "そのコピーはもうありません。", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "このディスクイメージは読み込めません。不完全か圧縮されているか、Xbox のディスクではない可能性があります。ディスクの完全な非圧縮 .iso を使ってください。", "That disc image isn't the game this recomp reads.": "そのディスクイメージは、このリコンパイル版が読み込むゲームではありません。", diff --git a/ui/i18n/ko.json b/ui/i18n/ko.json index 00f89141..28c5278c 100644 --- a/ui/i18n/ko.json +++ b/ui/i18n/ko.json @@ -1284,6 +1284,8 @@ "That cloud save is gone.": "그 클라우드 저장 데이터는 더 이상 없습니다.", "That code ran out.": "코드가 만료되었습니다.", "That copy didn't work": "그 사본은 작동하지 않았습니다", + "Setup Didn't Finish": "설정을 완료하지 못했습니다", + "Its setup step stopped with code {code}.": "설정 단계가 코드 {code}(으)로 중지되었습니다.", "That copy is gone.": "그 사본은 더 이상 없습니다.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "이 디스크 이미지를 읽을 수 없습니다. 불완전하거나 압축되었거나 Xbox 디스크가 아닐 수 있습니다. 디스크의 완전한 비압축 .iso를 사용하세요.", "That disc image isn't the game this recomp reads.": "그 디스크 이미지는 이 리컴프가 읽는 게임이 아닙니다.", diff --git a/ui/i18n/nl.json b/ui/i18n/nl.json index 59e05af9..d313c714 100644 --- a/ui/i18n/nl.json +++ b/ui/i18n/nl.json @@ -1284,6 +1284,8 @@ "That cloud save is gone.": "Die opgeslagen game in de cloud is er niet meer.", "That code ran out.": "Die code is verlopen.", "That copy didn't work": "Dat exemplaar werkte niet", + "Setup Didn't Finish": "Instellen niet voltooid", + "Its setup step stopped with code {code}.": "Zijn installatiestap stopte met code {code}.", "That copy is gone.": "Die kopie is er niet meer.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "Die schijfkopie kan niet worden gelezen: misschien is hij onvolledig, gecomprimeerd of geen Xbox-schijf. Gebruik een volledige, ongecomprimeerde .iso van je schijf.", "That disc image isn't the game this recomp reads.": "Die schijfkopie is niet de game die deze recomp leest.", diff --git a/ui/i18n/pl.json b/ui/i18n/pl.json index fcdb6283..a0c99fd9 100644 --- a/ui/i18n/pl.json +++ b/ui/i18n/pl.json @@ -1284,6 +1284,8 @@ "That cloud save is gone.": "Tego zapisu w chmurze już nie ma.", "That code ran out.": "Ten kod wygasł.", "That copy didn't work": "Ta kopia nie zadziałała", + "Setup Didn't Finish": "Konfiguracja nie została ukończona", + "Its setup step stopped with code {code}.": "Jej krok konfiguracji zatrzymał się z kodem {code}.", "That copy is gone.": "Tej kopii już nie ma.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "Tego obrazu płyty nie da się odczytać: może być niepełny, skompresowany albo to nie jest płyta Xbox. Użyj pełnego, nieskompresowanego pliku .iso swojej płyty.", "That disc image isn't the game this recomp reads.": "Ten obraz płyty to nie ta gra, której używa ten port.", diff --git a/ui/i18n/pt-BR.json b/ui/i18n/pt-BR.json index 6634b00b..a7f5d881 100644 --- a/ui/i18n/pt-BR.json +++ b/ui/i18n/pt-BR.json @@ -1273,6 +1273,8 @@ "That cloud save is gone.": "Esses dados salvos na nuvem não existem mais.", "That code ran out.": "Esse código expirou.", "That copy didn't work": "Essa cópia não funcionou", + "Setup Didn't Finish": "A configuração não terminou", + "Its setup step stopped with code {code}.": "A etapa de configuração parou com o código {code}.", "That copy is gone.": "Essa cópia não existe mais.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "Essa imagem de disco não pode ser lida: pode estar incompleta, compactada ou não ser um disco de Xbox. Use uma .iso completa e sem compactação do seu disco.", "That disc image isn't the game this recomp reads.": "Essa imagem de disco não é do jogo que este recomp lê.", diff --git a/ui/i18n/pt.json b/ui/i18n/pt.json index 1242fd42..cfbd366e 100644 --- a/ui/i18n/pt.json +++ b/ui/i18n/pt.json @@ -1284,6 +1284,8 @@ "That cloud save is gone.": "Esses dados guardados na nuvem já não existem.", "That code ran out.": "Esse código expirou.", "That copy didn't work": "Essa cópia não funcionou", + "Setup Didn't Finish": "A configuração não terminou", + "Its setup step stopped with code {code}.": "O passo de configuração parou com o código {code}.", "That copy is gone.": "Essa cópia já não existe.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "Esta imagem de disco não pode ser lida: pode estar incompleta, comprimida ou não ser um disco Xbox. Usa uma .iso completa e sem compressão do teu disco.", "That disc image isn't the game this recomp reads.": "Essa imagem de disco não é do jogo que esta recomp lê.", diff --git a/ui/i18n/ru.json b/ui/i18n/ru.json index 9a5f21bf..0c069251 100644 --- a/ui/i18n/ru.json +++ b/ui/i18n/ru.json @@ -1284,6 +1284,8 @@ "That cloud save is gone.": "Этого облачного сохранения больше нет.", "That code ran out.": "Срок действия кода истёк.", "That copy didn't work": "Эта копия не подошла", + "Setup Didn't Finish": "Настройка не завершена", + "Its setup step stopped with code {code}.": "Шаг настройки остановился с кодом {code}.", "That copy is gone.": "Этой копии больше нет.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "Этот образ диска не читается: возможно, он неполный, сжатый или это не диск Xbox. Используйте полный несжатый .iso вашего диска.", "That disc image isn't the game this recomp reads.": "Этот образ диска — не та игра, которую использует эта рекомпиляция.", diff --git a/ui/i18n/th.json b/ui/i18n/th.json index f0ed3291..bcc79155 100644 --- a/ui/i18n/th.json +++ b/ui/i18n/th.json @@ -1284,6 +1284,8 @@ "That cloud save is gone.": "เซฟบนคลาวด์นั้นไม่มีแล้ว", "That code ran out.": "รหัสนั้นหมดอายุแล้ว", "That copy didn't work": "สำเนานั้นใช้ไม่ได้", + "Setup Didn't Finish": "การตั้งค่าไม่เสร็จสิ้น", + "Its setup step stopped with code {code}.": "ขั้นตอนการตั้งค่าหยุดทำงานด้วยรหัส {code}", "That copy is gone.": "สำเนานั้นไม่มีแล้ว", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "อ่านอิมเมจดิสก์นั้นไม่ได้ อาจไม่ครบ ถูกบีบอัด หรือไม่ใช่ดิสก์ Xbox ใช้ไฟล์ .iso ของดิสก์ที่ครบและไม่บีบอัด", "That disc image isn't the game this recomp reads.": "ดิสก์อิมเมจนั้นไม่ใช่เกมที่ Recomp นี้ใช้", diff --git a/ui/i18n/tr.json b/ui/i18n/tr.json index 7d4eac4e..d271a4ca 100644 --- a/ui/i18n/tr.json +++ b/ui/i18n/tr.json @@ -1284,6 +1284,8 @@ "That cloud save is gone.": "Bu bulut kaydı artık yok.", "That code ran out.": "Bu kodun süresi doldu.", "That copy didn't work": "Bu kopya işe yaramadı", + "Setup Didn't Finish": "Kurulum Tamamlanmadı", + "Its setup step stopped with code {code}.": "Kurulum adımı {code} koduyla durdu.", "That copy is gone.": "Bu kopya artık yok.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "Bu disk görüntüsü okunamıyor: eksik, sıkıştırılmış ya da bir Xbox diski olmayabilir. Diskinin tam ve sıkıştırılmamış bir .iso dosyasını kullan.", "That disc image isn't the game this recomp reads.": "Bu disk görüntüsü, bu recomp'un okuduğu oyun değil.", diff --git a/ui/i18n/uk.json b/ui/i18n/uk.json index ab8c44e7..8b6bf73e 100644 --- a/ui/i18n/uk.json +++ b/ui/i18n/uk.json @@ -1284,6 +1284,8 @@ "That cloud save is gone.": "Цього хмарного збереження більше немає.", "That code ran out.": "Термін дії коду минув.", "That copy didn't work": "Ця копія не підійшла", + "Setup Didn't Finish": "Налаштування не завершено", + "Its setup step stopped with code {code}.": "Крок налаштування зупинився з кодом {code}.", "That copy is gone.": "Цієї копії більше немає.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "Цей образ диска не читається: можливо, він неповний, стиснений або це не диск Xbox. Використайте повний нестиснений .iso вашого диска.", "That disc image isn't the game this recomp reads.": "Цей образ диска — не та гра, яку використовує ця рекомпіляція.", diff --git a/ui/i18n/vi.json b/ui/i18n/vi.json index 13004c2a..ef268d86 100644 --- a/ui/i18n/vi.json +++ b/ui/i18n/vi.json @@ -1284,6 +1284,8 @@ "That cloud save is gone.": "Dữ liệu lưu trên đám mây đó không còn nữa.", "That code ran out.": "Mã đó đã hết hạn.", "That copy didn't work": "Bản sao đó không dùng được", + "Setup Didn't Finish": "Thiết lập chưa xong", + "Its setup step stopped with code {code}.": "Bước thiết lập của nó đã dừng với mã {code}.", "That copy is gone.": "Bản sao đó không còn nữa.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "Không đọc được ảnh đĩa đó: có thể nó chưa đầy đủ, bị nén hoặc không phải đĩa Xbox. Hãy dùng tệp .iso đầy đủ, không nén của đĩa.", "That disc image isn't the game this recomp reads.": "Ảnh đĩa đó không phải trò chơi mà bản recomp này đọc.", diff --git a/ui/i18n/zh-Hans.json b/ui/i18n/zh-Hans.json index cebe1f10..4280d3a9 100644 --- a/ui/i18n/zh-Hans.json +++ b/ui/i18n/zh-Hans.json @@ -1284,6 +1284,8 @@ "That cloud save is gone.": "该云端存档已不存在。", "That code ran out.": "该代码已过期。", "That copy didn't work": "该副本无法使用", + "Setup Didn't Finish": "设置未完成", + "Its setup step stopped with code {code}.": "它的设置步骤以代码 {code} 停止。", "That copy is gone.": "该副本已不存在。", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "无法读取这个光盘映像:它可能不完整、经过压缩,或不是 Xbox 光盘。请使用你光盘的完整、未压缩的 .iso。", "That disc image isn't the game this recomp reads.": "该光盘镜像不是此重编译游戏所需的游戏。", diff --git a/ui/i18n/zh-Hant.json b/ui/i18n/zh-Hant.json index 287076ee..265cf04a 100644 --- a/ui/i18n/zh-Hant.json +++ b/ui/i18n/zh-Hant.json @@ -1284,6 +1284,8 @@ "That cloud save is gone.": "這個雲端存檔已經不在了。", "That code ran out.": "該代碼已過期。", "That copy didn't work": "這份副本無法使用", + "Setup Didn't Finish": "設定未完成", + "Its setup step stopped with code {code}.": "它的設定步驟以代碼 {code} 停止。", "That copy is gone.": "這個副本已經不在了。", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "無法讀取這個光碟映像:它可能不完整、經過壓縮,或不是 Xbox 光碟。請使用你光碟的完整、未壓縮的 .iso。", "That disc image isn't the game this recomp reads.": "這個光碟映像檔不是這款重新編譯遊戲所需的遊戲。", diff --git a/ui/tv.css b/ui/tv.css index bc7cf1a4..c8d339de 100644 --- a/ui/tv.css +++ b/ui/tv.css @@ -912,6 +912,8 @@ body.light .tv-ach-banner.gold,body.light .tv-ach-row .ty.win{color:#8a6400}body /* Big Picture setup: why an update file was turned down */ .tv-setup .tt p.err{color:#ffc2c2} +/* The last lines a setup step printed, as on the desktop: read from the couch, so larger. */ +.tv-setup .tt pre.tv-tail{margin:0;padding:14px 18px;border-radius:14px;background:rgba(255,255,255,.07);color:var(--tvsoft,#c9d3e0);font:19px/1.45 ui-monospace,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left;max-width:1100px;max-height:7.5em;overflow:hidden} .tv-setup .tt p.req{color:#ffd9a0} /* file browser: both lists fit the screen and scroll inside it, with room for the focus ring */ diff --git a/ui/tv.js b/ui/tv.js index 8626dc21..46880028 100644 --- a/ui/tv.js +++ b/ui/tv.js @@ -2274,7 +2274,7 @@
`; } else { items = [{ run: () => { TS.stage = 'steps'; TS.named = Object.assign({}, TS.named, { copy: '', busy: false }); setTimeout(tsDraw, 0); } }]; - body = `${med('ghost')}

${esc(t('That copy didn\'t work'))}

${esc(t(TS.err))}

`; + body = `${med('ghost')}

${esc(setupFailTitle(TS.err))}

${setupFailHtml(TS.err, 'err', 'tv-tail')}
`; } el.dataset.stage = TS.stage; el.innerHTML = `${cov ? `
` : ''}${body}`; From 3651685ed99993463cfe96439d80138e66da31ff Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 15:39:05 +0200 Subject: [PATCH 04/35] Docs: what the player sees when a setup step fails --- docs/DEVELOPERS.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/docs/DEVELOPERS.md b/docs/DEVELOPERS.md index 7e718eeb..a2626c72 100644 --- a/docs/DEVELOPERS.md +++ b/docs/DEVELOPERS.md @@ -824,7 +824,16 @@ settings are written. It runs again whenever the player changes their copy. text after it shows under the step. - There's no time limit: a full build on a Steam Deck can take hours. A step that prints nothing at all for an hour is taken as stuck and stopped, so print a line now and then on long work. -- Exit with 0 when it worked. Anything else shows as a failed setup, with your exit code. +- Exit with 0 when it worked. Anything else shows as a failed setup: the player sees "Its setup + step stopped with code N." and, under it, the last four lines your step printed (stdout and + stderr, `progress` lines and colour codes left out). So print the reason last, in words a + player can act on, rather than ending on the tail of a long hint: + + ```sh + echo "Missing: the Vulkan SDK and the .NET 10 SDK." + echo "Install them, then press Set Up again: https://example.com/dkb-recomp#linux" + exit 1 + ``` - Write what you make to `{data}` (pass it in `args`, or read `RECOMPLAUNCHER_DATA`), and have your own launcher use the same place when it's given that path, so both stay in step. - It gets `RECOMPLAUNCHER=1`, `RECOMPLAUNCHER_VERSION` and `RECOMPLAUNCHER_DATA`, like the game. @@ -968,8 +977,9 @@ when it's on its `args` are added after the step's own: ``` - Your setup step gets these args added to its own, with the step's usual environment. Where to put the SDK and its runtime files: [Vendor SDKs the build needs](#vendor-sdks-the-build-needs). -- Print `progress` lines for the download too. If it fails, exit with a code other than 0: the - player sees "Its setup step stopped with code N", so put the reason in your own log. +- Print `progress` lines for the download too. If it fails, exit with a code other than 0 and + print the reason last: the player sees "Its setup step stopped with code N." and the last four + lines your step printed. - An option you add in a later release reaches players who already set the game up: Set Up Again, beside Play, gets a New mark, and the next time they press Play they're asked once to turn it on (the setup runs again with the copy they set up with) or play as it is. Their answer is @@ -995,7 +1005,8 @@ the player agrees to the vendor's license: in the game's folder. 5. With the tick off, the build must be the one you ship today. 6. Print `progress` lines while it downloads. If it fails, exit with a code other than 0 and - write the reason in your own log: the player sees "Its setup step stopped with code N". + print the reason last: the player sees "Its setup step stopped with code N." and the last + four lines your step printed. ### `dumps`: known good copies From c8503b103f2461675d47370373d38785d7c30c23 Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 15:49:20 +0200 Subject: [PATCH 05/35] Setup step failure: room for four wrapped lines in the desktop box --- ui/app.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app.css b/ui/app.css index 753c456b..64f16116 100644 --- a/ui/app.css +++ b/ui/app.css @@ -788,7 +788,7 @@ body.light .pick .fmt,body.light .ready .set-row .k .fmt{background:rgba(20,120, .ni-notice p{margin:0 0 10px;color:var(--muted)} .su-err{color:#ffc2c2;white-space:pre-line} /* The last lines a setup step printed, as it printed them: a few lines, never the whole log. */ -.su-tail{margin:0;padding:10px 12px;border-radius:10px;background:var(--fill2);color:var(--muted);font:12.5px/1.45 ui-monospace,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:9em;overflow:auto;user-select:text} +.su-tail{margin:0;padding:10px 12px;border-radius:10px;background:var(--fill2);color:var(--muted);font:12.5px/1.45 ui-monospace,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:14em;overflow:auto;user-select:text} /* ---------- Easy Setup in steps (setup-steps.js) ---------- One height for every step, the list scrolling inside it, so Back, the line by the button and Next/Set Up never move. The copy's box keeps its size and buttons whether it's empty or filled. */ From da8d67cd880dec913e6d9df84400b2f0761e32af Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 16:12:30 +0200 Subject: [PATCH 06/35] Setup step: keep everything it printed in a log the player can open Each run writes all its lines (colour codes taken out) to setup-output/.log in the launcher's folder, replaced on the next run. open_setup_log opens it, and Export Logs adds it under the game's folder. --- src-tauri/src/lib.rs | 100 ++++++++++++++++++++++++++++++++------ src-tauri/src/logs_zip.rs | 7 +-- 2 files changed, 89 insertions(+), 18 deletions(-) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index ac6f0006..99e2c8a3 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -3798,7 +3798,7 @@ fn setup_run(app: AppHandle, st: &App, id: String, copy: Option) -> Res< setup_track(&ev); let _ = app.emit("setup", ev); }; - let job = SetupJob { app: &app, rid: &rid, sub: sub.as_deref(), p: &run_p, from_kept, dir: &dir }; + let job = SetupJob { app: &app, id: &id, rid: &rid, sub: sub.as_deref(), p: &run_p, from_kept, dir: &dir }; let result = setup_work(&job, &mut g, &emit, &stopped); if !stopped() { match result { @@ -3824,6 +3824,8 @@ fn setup_run(app: AppHandle, st: &App, id: String, copy: Option) -> Res< /// What one setup run works on. struct SetupJob<'a> { app: &'a AppHandle, + /// The game as the window knows it (its setup log is kept under this). + id: &'a str, /// The install whose record it changes. rid: &'a str, /// One game of several: the one being set up. @@ -3889,7 +3891,8 @@ fn setup_work(job: &SetupJob, g: &mut Installed, emit: &dyn Fn(SetupEv), stopped let extra = prepare_extra(job.dir, &pr, &g.prepare_opts); let handed = p.handed(copy.as_deref()); let report = |pct, t| emit(SetupEv { step: "extras".into(), pct, text: t, ..Default::default() }); - let done = run_prepare(&pr, &g.path, handed.as_deref(), &extra, &report, stopped, &writing); + let out = setup_output_file(job.dir, job.id); + let done = run_prepare(&pr, &g.path, handed.as_deref(), &extra, &report, stopped, &writing, out.as_ref()); // Built from what it kept and that didn't work: the player's copy builds it. done.map_err(|e| if job.from_kept { kept_failed(&e) } else { e })?; } @@ -4553,8 +4556,13 @@ impl LastSaid { /// after its last carriage return (a progress bar drawn over itself). Long lines are cut. fn plain_line(line: &str) -> String { let shown = line.rsplit('\r').next().unwrap_or(line); + without_codes(shown).trim().chars().take(300).collect() +} + +/// A line without its colour and cursor codes, which a log file would show as junk. +fn without_codes(line: &str) -> String { let mut out = String::new(); - let mut chars = shown.chars(); + let mut chars = line.chars(); while let Some(c) = chars.next() { if c != '\u{1b}' { out.push(c); @@ -4570,7 +4578,7 @@ fn plain_line(line: &str) -> String { } } } - out.trim().chars().take(300).collect() + out } /// A setup step that stopped with an error code: the launcher's line, then what it printed last @@ -4585,9 +4593,9 @@ fn step_failed(code: &str, said: &str) -> String { /// Runs the recomp's setup step. `writing` is called once the step has started, when it can /// write over the last build; a step that can't start (its program missing, no room, no Proton) -/// never calls it. -fn run_prepare(pr: &profile::Prepare, install: &Path, copy: Option<&Path>, extra: &[String], report: &dyn Fn(f32, String), stopped: &dyn Fn() -> bool, writing: &dyn Fn()) -> Result<(), String> { - use std::io::BufRead; +/// never calls it. `out` gets every line it prints (the full log the player can open or send). +fn run_prepare(pr: &profile::Prepare, install: &Path, copy: Option<&Path>, extra: &[String], report: &dyn Fn(f32, String), stopped: &dyn Fn() -> bool, writing: &dyn Fn(), out: Option<&std::fs::File>) -> Result<(), String> { + use std::io::{BufRead, Write}; let exe = pr.program_in(install).ok_or("Its setup program is missing. Reinstall the game.")?; // On Linux an AppImage is never run, its setup step included: Play unpacks the game first. if cfg!(target_os = "linux") && exe.extension().is_some_and(|x| x.eq_ignore_ascii_case("appimage")) { @@ -4681,6 +4689,10 @@ fn run_prepare(pr: &profile::Prepare, install: &Path, copy: Option<&Path>, extra let read = |said: &mut LastSaid, too_long: &mut bool, heard: &mut Instant| { while let Ok(l) = rx.try_recv() { *heard = Instant::now(); + // Every line, progress ones too: the full log is for whoever reads it to fix it. + if let Some(mut f) = out { + let _ = writeln!(f, "{}", without_codes(&l)); + } let mut w = l.splitn(3, ' '); if w.next() == Some("progress") { let pct = w.next().and_then(|x| x.parse::().ok()).unwrap_or(0.0).clamp(0.0, 1.0); @@ -7130,15 +7142,44 @@ fn webview2_missing() -> bool { /// Where what a game printed on its last start is kept. pub(crate) fn game_output_path(dir: &Path, id: &str) -> PathBuf { + dir.join("game-output").join(log_name(id)) +} + +/// A game id as a log's file name. +fn log_name(id: &str) -> String { let safe: String = id.chars().map(|c| if c.is_ascii_alphanumeric() || c == '-' || c == '_' { c } else { '_' }).collect(); - dir.join("game-output").join(format!("{safe}.log")) + format!("{safe}.log") } /// A fresh file for what a game prints on this start (the last start's is replaced). fn game_output_file(dir: &Path, id: &str) -> Option { - let p = game_output_path(dir, id); + fresh_file(&game_output_path(dir, id)) +} + +/// Where everything a game's setup step printed on its last run is kept: the full log behind +/// the few lines a failed setup shows. +pub(crate) fn setup_output_path(dir: &Path, id: &str) -> PathBuf { + dir.join("setup-output").join(log_name(id)) +} + +/// A fresh file for what the setup step prints on this run (the last run's is replaced). +fn setup_output_file(dir: &Path, id: &str) -> Option { + fresh_file(&setup_output_path(dir, id)) +} + +fn fresh_file(p: &Path) -> Option { std::fs::create_dir_all(p.parent()?).ok()?; - std::fs::File::create(&p).ok() + std::fs::File::create(p).ok() +} + +/// A failed setup's Open Full Log: everything its setup step printed, in the PC's text viewer. +#[tauri::command(async)] +fn open_setup_log(app: AppHandle, st: State<'_, App>, id: String) -> Res<()> { + let p = setup_output_path(&st.dir, &id); + if !p.is_file() { + return Err(Error::Msg("There's no setup log for it yet.".into())); + } + open_thing(&app, &p.to_string_lossy(), false) } #[derive(Serialize)] @@ -10394,7 +10435,7 @@ pub fn run() { forget_game, remove_github, take_options_asked, - get_state, get_catalog, get_releases, net_state, check_updates, launcher_update, install, cancel, uninstall, play, stop, set_exe, forget_program, set_setup_mode, open_folder, + get_state, get_catalog, get_releases, net_state, check_updates, launcher_update, install, cancel, uninstall, play, stop, set_exe, forget_program, set_setup_mode, open_folder, open_setup_log, save_settings, set_start_at_login, list_monitors, prepare_tv_mode, leave_tv_mode, open_url, libraries, move_game, game_sizes, game_size, backups, backup_now, restore_backup, pc_check, set_ui_scale, update_retry, ge_proton_install, proton_now, repo_readme, install_vcredist, scan_roms, rom_matches, copy_files, support_local, desktop_shortcut, refresh_shortcut_art, open_app_control, fs_paste, portable_info, make_portable, add_to_steam, launcher_to_steam, steam_sync::steam_sync_now, steam_sync::steam_sync_state, steam_sync::steam_remove_all, recent_log, screenshots, open_shots, overlay_action, overlay_state, is_handheld, skip_backup, set_cover, art::art_source, art::art_open, art::art_save, art::art_search, art::art_for, all_screenshots, delete_screenshot, copy_screenshot, show_screenshot, controllers, prefetch_images, versions, build_check, news, game_info, mods_state, mods_online, @@ -11726,6 +11767,7 @@ mod tests { stopped.load(std::sync::atomic::Ordering::Relaxed) }, &|| {}, + None, ); assert_eq!(res.unwrap_err(), "Stopped."); @@ -11768,6 +11810,34 @@ mod prepare_env_tests { PathBuf::from(std::fs::read_to_string(dir.join(file)).unwrap().trim()) } + /// A step that prints a progress line and 15 numbered lines, then fails with code 1. + #[cfg(unix)] + fn talker(dir: &Path) -> profile::Prepare { + use std::os::unix::fs::PermissionsExt; + let script = "#!/bin/sh\necho 'progress 0.5 Checking'\nfor i in $(seq 1 15); do echo \"line $i\"; done\nexit 1\n"; + std::fs::write(dir.join("talk.sh"), script).unwrap(); + std::fs::set_permissions(dir.join("talk.sh"), std::fs::Permissions::from_mode(0o755)).unwrap(); + profile::Prepare { program: vec!["talk.sh".into()], ..Default::default() } + } + + #[cfg(unix)] + #[test] + fn a_failed_step_shows_its_last_lines_and_its_full_log_keeps_every_line() { + let dir = std::env::temp_dir().join(format!("rl-prep-talk-{}", std::process::id())); + let _ = std::fs::remove_dir_all(&dir); + std::fs::create_dir_all(&dir).unwrap(); + let pr = talker(&dir); + let log = setup_output_file(&dir, "talker").unwrap(); + let e = run_prepare(&pr, &dir, Some(&dir), &[], &|_, _| {}, &|| false, &|| {}, Some(&log)).unwrap_err(); + let full = std::fs::read_to_string(setup_output_path(&dir, "talker")).unwrap(); + assert_eq!(e.lines().next(), Some("Its setup step stopped with code 1.")); + assert_eq!(e.lines().nth(1), Some("line 6")); + assert_eq!(e.lines().last(), Some("line 15")); + assert_eq!(full.lines().count(), 16, "the progress line and all 15 lines"); + assert_eq!(full.lines().next(), Some("progress 0.5 Checking")); + let _ = std::fs::remove_dir_all(&dir); + } + /// Set Up Again whose step can't start (its program missing): the last build isn't marked /// as cut short, so the game still plays. #[test] @@ -11777,7 +11847,7 @@ mod prepare_env_tests { std::fs::create_dir_all(&dir).unwrap(); let pr = profile::Prepare { program: vec!["missing-builder".into()], ..Default::default() }; let marked = std::cell::Cell::new(0); - let res = run_prepare(&pr, &dir, Some(&dir), &[], &|_, _| {}, &|| false, &|| marked.set(marked.get() + 1)); + let res = run_prepare(&pr, &dir, Some(&dir), &[], &|_, _| {}, &|| false, &|| marked.set(marked.get() + 1), None); assert!(res.is_err()); assert_eq!(marked.get(), 0, "nothing was written"); let _ = std::fs::remove_dir_all(&dir); @@ -11791,7 +11861,7 @@ mod prepare_env_tests { std::fs::create_dir_all(&dir).unwrap(); let pr = tattler(&dir); let marked = std::cell::Cell::new(0); - run_prepare(&pr, &dir, Some(&dir), &[], &|_, _| {}, &|| false, &|| marked.set(marked.get() + 1)).unwrap(); + run_prepare(&pr, &dir, Some(&dir), &[], &|_, _| {}, &|| false, &|| marked.set(marked.get() + 1), None).unwrap(); assert_eq!(marked.get(), 1); let _ = std::fs::remove_dir_all(&dir); } @@ -11802,7 +11872,7 @@ mod prepare_env_tests { let _ = std::fs::remove_dir_all(&dir); std::fs::create_dir_all(&dir).unwrap(); let pr = tattler(&dir); - run_prepare(&pr, &dir, Some(&dir), &[], &|_, _| {}, &|| false, &|| {}).unwrap(); + run_prepare(&pr, &dir, Some(&dir), &[], &|_, _| {}, &|| false, &|| {}, None).unwrap(); let temp = dir.join(setup_temp::FOLDER); assert_eq!(said(&dir, "temp.txt"), temp); assert_eq!(said(&dir, "tmp.txt"), temp); @@ -11822,7 +11892,7 @@ mod prepare_env_tests { std::fs::create_dir_all(dir.join(setup_temp::FOLDER)).unwrap(); std::fs::write(dir.join(setup_temp::FOLDER).join("release.txt"), b"theirs").unwrap(); let pr = tattler(&dir); - let e = run_prepare(&pr, &dir, Some(&dir), &[], &|_, _| {}, &|| false, &|| {}).unwrap_err(); + let e = run_prepare(&pr, &dir, Some(&dir), &[], &|_, _| {}, &|| false, &|| {}, None).unwrap_err(); assert_eq!(e, setup_temp::NOT_OURS); assert!(!dir.join("temp.txt").exists(), "the step didn't run"); assert!(dir.join(setup_temp::FOLDER).join("release.txt").is_file()); diff --git a/src-tauri/src/logs_zip.rs b/src-tauri/src/logs_zip.rs index 43cc987a..b0be3436 100644 --- a/src-tauri/src/logs_zip.rs +++ b/src-tauri/src/logs_zip.rs @@ -48,8 +48,8 @@ fn gather(st: &App) -> Vec<(String, Vec)> { out } -/// One game's logs, under games//: how the launcher last started it, what it printed, ReShade's -/// log and the newest log the game wrote itself. +/// One game's logs, under games//: how the launcher last started it, what it printed, what +/// its setup step printed on its last run, ReShade's log and the newest log the game wrote itself. fn game_files(st: &App, id: &str) -> Vec<(String, Vec)> { let folder = format!("games/{}", safe(id)); let mut out = vec![]; @@ -60,7 +60,8 @@ fn game_files(st: &App, id: &str) -> Vec<(String, Vec)> { let reshade = st.dir.join("looks").join(id).join("ReShade.log"); // The game's own log, unless the newest one is what it printed or ReShade's (already in). let own = crate::recent_log_path(st, id, 0).filter(|p| p != &printed && p != &reshade); - let mut files = vec![(printed, "game-output.log".to_string()), (reshade, "ReShade.log".to_string())]; + let setup = crate::setup_output_path(&st.dir, id); + let mut files = vec![(printed, "game-output.log".to_string()), (setup, "setup-output.log".to_string()), (reshade, "ReShade.log".to_string())]; if let Some(p) = own { let name = p.file_name().map(|n| n.to_string_lossy().to_string()).unwrap_or_else(|| "game.log".into()); files.push((p, name)); From cfa3b2c561c714d42133617b24a9f53423cec05d Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 16:10:17 +0200 Subject: [PATCH 07/35] Setup step failure: its last lines, Copy and Open Full Log The error screen shows the reason, the last 10 lines the step printed and two buttons, on desktop and in Big Picture: Copy puts the game, version, OS and those lines on the clipboard for the developer, and Open Full Log opens everything it printed. --- tests/setup-fail-output.test.cjs | 101 +++++++++++++++++++++++-------- ui/app.css | 4 +- ui/app.js | 43 ++++++++++--- ui/i18n/ar.json | 2 + ui/i18n/de.json | 2 + ui/i18n/es-419.json | 2 + ui/i18n/es.json | 2 + ui/i18n/fr.json | 2 + ui/i18n/id.json | 2 + ui/i18n/it.json | 2 + ui/i18n/ja.json | 2 + ui/i18n/ko.json | 2 + ui/i18n/nl.json | 2 + ui/i18n/pl.json | 2 + ui/i18n/pt-BR.json | 2 + ui/i18n/pt.json | 2 + ui/i18n/ru.json | 2 + ui/i18n/th.json | 2 + ui/i18n/tr.json | 2 + ui/i18n/uk.json | 2 + ui/i18n/vi.json | 2 + ui/i18n/zh-Hans.json | 2 + ui/i18n/zh-Hant.json | 2 + ui/tv.css | 8 ++- ui/tv.js | 13 +++- 25 files changed, 170 insertions(+), 39 deletions(-) diff --git a/tests/setup-fail-output.test.cjs b/tests/setup-fail-output.test.cjs index ceb8527f..8f084f1d 100644 --- a/tests/setup-fail-output.test.cjs +++ b/tests/setup-fail-output.test.cjs @@ -5,78 +5,127 @@ const test = require('node:test'); const { runInNewContext } = require('node:vm'); // A setup step that stopped: the player sees the launcher's line (translated, with the step's -// code) and the last few lines the step printed in a box, never one cut-off line or the whole log. -// Desktop and Big Picture draw it with the same helpers. +// code), the last lines the core sent, then Copy (for the developer) and Open Full Log +// (everything it printed, in a file). Desktop and Big Picture draw it with the same helpers. const ui = (f) => readFileSync(join(__dirname, '../ui', f), 'utf8'); const app = ui('app.js'); const tv = ui('tv.js'); const between = (src, from, to) => src.slice(src.indexOf(from), src.indexOf(to)); -const helpersSrc = between(app, 'const SETUP_TAIL_LINES', '// Steps that finish quickly still show'); +const helpersSrc = between(app, '// A setup that stopped', '// Steps that finish quickly still show'); const esc = (s) => String(s).replace(/&/g, '&').replace(//g, '>'); const tf = (s, o) => s.replace(/\{(\w+)\}/g, (_, k) => o[k]); -const helpers = runInNewContext(`${helpersSrc}\n({ setupFail, setupFailHtml, setupFailTitle, setupFailShort, SETUP_TAIL_LINES })`, { t: String, tf, esc }); + +function helpers({ library = {}, calls = [] } = {}) { + const S = { library, os: 'linux', version: '0.90.0-beta.68' }; + const context = { + t: String, tf, esc, S, + OS_NAME: { windows: 'Windows', macos: 'Mac', linux: 'Linux' }, + byId: () => null, + parentId: (id) => id, + toast: (m) => calls.push(['toast', m]), + invoke: async (cmd, args) => { calls.push([cmd, args]); }, + navigator: { clipboard: { writeText: async (s) => { calls.push(['clip', s]); } } }, + }; + return runInNewContext(`${helpersSrc}\n({ setupFail, setupFailHtml, setupFailTitle, setupFailShort, setupFailDetails, setupFailAct, SU_FAIL })`, context); +} const DEBIAN = [ 'Its setup step stopped with code 1.', - 'Checking what this PC has...', - 'Missing: Vulkan SDK, .NET 10 SDK', - 'On Debian or Ubuntu, install them with:', + '[missing] Vulkan SDK (libvulkan-dev)', + 'Missing packages. Install them with:', ' sudo apt install cmake ninja-build', ' libvulkan-dev vulkan-validation-layers spirv-tools dotnet-sdk-10.0 git', ].join('\n'); +const button = (act, label) => `${label}`; +const opts = { p: 'err', row: 'row', tail: 'tail', button }; + test('the launcher line of a failed setup step is read with its code', () => { - const f = helpers.setupFail(DEBIAN); + const f = helpers().setupFail(DEBIAN); assert.equal(f.head, 'Its setup step stopped with code 1.'); assert.equal(f.step, true); }); test('the lines the step printed are kept apart from the launcher line', () => { - assert.equal(helpers.setupFail(DEBIAN).printed.length, 5); + assert.equal(helpers().setupFail(DEBIAN).printed.length, 4); +}); + +test('the error shows the reason first', () => { + const html = helpers().setupFailHtml(DEBIAN, opts); + assert.ok(html.startsWith('

Its setup step stopped with code 1.

')); }); -test('the error screen shows only the last few printed lines', () => { - const html = helpers.setupFailHtml(DEBIAN, 'su-err', 'su-tail'); - const box = html.match(/
([\s\S]*)<\/pre>/)[1];
-  assert.equal(box.split('\n').length, helpers.SETUP_TAIL_LINES);
-  assert.ok(!box.includes('Checking what this PC has'));
-  assert.ok(box.endsWith('dotnet-sdk-10.0 git'));
+test('the error always shows every line the core sent', () => {
+  const html = helpers().setupFailHtml(DEBIAN, opts);
+  const box = html.match(/
([\s\S]*)<\/pre>/)[1];
+  assert.equal(box.split('\n').length, 4);
 });
 
-test('a step that printed nothing shows no box', () => {
-  const html = helpers.setupFailHtml('Its setup step stopped with code 2.', 'su-err', 'su-tail');
-  assert.equal(html, '

Its setup step stopped with code 2.

'); +test('Copy and Open Full Log come under the log', () => { + const html = helpers().setupFailHtml(DEBIAN, opts); + assert.deepEqual([...html.matchAll(/data-act="(\w+)"/g)].map((m) => m[1]), ['copy', 'open']); + assert.ok(html.indexOf('
') < html.indexOf('data-act')); +}); + +test('a step that printed nothing shows only the reason', () => { + const html = helpers().setupFailHtml('Its setup step stopped with code 2.', opts); + assert.equal(html, '

Its setup step stopped with code 2.

'); }); test('what the step printed is escaped', () => { - const html = helpers.setupFailHtml('Its setup step stopped with code 1.\nno', 'su-err', 'su-tail'); + const html = helpers().setupFailHtml('Its setup step stopped with code 1.\nno', opts); assert.ok(html.includes('<b>no</b>')); }); test('a build from what was kept keeps its sentence after the code', () => { - const f = helpers.setupFail('Its setup step stopped with code 3. Choose your copy of the game to build it from that.\nnothing kept'); + const f = helpers().setupFail('Its setup step stopped with code 3. Choose your copy of the game to build it from that.\nnothing kept'); assert.equal(f.head, 'Its setup step stopped with code 3. Choose your copy of the game to build it from that.'); }); test('a failed setup step is not blamed on the copy', () => { - assert.equal(helpers.setupFailTitle(DEBIAN), 'Setup Didn\'t Finish'); - assert.equal(helpers.setupFailTitle('That file is not a disc image.'), 'That copy didn\'t work'); + assert.equal(helpers().setupFailTitle(DEBIAN), 'Setup Didn\'t Finish'); + assert.equal(helpers().setupFailTitle('That file is not a disc image.'), 'That copy didn\'t work'); }); test('the toast for a build in the background has the reason and the last line', () => { - assert.equal(helpers.setupFailShort('Its setup step stopped with code 1.\nfirst\nlast'), 'Its setup step stopped with code 1. last'); + assert.equal(helpers().setupFailShort('Its setup step stopped with code 1.\nfirst\nlast'), 'Its setup step stopped with code 1. last'); +}); + +test('Copy says which game, version and PC, then the error as the core said it', () => { + const library = { dkb: { name: 'Donkey Kong 64', tag: 'v1.2.0' } }; + assert.equal(helpers({ library }).setupFailDetails('dkb', DEBIAN), `Donkey Kong 64 · v1.2.0 · Linux · RecompLauncher 0.90.0-beta.68\n${DEBIAN}`); +}); + +test('Copy puts the details on the clipboard', async () => { + const calls = []; + await helpers({ calls }).setupFailAct('copy', 'dkb', DEBIAN); + assert.equal(calls[0][0], 'clip'); + assert.deepEqual(calls[1], ['toast', 'Copied.']); +}); + +test('Open Full Log asks the core to open the game\'s setup log', async () => { + const calls = []; + await helpers({ calls }).setupFailAct('open', 'dkb', DEBIAN); + // As JSON: the arguments object was made inside the sandbox, with its own Object. + assert.equal(JSON.stringify(calls[0]), JSON.stringify(['open_setup_log', { id: 'dkb' }])); }); test('desktop and Big Picture draw the error with the same helpers', () => { - assert.match(app, /setupFailHtml\(SU\.err, 'su-err', 'su-tail'\)/); - assert.match(tv, /setupFailHtml\(TS\.err, 'err', 'tv-tail'\)/); + assert.match(app, /setupFailHtml\(SU\.err, SU_FAIL\)/); + assert.match(tv, /setupFailHtml\(TS\.err, \{ p: 'err', row: 'tv-logb', tail: 'tv-tail', button \}\)/); assert.match(app, /setupFailTitle\(SU\.err\)/); assert.match(tv, /setupFailTitle\(TS\.err\)/); }); +test('the desktop buttons go through Easy Setup\'s own actions', () => { + const html = helpers().setupFailHtml(DEBIAN, helpers().SU_FAIL); + assert.deepEqual([...html.matchAll(/data-su="([\w-]+)"/g)].map((m) => m[1]), ['fail-copy', 'fail-open']); + for (const act of ['fail-copy', 'fail-open']) assert.ok(app.includes(`case '${act}':`), act); +}); + test('the new texts are translated', () => { const de = JSON.parse(ui('i18n/de.json')); assert.ok(de['Its setup step stopped with code {code}.'].includes('{code}')); - assert.ok(de['Setup Didn\'t Finish']); + for (const s of ['Setup Didn\'t Finish', 'Open Full Log']) assert.ok(de[s], s); }); diff --git a/ui/app.css b/ui/app.css index 64f16116..94611339 100644 --- a/ui/app.css +++ b/ui/app.css @@ -787,7 +787,9 @@ body.light .pick .fmt,body.light .ready .set-row .k .fmt{background:rgba(20,120, .ni-content,.ni-tv{display:flex;flex-direction:column;min-height:0;gap:18px} .ni-notice p{margin:0 0 10px;color:var(--muted)} .su-err{color:#ffc2c2;white-space:pre-line} -/* The last lines a setup step printed, as it printed them: a few lines, never the whole log. */ +/* A failed setup step's last lines, as it printed them (a few, never the whole log: Open Full + Log has that), then its Copy and Open Full Log. */ +.su-logb{display:flex;flex-wrap:wrap;gap:8px} .su-tail{margin:0;padding:10px 12px;border-radius:10px;background:var(--fill2);color:var(--muted);font:12.5px/1.45 ui-monospace,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:14em;overflow:auto;user-select:text} /* ---------- Easy Setup in steps (setup-steps.js) ---------- One height for every step, the list scrolling inside it, so Back, the line by the button and diff --git a/ui/app.js b/ui/app.js index 68fd90c4..26c17570 100644 --- a/ui/app.js +++ b/ui/app.js @@ -3516,6 +3516,9 @@ async function suAct(b) { const id = SU.id, su = S.setup[id] || {}; switch (b.dataset.su) { case 'close': return closeSetup(); + // A failed setup step's Copy and Open Full Log. + case 'fail-copy': return setupFailAct('copy', SU.id, SU.err); + case 'fail-open': return setupFailAct('open', SU.id, SU.err); // Back to the steps, with the copy that didn't work taken out of its box. case 'again': SU.stage = 'steps'; SU.err = ''; SU.named = Object.assign({}, SU.named, { copy: '', busy: false }); return suDraw(); case 'anyway': return suBegin(SU.path, true); @@ -3851,8 +3854,6 @@ async function suAfterCopy() { SU.stage = 'ready'; suDraw(); } -// How many of the lines a setup step printed last show under its error: the reason, not the log. -const SETUP_TAIL_LINES = 4; // A setup that stopped, as the core says it: the launcher's line first, then what the recomp's // setup step printed last, on lines of their own. The launcher's line is translated (with the // step's code in it); the step's own words stay as it printed them. @@ -3863,13 +3864,37 @@ function setupFail(text) { const said = tf('Its setup step stopped with code {code}.', { code: coded[1] }); return { head: coded[2] ? `${said} ${t(coded[2])}` : said, printed, step: true }; } -// The error screen's text, desktop and Big Picture alike: the reason, then the last few lines the -// step printed in a box of their own. -function setupFailHtml(text, pClass, tailClass) { +// The error screen's text, desktop and Big Picture alike: the reason, then (when the step printed +// anything) the last lines the core sent in a box, with Copy and Open Full Log under it. +// `o`: the reason's class (p), the box's (tail), the buttons' row (row), and how the screen draws +// a button (button(act, label)): each screen has its own buttons and focus. +function setupFailHtml(text, o) { const f = setupFail(text); - const tail = f.printed.slice(-SETUP_TAIL_LINES); - const box = tail.length ? `
${esc(tail.join('\n'))}
` : ''; - return `

${esc(f.head)}

${box}`; + const reason = `

${esc(f.head)}

`; + if (!f.printed.length) return reason; + const box = `
${esc(f.printed.join('\n'))}
`; + const buttons = `
${o.button('copy', t('Copy'))}${o.button('open', t('Open Full Log'))}
`; + return `${reason}${box}${buttons}`; +} +// The desktop's Easy Setup error: its buttons go through suAct as fail-copy and fail-open. +const SU_FAIL = { p: 'su-err', row: 'su-logb', tail: 'su-tail', button: (act, label) => `` }; +// What Copy puts on the clipboard, for a player who pastes it to the recomp's developer: the game, +// its version, the PC, then the error as the core said it (in English, which they read). +function setupFailDetails(id, text) { + const g = S.library[id] || S.library[parentId(id)] || {}; + const name = (byId(id) || {}).name || g.name || id; + const about = [name, g.tag, OS_NAME[S.os], `RecompLauncher ${S.version}`].filter(Boolean).join(' · '); + return `${about}\n${text}`; +} +// Copy and Open Full Log, the same on both screens. +async function setupFailAct(act, id, text) { + if (act === 'copy') { + try { await navigator.clipboard.writeText(setupFailDetails(id, text)); toast(t('Copied.')); } catch (e) { toast(t('Couldn\'t copy.'), true); } + return; + } + if (act === 'open') { + try { await invoke('open_setup_log', { id }); } catch (e) { toast(t(String(e && e.message ? e.message : e)), true); } + } } // The error screen's heading: a setup step that stopped didn't fail because of the copy. function setupFailTitle(text) { @@ -4012,7 +4037,7 @@ function suDraw() {

${esc(t('The launcher can make a plain copy beside it and set the game up with that. Your own file stays as it is.'))}

`; } else { - right = `${esc(t('Easy Setup'))} · ${esc(a.name)}

${esc(setupFailTitle(SU.err))}

${setupFailHtml(SU.err, 'su-err', 'su-tail')} + right = `${esc(t('Easy Setup'))} · ${esc(a.name)}

${esc(setupFailTitle(SU.err))}

${setupFailHtml(SU.err, SU_FAIL)}
`; } const keepDisc = $('.su-media .mdisc', box); diff --git a/ui/i18n/ar.json b/ui/i18n/ar.json index 8fa483b0..dd1c314f 100644 --- a/ui/i18n/ar.json +++ b/ui/i18n/ar.json @@ -1286,6 +1286,8 @@ "That copy didn't work": "لم تنجح تلك النسخة", "Setup Didn't Finish": "لم يكتمل الإعداد", "Its setup step stopped with code {code}.": "توقفت خطوة الإعداد الخاصة بها بالرمز {code}.", + "Open Full Log": "فتح السجل الكامل", + "There's no setup log for it yet.": "لا يوجد سجل إعداد لها بعد.", "That copy is gone.": "هذه النسخة لم تعد موجودة.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "لا يمكن قراءة صورة القرص هذه: ربما تكون ناقصة أو مضغوطة أو ليست قرص Xbox. استخدم ملف .iso كاملًا وغير مضغوط من قرصك.", "That disc image isn't the game this recomp reads.": "صورة القرص هذه ليست اللعبة التي تقرؤها هذه اللعبة المعاد تجميعها.", diff --git a/ui/i18n/de.json b/ui/i18n/de.json index 481e727f..2b8f5453 100644 --- a/ui/i18n/de.json +++ b/ui/i18n/de.json @@ -1286,6 +1286,8 @@ "That copy didn't work": "Diese Kopie hat nicht funktioniert", "Setup Didn't Finish": "Einrichtung nicht abgeschlossen", "Its setup step stopped with code {code}.": "Sein Einrichtungsschritt wurde mit Code {code} beendet.", + "Open Full Log": "Ganzes Protokoll öffnen", + "There's no setup log for it yet.": "Dafür gibt es noch kein Einrichtungsprotokoll.", "That copy is gone.": "Diese Kopie gibt es nicht mehr.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "Dieses Disc-Image kann nicht gelesen werden: Es ist vielleicht unvollständig, komprimiert oder keine Xbox-Disc. Nimm eine vollständige, unkomprimierte .iso deiner Disc.", "That disc image isn't the game this recomp reads.": "Dieses Disc-Image ist nicht das Spiel, das dieser Recomp liest.", diff --git a/ui/i18n/es-419.json b/ui/i18n/es-419.json index dae9d1cf..00bcd66b 100644 --- a/ui/i18n/es-419.json +++ b/ui/i18n/es-419.json @@ -1275,6 +1275,8 @@ "That copy didn't work": "Esa copia no funcionó", "Setup Didn't Finish": "La configuración no terminó", "Its setup step stopped with code {code}.": "Su paso de configuración se detuvo con el código {code}.", + "Open Full Log": "Abrir registro completo", + "There's no setup log for it yet.": "Todavía no hay un registro de configuración.", "That copy is gone.": "Esa copia ya no está.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "Esa imagen de disco no se puede leer: puede estar incompleta, comprimida o no ser un disco de Xbox. Usa una .iso completa y sin comprimir de tu disco.", "That disc image isn't the game this recomp reads.": "Esa imagen de disco no es del juego que lee este recomp.", diff --git a/ui/i18n/es.json b/ui/i18n/es.json index 8aa5eabc..a288fbad 100644 --- a/ui/i18n/es.json +++ b/ui/i18n/es.json @@ -1286,6 +1286,8 @@ "That copy didn't work": "Esa copia no ha funcionado", "Setup Didn't Finish": "La configuración no ha terminado", "Its setup step stopped with code {code}.": "Su paso de configuración se ha detenido con el código {code}.", + "Open Full Log": "Abrir registro completo", + "There's no setup log for it yet.": "Todavía no hay un registro de configuración.", "That copy is gone.": "Esa copia ya no está.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "Esa imagen de disco no se puede leer: puede estar incompleta, comprimida o no ser un disco de Xbox. Usa una .iso completa y sin comprimir de tu disco.", "That disc image isn't the game this recomp reads.": "Esa imagen de disco no es del juego que lee esta recomp.", diff --git a/ui/i18n/fr.json b/ui/i18n/fr.json index 2eb5d13d..fe2f31b0 100644 --- a/ui/i18n/fr.json +++ b/ui/i18n/fr.json @@ -1286,6 +1286,8 @@ "That copy didn't work": "Cette copie n'a pas fonctionné", "Setup Didn't Finish": "La configuration n'a pas abouti", "Its setup step stopped with code {code}.": "Son étape de configuration s'est arrêtée avec le code {code}.", + "Open Full Log": "Ouvrir le journal complet", + "There's no setup log for it yet.": "Il n'y a pas encore de journal de configuration.", "That copy is gone.": "Cette copie n'existe plus.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "Cette image disque est illisible : elle est peut-être incomplète, compressée ou ce n’est pas un disque Xbox. Utilisez une .iso complète et non compressée de votre disque.", "That disc image isn't the game this recomp reads.": "Cette image disque ne correspond pas au jeu que lit cette recomp.", diff --git a/ui/i18n/id.json b/ui/i18n/id.json index 291c975f..4b32fb6b 100644 --- a/ui/i18n/id.json +++ b/ui/i18n/id.json @@ -1286,6 +1286,8 @@ "That copy didn't work": "Salinan itu tidak berhasil", "Setup Didn't Finish": "Penyiapan Tidak Selesai", "Its setup step stopped with code {code}.": "Langkah penyiapannya berhenti dengan kode {code}.", + "Open Full Log": "Buka Log Lengkap", + "There's no setup log for it yet.": "Belum ada log penyiapan untuknya.", "That copy is gone.": "Salinan itu sudah tidak ada.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "Image disk itu tidak bisa dibaca: mungkin tidak lengkap, terkompresi, atau bukan disk Xbox. Gunakan .iso lengkap tanpa kompresi dari disk-mu.", "That disc image isn't the game this recomp reads.": "Image disc itu bukan game yang dibaca recomp ini.", diff --git a/ui/i18n/it.json b/ui/i18n/it.json index e8ca99b2..b2bf0238 100644 --- a/ui/i18n/it.json +++ b/ui/i18n/it.json @@ -1286,6 +1286,8 @@ "That copy didn't work": "Questa copia non ha funzionato", "Setup Didn't Finish": "Configurazione non completata", "Its setup step stopped with code {code}.": "Il suo passaggio di configurazione si è fermato con il codice {code}.", + "Open Full Log": "Apri registro completo", + "There's no setup log for it yet.": "Non c'è ancora un registro di configurazione.", "That copy is gone.": "Quella copia non c'è più.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "Questa immagine disco non si può leggere: potrebbe essere incompleta, compressa o non essere un disco Xbox. Usa una .iso completa e non compressa del tuo disco.", "That disc image isn't the game this recomp reads.": "Questa immagine disco non è il gioco che legge questo recomp.", diff --git a/ui/i18n/ja.json b/ui/i18n/ja.json index ba513e45..2dbc128c 100644 --- a/ui/i18n/ja.json +++ b/ui/i18n/ja.json @@ -1286,6 +1286,8 @@ "That copy didn't work": "そのゲームデータは使えませんでした", "Setup Didn't Finish": "セットアップが完了しませんでした", "Its setup step stopped with code {code}.": "セットアップ手順がコード {code} で停止しました。", + "Open Full Log": "ログ全体を開く", + "There's no setup log for it yet.": "セットアップのログはまだありません。", "That copy is gone.": "そのコピーはもうありません。", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "このディスクイメージは読み込めません。不完全か圧縮されているか、Xbox のディスクではない可能性があります。ディスクの完全な非圧縮 .iso を使ってください。", "That disc image isn't the game this recomp reads.": "そのディスクイメージは、このリコンパイル版が読み込むゲームではありません。", diff --git a/ui/i18n/ko.json b/ui/i18n/ko.json index 28c5278c..6cd592e7 100644 --- a/ui/i18n/ko.json +++ b/ui/i18n/ko.json @@ -1286,6 +1286,8 @@ "That copy didn't work": "그 사본은 작동하지 않았습니다", "Setup Didn't Finish": "설정을 완료하지 못했습니다", "Its setup step stopped with code {code}.": "설정 단계가 코드 {code}(으)로 중지되었습니다.", + "Open Full Log": "전체 로그 열기", + "There's no setup log for it yet.": "아직 설정 로그가 없습니다.", "That copy is gone.": "그 사본은 더 이상 없습니다.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "이 디스크 이미지를 읽을 수 없습니다. 불완전하거나 압축되었거나 Xbox 디스크가 아닐 수 있습니다. 디스크의 완전한 비압축 .iso를 사용하세요.", "That disc image isn't the game this recomp reads.": "그 디스크 이미지는 이 리컴프가 읽는 게임이 아닙니다.", diff --git a/ui/i18n/nl.json b/ui/i18n/nl.json index d313c714..fcec5f13 100644 --- a/ui/i18n/nl.json +++ b/ui/i18n/nl.json @@ -1286,6 +1286,8 @@ "That copy didn't work": "Dat exemplaar werkte niet", "Setup Didn't Finish": "Instellen niet voltooid", "Its setup step stopped with code {code}.": "Zijn installatiestap stopte met code {code}.", + "Open Full Log": "Volledige log openen", + "There's no setup log for it yet.": "Er is nog geen installatielog.", "That copy is gone.": "Die kopie is er niet meer.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "Die schijfkopie kan niet worden gelezen: misschien is hij onvolledig, gecomprimeerd of geen Xbox-schijf. Gebruik een volledige, ongecomprimeerde .iso van je schijf.", "That disc image isn't the game this recomp reads.": "Die schijfkopie is niet de game die deze recomp leest.", diff --git a/ui/i18n/pl.json b/ui/i18n/pl.json index a0c99fd9..b5dbd1e2 100644 --- a/ui/i18n/pl.json +++ b/ui/i18n/pl.json @@ -1286,6 +1286,8 @@ "That copy didn't work": "Ta kopia nie zadziałała", "Setup Didn't Finish": "Konfiguracja nie została ukończona", "Its setup step stopped with code {code}.": "Jej krok konfiguracji zatrzymał się z kodem {code}.", + "Open Full Log": "Otwórz pełny dziennik", + "There's no setup log for it yet.": "Nie ma jeszcze dziennika konfiguracji.", "That copy is gone.": "Tej kopii już nie ma.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "Tego obrazu płyty nie da się odczytać: może być niepełny, skompresowany albo to nie jest płyta Xbox. Użyj pełnego, nieskompresowanego pliku .iso swojej płyty.", "That disc image isn't the game this recomp reads.": "Ten obraz płyty to nie ta gra, której używa ten port.", diff --git a/ui/i18n/pt-BR.json b/ui/i18n/pt-BR.json index a7f5d881..59ad359b 100644 --- a/ui/i18n/pt-BR.json +++ b/ui/i18n/pt-BR.json @@ -1275,6 +1275,8 @@ "That copy didn't work": "Essa cópia não funcionou", "Setup Didn't Finish": "A configuração não terminou", "Its setup step stopped with code {code}.": "A etapa de configuração parou com o código {code}.", + "Open Full Log": "Abrir log completo", + "There's no setup log for it yet.": "Ainda não há um log de configuração.", "That copy is gone.": "Essa cópia não existe mais.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "Essa imagem de disco não pode ser lida: pode estar incompleta, compactada ou não ser um disco de Xbox. Use uma .iso completa e sem compactação do seu disco.", "That disc image isn't the game this recomp reads.": "Essa imagem de disco não é do jogo que este recomp lê.", diff --git a/ui/i18n/pt.json b/ui/i18n/pt.json index cfbd366e..527158c7 100644 --- a/ui/i18n/pt.json +++ b/ui/i18n/pt.json @@ -1286,6 +1286,8 @@ "That copy didn't work": "Essa cópia não funcionou", "Setup Didn't Finish": "A configuração não terminou", "Its setup step stopped with code {code}.": "O passo de configuração parou com o código {code}.", + "Open Full Log": "Abrir registo completo", + "There's no setup log for it yet.": "Ainda não há um registo de configuração.", "That copy is gone.": "Essa cópia já não existe.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "Esta imagem de disco não pode ser lida: pode estar incompleta, comprimida ou não ser um disco Xbox. Usa uma .iso completa e sem compressão do teu disco.", "That disc image isn't the game this recomp reads.": "Essa imagem de disco não é do jogo que esta recomp lê.", diff --git a/ui/i18n/ru.json b/ui/i18n/ru.json index 0c069251..82ade66f 100644 --- a/ui/i18n/ru.json +++ b/ui/i18n/ru.json @@ -1286,6 +1286,8 @@ "That copy didn't work": "Эта копия не подошла", "Setup Didn't Finish": "Настройка не завершена", "Its setup step stopped with code {code}.": "Шаг настройки остановился с кодом {code}.", + "Open Full Log": "Открыть весь журнал", + "There's no setup log for it yet.": "Журнала настройки пока нет.", "That copy is gone.": "Этой копии больше нет.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "Этот образ диска не читается: возможно, он неполный, сжатый или это не диск Xbox. Используйте полный несжатый .iso вашего диска.", "That disc image isn't the game this recomp reads.": "Этот образ диска — не та игра, которую использует эта рекомпиляция.", diff --git a/ui/i18n/th.json b/ui/i18n/th.json index bcc79155..a97982ad 100644 --- a/ui/i18n/th.json +++ b/ui/i18n/th.json @@ -1286,6 +1286,8 @@ "That copy didn't work": "สำเนานั้นใช้ไม่ได้", "Setup Didn't Finish": "การตั้งค่าไม่เสร็จสิ้น", "Its setup step stopped with code {code}.": "ขั้นตอนการตั้งค่าหยุดทำงานด้วยรหัส {code}", + "Open Full Log": "เปิดบันทึกทั้งหมด", + "There's no setup log for it yet.": "ยังไม่มีบันทึกการตั้งค่า", "That copy is gone.": "สำเนานั้นไม่มีแล้ว", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "อ่านอิมเมจดิสก์นั้นไม่ได้ อาจไม่ครบ ถูกบีบอัด หรือไม่ใช่ดิสก์ Xbox ใช้ไฟล์ .iso ของดิสก์ที่ครบและไม่บีบอัด", "That disc image isn't the game this recomp reads.": "ดิสก์อิมเมจนั้นไม่ใช่เกมที่ Recomp นี้ใช้", diff --git a/ui/i18n/tr.json b/ui/i18n/tr.json index d271a4ca..0df75c42 100644 --- a/ui/i18n/tr.json +++ b/ui/i18n/tr.json @@ -1286,6 +1286,8 @@ "That copy didn't work": "Bu kopya işe yaramadı", "Setup Didn't Finish": "Kurulum Tamamlanmadı", "Its setup step stopped with code {code}.": "Kurulum adımı {code} koduyla durdu.", + "Open Full Log": "Tüm Günlüğü Aç", + "There's no setup log for it yet.": "Henüz bir kurulum günlüğü yok.", "That copy is gone.": "Bu kopya artık yok.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "Bu disk görüntüsü okunamıyor: eksik, sıkıştırılmış ya da bir Xbox diski olmayabilir. Diskinin tam ve sıkıştırılmamış bir .iso dosyasını kullan.", "That disc image isn't the game this recomp reads.": "Bu disk görüntüsü, bu recomp'un okuduğu oyun değil.", diff --git a/ui/i18n/uk.json b/ui/i18n/uk.json index 8b6bf73e..832f6923 100644 --- a/ui/i18n/uk.json +++ b/ui/i18n/uk.json @@ -1286,6 +1286,8 @@ "That copy didn't work": "Ця копія не підійшла", "Setup Didn't Finish": "Налаштування не завершено", "Its setup step stopped with code {code}.": "Крок налаштування зупинився з кодом {code}.", + "Open Full Log": "Відкрити весь журнал", + "There's no setup log for it yet.": "Журналу налаштування ще немає.", "That copy is gone.": "Цієї копії більше немає.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "Цей образ диска не читається: можливо, він неповний, стиснений або це не диск Xbox. Використайте повний нестиснений .iso вашого диска.", "That disc image isn't the game this recomp reads.": "Цей образ диска — не та гра, яку використовує ця рекомпіляція.", diff --git a/ui/i18n/vi.json b/ui/i18n/vi.json index ef268d86..d2872261 100644 --- a/ui/i18n/vi.json +++ b/ui/i18n/vi.json @@ -1286,6 +1286,8 @@ "That copy didn't work": "Bản sao đó không dùng được", "Setup Didn't Finish": "Thiết lập chưa xong", "Its setup step stopped with code {code}.": "Bước thiết lập của nó đã dừng với mã {code}.", + "Open Full Log": "Mở toàn bộ nhật ký", + "There's no setup log for it yet.": "Chưa có nhật ký thiết lập.", "That copy is gone.": "Bản sao đó không còn nữa.", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "Không đọc được ảnh đĩa đó: có thể nó chưa đầy đủ, bị nén hoặc không phải đĩa Xbox. Hãy dùng tệp .iso đầy đủ, không nén của đĩa.", "That disc image isn't the game this recomp reads.": "Ảnh đĩa đó không phải trò chơi mà bản recomp này đọc.", diff --git a/ui/i18n/zh-Hans.json b/ui/i18n/zh-Hans.json index 4280d3a9..d84a0569 100644 --- a/ui/i18n/zh-Hans.json +++ b/ui/i18n/zh-Hans.json @@ -1286,6 +1286,8 @@ "That copy didn't work": "该副本无法使用", "Setup Didn't Finish": "设置未完成", "Its setup step stopped with code {code}.": "它的设置步骤以代码 {code} 停止。", + "Open Full Log": "打开完整日志", + "There's no setup log for it yet.": "还没有设置日志。", "That copy is gone.": "该副本已不存在。", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "无法读取这个光盘映像:它可能不完整、经过压缩,或不是 Xbox 光盘。请使用你光盘的完整、未压缩的 .iso。", "That disc image isn't the game this recomp reads.": "该光盘镜像不是此重编译游戏所需的游戏。", diff --git a/ui/i18n/zh-Hant.json b/ui/i18n/zh-Hant.json index 265cf04a..e2173d63 100644 --- a/ui/i18n/zh-Hant.json +++ b/ui/i18n/zh-Hant.json @@ -1286,6 +1286,8 @@ "That copy didn't work": "這份副本無法使用", "Setup Didn't Finish": "設定未完成", "Its setup step stopped with code {code}.": "它的設定步驟以代碼 {code} 停止。", + "Open Full Log": "開啟完整記錄", + "There's no setup log for it yet.": "還沒有設定記錄。", "That copy is gone.": "這個副本已經不在了。", "That disc image can't be read: it may be incomplete, compressed or not an Xbox disc. Use a full, uncompressed .iso of your disc.": "無法讀取這個光碟映像:它可能不完整、經過壓縮,或不是 Xbox 光碟。請使用你光碟的完整、未壓縮的 .iso。", "That disc image isn't the game this recomp reads.": "這個光碟映像檔不是這款重新編譯遊戲所需的遊戲。", diff --git a/ui/tv.css b/ui/tv.css index c8d339de..9bbf02fe 100644 --- a/ui/tv.css +++ b/ui/tv.css @@ -912,8 +912,12 @@ body.light .tv-ach-banner.gold,body.light .tv-ach-row .ty.win{color:#8a6400}body /* Big Picture setup: why an update file was turned down */ .tv-setup .tt p.err{color:#ffc2c2} -/* The last lines a setup step printed, as on the desktop: read from the couch, so larger. */ -.tv-setup .tt pre.tv-tail{margin:0;padding:14px 18px;border-radius:14px;background:rgba(255,255,255,.07);color:var(--tvsoft,#c9d3e0);font:19px/1.45 ui-monospace,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left;max-width:1100px;max-height:7.5em;overflow:hidden} +/* A failed setup step's buttons and its last lines, as on the desktop: read from the couch, so + larger. A pad can't scroll the box, so when long lines wrap past its height the newest stay in + view (it's filled from the bottom) and the oldest are cut. */ +.tv-setup .tt .tv-logb{display:flex;gap:16px;justify-content:center} +.tv-setup .tt .tv-logb .tv-btn{height:58px;padding:0 24px;font-size:20px;border-radius:18px} +.tv-setup .tt pre.tv-tail{margin:0;padding:14px 18px;border-radius:14px;background:rgba(255,255,255,.07);color:var(--tvsoft,#c9d3e0);font:17px/1.45 ui-monospace,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left;width:1100px;max-width:100%;max-height:15em;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end} .tv-setup .tt p.req{color:#ffd9a0} /* file browser: both lists fit the screen and scroll inside it, with room for the focus ring */ diff --git a/ui/tv.js b/ui/tv.js index 46880028..ddc0efc7 100644 --- a/ui/tv.js +++ b/ui/tv.js @@ -2274,7 +2274,18 @@
`; } else { items = [{ run: () => { TS.stage = 'steps'; TS.named = Object.assign({}, TS.named, { copy: '', busy: false }); setTimeout(tsDraw, 0); } }]; - body = `${med('ghost')}

${esc(setupFailTitle(TS.err))}

${setupFailHtml(TS.err, 'err', 'tv-tail')}
`; + // Copy and Open Full Log: items like the rest, so A presses them. + const runs = { + copy: () => setupFailAct('copy', id, TS.err), + open: () => setupFailAct('open', id, TS.err), + }; + const button = (act, label) => { + items.push({ run: runs[act] }); + const at = items.length - 1; + return ``; + }; + const failHtml = setupFailHtml(TS.err, { p: 'err', row: 'tv-logb', tail: 'tv-tail', button }); + body = `${med('ghost')}

${esc(setupFailTitle(TS.err))}

${failHtml}
`; } el.dataset.stage = TS.stage; el.innerHTML = `${cov ? `
` : ''}${body}`; From 5685de9eb29f729a1d789e21d3e2d28d574bc35f Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 16:10:28 +0200 Subject: [PATCH 08/35] Docs: the last lines, Copy and Open Full Log on a failed setup --- docs/DEVELOPERS.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/DEVELOPERS.md b/docs/DEVELOPERS.md index a2626c72..8e08f133 100644 --- a/docs/DEVELOPERS.md +++ b/docs/DEVELOPERS.md @@ -825,9 +825,11 @@ settings are written. It runs again whenever the player changes their copy. - There's no time limit: a full build on a Steam Deck can take hours. A step that prints nothing at all for an hour is taken as stuck and stopped, so print a line now and then on long work. - Exit with 0 when it worked. Anything else shows as a failed setup: the player sees "Its setup - step stopped with code N." and, under it, the last four lines your step printed (stdout and - stderr, `progress` lines and colour codes left out). So print the reason last, in words a - player can act on, rather than ending on the tail of a long hint: + step stopped with code N.", the last 10 lines your step printed (stdout and stderr, `progress` + lines and colour codes left out) and two buttons: Copy puts those lines with the game, its + version and the player's OS on the clipboard, for them to paste to you, and Open Full Log opens + everything it printed on that run. Players read the short log first, so print the reason last, + in words a player can act on, rather than ending on the tail of a long hint: ```sh echo "Missing: the Vulkan SDK and the .NET 10 SDK." @@ -978,7 +980,7 @@ when it's on its `args` are added after the step's own: - Your setup step gets these args added to its own, with the step's usual environment. Where to put the SDK and its runtime files: [Vendor SDKs the build needs](#vendor-sdks-the-build-needs). - Print `progress` lines for the download too. If it fails, exit with a code other than 0 and - print the reason last: the player sees "Its setup step stopped with code N." and the last four + print the reason last: the player sees "Its setup step stopped with code N." and the last 10 lines your step printed. - An option you add in a later release reaches players who already set the game up: Set Up Again, beside Play, gets a New mark, and the next time they press Play they're asked once to turn @@ -1006,7 +1008,7 @@ the player agrees to the vendor's license: 5. With the tick off, the build must be the one you ship today. 6. Print `progress` lines while it downloads. If it fails, exit with a code other than 0 and print the reason last: the player sees "Its setup step stopped with code N." and the last - four lines your step printed. + 10 lines your step printed. ### `dumps`: known good copies From 1a34edb1f806f659e0c45c1550f4731f876e30e3 Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 16:11:55 +0200 Subject: [PATCH 09/35] Setup step failure: start on Try Another Copy, not on Copy --- tests/setup-fail-output.test.cjs | 5 +++++ ui/app.js | 4 +++- ui/tv.js | 4 +++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/tests/setup-fail-output.test.cjs b/tests/setup-fail-output.test.cjs index 8f084f1d..691efeec 100644 --- a/tests/setup-fail-output.test.cjs +++ b/tests/setup-fail-output.test.cjs @@ -124,6 +124,11 @@ test('the desktop buttons go through Easy Setup\'s own actions', () => { for (const act of ['fail-copy', 'fail-open']) assert.ok(app.includes(`case '${act}':`), act); }); +test('a failed setup starts on Try Another Copy, not on Copy', () => { + assert.match(app, /const retry = SU\.stage === 'error' \? \$\('\.su-r \.btn\.main', box\) : null;/); + assert.match(tv, /const retry = TS\.stage === 'error' \? \$\('\[data-key="ts:0"\]', el\) : null;/); +}); + test('the new texts are translated', () => { const de = JSON.parse(ui('i18n/de.json')); assert.ok(de['Its setup step stopped with code {code}.'].includes('{code}')); diff --git a/ui/app.js b/ui/app.js index 26c17570..295f48af 100644 --- a/ui/app.js +++ b/ui/app.js @@ -4047,7 +4047,9 @@ function suDraw() { box.dataset.stage = SU.stage; box.innerHTML = `${cov ? `
` : ''}
${stageHtml}
${right}
`; - const f = $('.su-r .btn.main, .su-r .pick, .su-r .btn', box) || $('.su-x', box); + // A failed setup: Try Another Copy, not the log's Copy above it. + const retry = SU.stage === 'error' ? $('.su-r .btn.main', box) : null; + const f = retry || $('.su-r .btn.main, .su-r .pick, .su-r .btn', box) || $('.su-x', box); if (f) f.focus({ preventScroll: true }); } else { $('.su-r', box).innerHTML = right; diff --git a/ui/tv.js b/ui/tv.js index ddc0efc7..4b876753 100644 --- a/ui/tv.js +++ b/ui/tv.js @@ -2347,7 +2347,9 @@ // The same control again after a redraw; on a new step, its main button (Next or Set Up). const same = TS.stage === 'steps' && prevKey ? $$('[data-sheet]', el).find((x) => x.dataset.key === prevKey) : null; const main = TS.stage === 'steps' ? $('.ss-foot .btn.main[data-sheet]', el) : null; - const f = same || main || $('[data-sheet]', el); + // A failed setup: Try Another Copy, not the log's Copy above it. + const retry = TS.stage === 'error' ? $('[data-key="ts:0"]', el) : null; + const f = same || main || retry || $('[data-sheet]', el); if (f) focus(f, true); } // A button of the steps, pressed with A: the same actions as the desktop window's (ssAct). From e2f52b75b907b24bbc01f64f5cdb20e3ff88ba66 Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 14:52:38 +0200 Subject: [PATCH 10/35] Saves: a player who skipped Easy Setup can change the folder its developer named A recomplauncher.json (or the catalog) can name a folder the game no longer saves in. For a game set up without Easy Setup, save_override stands in for the one named folder; Easy Setup games keep the named folder. Its own field, so old picks in save_place made before a folder was named stay unused. The game's own folder and folders that hold programs are refused. --- src-tauri/src/cloud.rs | 67 +++++++++++++++++++++++++++++++++- src-tauri/src/lib.rs | 5 +-- src-tauri/src/library.rs | 8 ++++- src-tauri/src/saves.rs | 77 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 153 insertions(+), 4 deletions(-) diff --git a/src-tauri/src/cloud.rs b/src-tauri/src/cloud.rs index 3ebf4fc3..bf83154d 100644 --- a/src-tauri/src/cloud.rs +++ b/src-tauri/src/cloud.rs @@ -538,12 +538,21 @@ fn own_saves(st: &App, id: &str) -> Option { /// Where this game's saves are, best first. pub fn spots_of(st: &App, id: &str, g: &Installed) -> Vec { if let Some(p) = own_saves(st, id) { - // Only the game's own: the recomp's other places are the other games'. + // Only the game's own: the recomp's other places are the other games'. Its override too: + // that's the recomp's, and one folder can't stand in for every game's. let mut g = g.clone(); g.save_place = Default::default(); g.more_save_places.clear(); return named_spots(p.game.saves, vec![], &g); } + let named = named_of(st, id, g); + // Asked only with an override set: most games have none, and it takes the library's lock. + let Some(over) = g.save_override.as_deref() else { return named }; + saves::with_override(named, Some(over), crate::player_sets_up(st, id)) +} + +/// Where its developer, the catalog or the player's own picks say it saves, without the override. +fn named_of(st: &App, id: &str, g: &Installed) -> Vec { let cat = crate::cached_catalog(st); let entry = catalog::app(&cat, id).cloned().unwrap_or(Value::Null); let profile_saves = crate::profile::find(&g.path, &g.repo, &entry).map(|p| p.saves).unwrap_or_default(); @@ -1377,6 +1386,7 @@ pub async fn saves_info(app: AppHandle, id: String) -> Res { SpotInfo { exists: shown.exists(), path: p.to_string_lossy().to_string(), template: s.template, from: s.from } }) .collect(); + let swap = override_info(&st, &id, &g); let local = saves::list(&st.dir, &id, &g); let state = saves::state(&st.dir, &id); let mut cloud = Value::Null; @@ -1409,9 +1419,24 @@ pub async fn saves_info(app: AppHandle, id: String) -> Res { // Seconds until a copy that didn't get through is tried again, and whether the account's // cloud saves are full (no uploads until there's room). "retryIn": state.pending.as_deref().and_then(|p| copy_wait_left(&id, p)), "full": full_now(), + "override": swap, })) } +/// Whether the Saves tab offers Change on the folder its developer or RecompLauncher named, and +/// that folder (still shown while the player's own is used). Null when it doesn't. +fn override_info(st: &App, id: &str, g: &Installed) -> Value { + if own_saves(st, id).is_some() { + return Value::Null; + } + let named = named_of(st, id, g); + if !saves::can_override(&named, crate::player_sets_up(st, id)) { + return Value::Null; + } + let path = saves::resolve_for(&named[0].template, g); + json!({ "on": g.save_override.is_some(), "by": named[0].from, "path": path.to_string_lossy() }) +} + /// Where players see whether the site is having trouble on our side. const STATUS_PAGE: &str = "https://recomplauncher.com/status"; @@ -1766,6 +1791,46 @@ pub fn saves_set_place(st: State<'_, App>, id: String, path: Option) -> Ok(g) } +/// The player's folder in place of the one its developer or RecompLauncher named (a +/// recomplauncher.json that still names an old folder), or None to use the named one again. Only +/// for a game set up without Easy Setup, whose saves are in one named folder (saves::can_override). +#[tauri::command(async)] +pub fn saves_set_override(st: State<'_, App>, id: String, path: Option) -> Res { + let g = game(&st, &id)?; + let path = path.filter(|p| !p.trim().is_empty()); + let template = match path { + Some(p) => Some(override_template(&st, &id, &g, &PathBuf::from(p))?), + None => None, + }; + let mut l = st.lib.lock().unwrap(); + let g = l.installed.get_mut(&id).ok_or_else(|| Error::Msg("It isn't installed.".into()))?; + g.save_override = template; + let g = g.clone(); + let _ = l.save(&st.dir); + Ok(g) +} + +/// `dir` as the game's override, or why it can't be. Not the game's own folder or one that holds +/// programs: backups, restores and cloud saves would take game files for saves, or clear them. +fn override_template(st: &App, id: &str, g: &Installed, dir: &Path) -> Res { + let named = named_of(st, id, g); + if own_saves(st, id).is_some() || !saves::can_override(&named, crate::player_sets_up(st, id)) { + return Err(Error::Msg(OVERRIDE_NOT_HERE.into())); + } + if !dir.is_dir() { + return Err(Error::Msg("That folder couldn't be found.".into())); + } + let same_as_game = dir.canonicalize().ok().zip(g.path.canonicalize().ok()).is_some_and(|(a, b)| a == b); + if same_as_game || saves::holds_programs(dir) { + return Err(Error::Msg(OVERRIDE_GAME_FOLDER.into())); + } + Ok(saves::templatize_for(dir, g)) +} + +/// Fixed texts, so the window can translate them. +pub(crate) const OVERRIDE_NOT_HERE: &str = "Its save folder can only be changed when Easy Setup is skipped for it."; +pub(crate) const OVERRIDE_GAME_FOLDER: &str = "That's the game's own folder, or it holds programs. Pick the folder its saves are in."; + /// One more folder where the game saves (a launcher with several games in it, each saving in its /// own folder): the ones it has now stay, and backups and cloud saves cover all of them. #[tauri::command(async)] diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 5d52951f..75bdfd33 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -879,6 +879,7 @@ async fn do_install(app: &AppHandle, st: &App, id: &str, dir: Option, t look_amount: prev.as_ref().map(|p| p.look_amount).unwrap_or(50), cloud: prev.as_ref().and_then(|p| p.cloud), save_place: prev.as_ref().and_then(|p| p.save_place.clone()), + save_override: prev.as_ref().and_then(|p| p.save_override.clone()), more_save_places: prev.as_ref().map(|p| p.more_save_places.clone()).unwrap_or_default(), cover_file: prev.as_ref().and_then(|p| p.cover_file.clone()), hero_file: prev.as_ref().and_then(|p| p.hero_file.clone()), @@ -4674,7 +4675,7 @@ fn take_skip_choice(ui: &mut Value, id: &str) -> bool { /// The player sets this game up their own way (Skip Easy Setup): its own mode once installed, or /// the tick in its menu before. A game of several in one recomp follows its recomp. -fn player_sets_up(st: &App, id: &str) -> bool { +pub(crate) fn player_sets_up(st: &App, id: &str) -> bool { let rid = setup_record_id(st, id); let l = st.lib.lock().unwrap(); let all = easy_skipped_for_all(&l.settings.ui); @@ -10339,7 +10340,7 @@ pub fn run() { convert_copy, convert_cancel, looks_info, set_look, look_picture, ui_data, reset_settings, tray::tray_words, tray::quit_launcher, ach::ach_access, ach::ach_status, ach::ach_apply, ach::ach_profile, ach::ach_games, ach::ach_board, ach::ach_game_web, ach::ach_report, ach::ach_tracker_get, ach::ach_game, ach::ach_set_disc, ach::ach_set_folder, ach::ach_sound, ach::ach_log, ach::ach_peek, ach::ach_rule, ach::ach_reset, ach::ach_test_toast, ach::ach_toast_take, ach::ach_toast_done, cloud::account_start, cloud::account_poll, cloud::account_cancel, cloud::account_state, cloud::account_signout, - cloud::saves_check, cloud::saves_pick, cloud::saves_play_without_cloud, cloud::saves_cloud, cloud::saves_cloud_follow_all, download_history, report_counts, play_reports, cloud::saves_info, cloud::saves_status, cloud::saves_peek, cloud::saves_upload_now, cloud::cloud_retry, cloud::saves_overview, cloud::saves_backup, cloud::saves_restore, cloud::saves_cloud_delete, cloud::saves_share, cloud::saves_set_place, cloud::saves_add_place, cloud::saves_remove_place, cloud::saves_open, saves_set_root, saves_open_root, missing_files, missing_made, dll_check, dll_aside, gpu_choice, prefer_fast_gpu, copy_check, wine_tools, deck_scores, latest_counts, team_notes, trending, ig_info, ig_view, usage::notifies, usage::notify, usage::pc_specs, usage::recomp_request, + cloud::saves_check, cloud::saves_pick, cloud::saves_play_without_cloud, cloud::saves_cloud, cloud::saves_cloud_follow_all, download_history, report_counts, play_reports, cloud::saves_info, cloud::saves_status, cloud::saves_peek, cloud::saves_upload_now, cloud::cloud_retry, cloud::saves_overview, cloud::saves_backup, cloud::saves_restore, cloud::saves_cloud_delete, cloud::saves_share, cloud::saves_set_place, cloud::saves_set_override, cloud::saves_add_place, cloud::saves_remove_place, cloud::saves_open, saves_set_root, saves_open_root, missing_files, missing_made, dll_check, dll_aside, gpu_choice, prefer_fast_gpu, copy_check, wine_tools, deck_scores, latest_counts, team_notes, trending, ig_info, ig_view, usage::notifies, usage::notify, usage::pc_specs, usage::recomp_request, adopt::adopt_scan, adopt::migrate_scan, adopt::migrate_pick, adopt::adopt_pick, adopt::adopt_add, adopt::adopt_check, adopt::set_project, usage::usage_hello, usage::usage_event, usage::data_ids, usage::reset_ids, ping::usage_open, ping::usage_mode, usage::run_report, cloud::inbox, cloud::inbox_done, cloud::betas, cloud::beta_join, cloud::beta_leave, launcher_notes, scan_info, devtools::dev_add, devtools::add_any, devtools::dev_check, devtools::dev_starter, fs_places, fs_list, fs_extract, gb_mods, gb_mod, gb_install ]) .build(tauri::generate_context!()) diff --git a/src-tauri/src/library.rs b/src-tauri/src/library.rs index 098ae763..9c80bdb0 100644 --- a/src-tauri/src/library.rs +++ b/src-tauri/src/library.rs @@ -190,9 +190,15 @@ pub struct Installed { /// what they picked for every game (see `cloud_on`). #[serde(default)] pub cloud: Option, - /// Where the player says the game saves (Saves, Change): ahead of everything else. + /// Where the player says the game saves (Saves, Change). Only used while neither its developer + /// nor the catalog names a folder (saves::spots): a pick made before one was named is stale. #[serde(default)] pub save_place: Option, + /// The player's folder in place of the one its developer or the catalog names (Saves, Change + /// on that folder), for a game they set up themselves. Its own field, not `save_place`: old + /// stale picks there must not come back. Ignored while Easy Setup is on (saves::with_override). + #[serde(default, skip_serializing_if = "Option::is_none")] + pub save_override: Option, /// More folders the player added (a launcher with several games, each saving in its own). #[serde(default, skip_serializing_if = "Vec::is_empty")] pub more_save_places: Vec, diff --git a/src-tauri/src/saves.rs b/src-tauri/src/saves.rs index ec35a920..3753232b 100644 --- a/src-tauri/src/saves.rs +++ b/src-tauri/src/saves.rs @@ -76,6 +76,26 @@ pub fn spots(dev: &[String], catalog: &[String], g: &Installed) -> Vec { mine.into_iter().map(|template| Spot { template, from: "player" }).collect() } +/// The player may put their own folder in place of the one the developer or RecompLauncher named +/// (a recomplauncher.json that names an old folder) only for a game they set up themselves: Easy +/// Setup is hands-off. Only over one named folder: restore matches a copy's folders by position, +/// so one folder standing in for several would put files in the wrong place. +pub fn can_override(named: &[Spot], sets_up: bool) -> bool { + let [one] = named else { return false }; + sets_up && matches!(one.from, "developer" | "catalog") +} + +/// The game's save places with the player's override (`over`) in place of the named folder, when +/// `can_override` allows it. A "player" place: it's the player's folder, and restore and sharing +/// treat it as one. +pub fn with_override(named: Vec, over: Option<&str>, sets_up: bool) -> Vec { + let Some(over) = over.map(str::trim).filter(|t| !t.is_empty()) else { return named }; + if !can_override(&named, sets_up) { + return named; + } + vec![Spot { template: over.to_string(), from: "player" }] +} + /// The player's save folders with `dir` added to `now` (the ones it has): refused when it's one of /// them already, or inside one or around one (its files would be in two places). pub fn add_place(now: &[String], dir: &Path, g: &Installed) -> Result, String> { @@ -1558,6 +1578,52 @@ mod tests { assert_eq!(s.iter().map(|x| (x.template.as_str(), x.from)).collect::>(), vec![("{install}/mine", "player")]); } + #[test] + fn the_override_replaces_the_developers_folder_when_the_player_sets_up() { + let g = game(Path::new("/games/test")); + let named = spots(&["{install}/save".into()], &[], &g); + let s = with_override(named, Some("{install}/real"), true); + assert_eq!(s.iter().map(|x| (x.template.as_str(), x.from)).collect::>(), vec![("{install}/real", "player")]); + } + + #[test] + fn the_override_replaces_recomplaunchers_folder_when_the_player_sets_up() { + let g = game(Path::new("/games/test")); + let named = spots(&[], &["{local}/Test/saves".into()], &g); + let s = with_override(named, Some("{install}/real"), true); + assert_eq!(s.iter().map(|x| (x.template.as_str(), x.from)).collect::>(), vec![("{install}/real", "player")]); + } + + #[test] + fn easy_setup_ignores_a_left_over_override() { + let g = game(Path::new("/games/test")); + let named = spots(&["{install}/save".into()], &[], &g); + let s = with_override(named, Some("{install}/real"), false); + assert_eq!(s.iter().map(|x| (x.template.as_str(), x.from)).collect::>(), vec![("{install}/save", "developer")]); + } + + #[test] + fn the_override_is_not_used_over_several_named_folders() { + let g = game(Path::new("/games/test")); + let named = spots(&["{install}/one".into(), "{install}/two".into()], &[], &g); + let s = with_override(named, Some("{install}/real"), true); + assert_eq!(s.len(), 2); + } + + #[test] + fn the_override_is_not_used_when_nobody_named_a_folder() { + assert!(!can_override(&[Spot { template: "{install}/mine".into(), from: "player" }], true)); + } + + #[test] + fn an_old_pick_does_not_come_back_without_an_override() { + let mut g = game(Path::new("/games/test")); + g.save_place = Some("{install}/mine".into()); + let named = spots(&["{install}/save".into()], &[], &g); + let s = with_override(named, None, true); + assert_eq!(s.iter().map(|x| (x.template.as_str(), x.from)).collect::>(), vec![("{install}/save", "developer")]); + } + #[test] fn sharing_keeps_the_previous_save_and_the_source() { let d = tmp("sharing-copy"); @@ -2130,6 +2196,17 @@ mod tests { assert!(second.contains("saves"), "{why}"); } + #[test] + fn restore_puts_a_copy_of_the_developers_folder_into_the_override() { + let d = tmp("restore-override"); + let (g, archive) = copy_from_old_folder(&d); + let named = spots(&["{install}/old".into()], &[], &g); + let now = with_override(named, Some("{install}/real"), true); + + assert_eq!(restore(&d.join("app"), "g", &archive, &now, &g).unwrap(), 1); + assert_eq!(fs::read_to_string(g.path.join("real/progress.sav")).unwrap(), "progress"); + } + #[test] fn restore_keeps_the_copys_folder_when_the_folder_count_changed() { let d = tmp("restore-moved-count"); From 24d0aceaea53029b2f84d7c37b01c258ddb4a78a Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 14:58:10 +0200 Subject: [PATCH 11/35] Saves tab: Change on the named folder for games set up without Easy Setup Desktop and Big Picture: the folder its developer or RecompLauncher names gets Change when Easy Setup is skipped for the game. The player's folder then says You changed this folder, and the named one stays on the list, greyed, with Use This Folder to go back. --- tests/beta45.test.cjs | 4 ++- tests/saves-tab.test.cjs | 65 ++++++++++++++++++++++++++++++++++++++++ ui/account.js | 46 +++++++++++++++++++++++----- ui/app.css | 2 ++ ui/tv.css | 2 ++ ui/tv.js | 43 +++++++++++++++++++++----- 6 files changed, 146 insertions(+), 16 deletions(-) diff --git a/tests/beta45.test.cjs b/tests/beta45.test.cjs index 5e71c63d..3c8ac373 100644 --- a/tests/beta45.test.cjs +++ b/tests/beta45.test.cjs @@ -62,7 +62,9 @@ test('a game nobody says where it saves asks the player to pick its folder', () const tv = read('tv.js'); assert.match(account, /if \(savesUnknown\(s\)\) return `
\$\{unknownCard\(id\)\}/); assert.match(tv, /data-tvact="gs-place"/); - assert.match(tv, /case 'gs-place':[\s\S]{0,400}invoke\('saves_set_place'/); + assert.match(tv, /case 'gs-place': return pickSavesFolder\(id\);/); + assert.match(tv, /async function pickSavesFolder\(id\) \{[\s\S]{0,400}invoke\(placeCommand\(TV\.saves\[id\]\)/); + assert.match(account, /case 'saves-place': \{[\s\S]{0,400}invoke\(placeCommand\(S\.saves\[id\]\)/); }); test('the Settings section list sits below the window bar', () => { diff --git a/tests/saves-tab.test.cjs b/tests/saves-tab.test.cjs index fc0357cd..7e262123 100644 --- a/tests/saves-tab.test.cjs +++ b/tests/saves-tab.test.cjs @@ -33,6 +33,11 @@ function tab(S) { ${line(account, 'const FROM = ')} ${line(account, 'const SET_ICON = ')} ${line(account, 'const spotSet = ')} + ${line(account, 'const FROM_CHANGED = ')} + ${block(account, 'const NAMED_UNUSED = ')} + ${line(account, 'const USE_NAMED = ')} + ${line(account, 'const overrideOn = ')} + ${line(account, 'const spotFrom = ')} ${line(account, 'const CURRENT_ICON = ')} ${line(account, 'const NEXT_ICON = ')} ${line(account, 'const SYNCS_ON_PLAY = ')} @@ -48,6 +53,7 @@ function tab(S) { ${block(account, 'function historyCard(')} ${block(account, 'function whereCard(')} ${block(account, 'function spotRow(')} + ${block(account, 'function namedRow(')} return { saveHistory, historyShown, historyToggle, historyCard, whereCard };`)(S); } const fresh = () => ({ savesMore: new Set() }); @@ -149,6 +155,65 @@ test('a folder the player picked can be changed, or more added', () => { assert.match(html, /data-act="saves-place-add"/); }); +// ---------- the player's folder in place of the named one (Easy Setup skipped) ---------- +const offered = { on: false, by: 'developer', path: '/games/g/save' }; +const changed = { on: true, by: 'developer', path: '/games/g/save' }; +const mine = { ...myFolder, path: '/elsewhere/save' }; + +test('with Easy Setup skipped, a folder its developer set can be changed', () => { + const html = tab(fresh()).whereCard('g', { spots: [devFolder], override: offered }); + assert.match(html, /data-act="saves-place"/); +}); + +test('with Easy Setup skipped, a folder its developer set is still not one of several', () => { + assert.doesNotMatch(tab(fresh()).whereCard('g', { spots: [devFolder], override: offered }), /data-act="saves-place-add"/); +}); + +test('a changed folder says the player changed it', () => { + assert.match(tab(fresh()).whereCard('g', { spots: [mine], override: changed }), /You changed this folder/); +}); + +test('a changed folder can be changed again', () => { + assert.match(tab(fresh()).whereCard('g', { spots: [mine], override: changed }), /data-act="saves-place"/); +}); + +test('a changed folder offers no more folders', () => { + assert.doesNotMatch(tab(fresh()).whereCard('g', { spots: [mine], override: changed }), /data-act="saves-place-add"/); +}); + +test('while changed, the developer\'s folder stays on the list, greyed, without the shield', () => { + const html = tab(fresh()).whereCard('g', { spots: [mine], override: changed }); + assert.match(html, /class="set-row svp-unused">
\/games\/g\/save/); + assert.doesNotMatch(html, /svp-set/); +}); + +test('while changed, the developer\'s folder can be used again', () => { + assert.match(tab(fresh()).whereCard('g', { spots: [mine], override: changed }), /data-act="saves-place-named"/); +}); + +test('a folder RecompLauncher set and the player replaced says RecompLauncher names it', () => { + const html = tab(fresh()).whereCard('g', { spots: [mine], override: { ...changed, by: 'catalog' } }); + assert.match(html, /RecompLauncher names this folder/); +}); + +test('picking a folder goes in place of the named one only when that is offered', () => { + assert.match(line(account, 'const placeCommand = '), /s && s\.override \? 'saves_set_override' : 'saves_set_place'/); +}); + +test('the desktop and Big Picture go back to the named folder the same way', () => { + assert.match(block(account, "case 'saves-place-named':"), /invoke\('saves_set_override', \{ id, path: null \}\)/); + assert.match(block(tv, "case 'gs-named':"), /invoke\('saves_set_override', \{ id, path: null \}\)/); +}); + +test('Big Picture offers Open and Change on a folder the player may change', () => { + assert.match(block(tv, 'function savesSpotItem('), /sv\.override \? 'gs-spot' : 'gs-open'/); + assert.match(block(tv, "case 'gs-spot':"), /pickSavesFolder\(id\)/); +}); + +test('Big Picture lists the named folder while the player\'s own is used', () => { + assert.match(tv, /\$\{overrideOn\(sv\) \? savesNamedItem\(id, sv\.override\) : ''\}/); +}); + // ---------- no dead ends ---------- // Every real situation a game's saves can be in, and what gets the player out of it: the act of // the status card's button, or 'by itself' when the launcher sorts it out without them (the next diff --git a/ui/account.js b/ui/account.js index fa74dad3..7ccc5867 100644 --- a/ui/account.js +++ b/ui/account.js @@ -298,6 +298,20 @@ const FROM = { player: N_('You picked this folder'), developer: N_('Set by its d // shield, so the player sees there's nothing to set up. One the player picked is said plainly. const SET_ICON = ''; const spotSet = (p) => p.from === 'developer' || p.from === 'catalog'; +// A game set up without Easy Setup whose recomplauncher.json (or the catalog) names a folder it +// doesn't save in anymore: the player can put their own in its place (saves_info's `override`, +// null when that isn't offered). The named folder stays on the list, unused, to go back to. +const FROM_CHANGED = N_('You changed this folder'); +const NAMED_UNUSED = { + developer: N_('Its developer names this folder. Not used while you use your own.'), + catalog: N_('RecompLauncher names this folder. Not used while you use your own.'), +}; +const USE_NAMED = N_('Use This Folder'); +const overrideOn = (s) => !!(s && s.override && s.override.on); +const spotFrom = (p, s) => (overrideOn(s) && p.from === 'player' ? FROM_CHANGED : FROM[p.from] || ''); +// Picking the save folder: in place of the named one when the player may change it, otherwise +// the player's folder for a game nobody named one for. +const placeCommand = (s) => (s && s.override ? 'saves_set_override' : 'saves_set_place'); // Nobody (the player, its developer or RecompLauncher) has said where this game saves. Nothing is // guessed: the player picks the folder, and until then nothing of it is backed up. const SAVES_UNKNOWN = N_('The launcher doesn\'t know where this game saves'); @@ -538,26 +552,37 @@ function savesSettingsCard(id) { // Where the game keeps its saves. A folder its developer (or RecompLauncher) named is only shown, // with a way to open it: saying where is what recomplauncher.json is for, so there's nothing to -// change. Changing it and more folders are for a folder the player picked, which only counts +// change, unless the player set the game up themselves (Easy Setup skipped), where Change puts +// their folder in its place. More folders are for folders the player picked, which only count // while nobody has named one (saves::spots). function whereCard(id, s) { - const picked = s.spots.filter((p) => p.from === 'player').length; - const rows = s.spots.map((p) => spotRow(id, p, picked > 1)).join(''); + const changed = overrideOn(s); + const picked = changed ? 0 : s.spots.filter((p) => p.from === 'player').length; + const rows = s.spots.map((p) => spotRow(id, p, s, picked > 1)).join(''); + const unused = changed ? namedRow(id, s.override) : ''; const add = picked ? `
${esc(t('Saves in more than one folder?'))}${esc(t('For a launcher with several games in it, each saving in its own folder. Backups and cloud saves cover every folder.'))}
` : ''; - return `

${esc(t('Where it saves'))}

${rows}${add}
`; + return `

${esc(t('Where it saves'))}

${rows}${unused}${add}
`; } -function spotRow(id, p, many) { - const from = esc(t(FROM[p.from] || '')); +function spotRow(id, p, s, many) { + const from = esc(t(spotFrom(p, s))); const notYet = p.exists ? '' : ` · ${esc(t('Not there yet'))}`; const said = spotSet(p) ? `${SET_ICON}${from}${notYet}` : `${from}${notYet}`; const open = p.exists ? `` : ''; + const change = ``; let acts = open; if (many) acts = ``; - else if (p.from === 'player') acts = `${open}`; + else if (p.from === 'player' || s.override) acts = `${open}${change}`; return `
${esc(p.path)}${said}
${acts}
`; } +// The folder its developer or RecompLauncher names, while the player's own is used: greyed, with +// no shield (the player said it's not the right one), and the way back to it. +function namedRow(id, o) { + const text = NAMED_UNUSED[o.by] || NAMED_UNUSED.developer; + return `
${esc(o.path)}${esc(t(text))}
`; +} + const savesChanged = (id) => { delete S.saves[id]; if (S.view === 'game' && S.arg === id && S.tab === 'saves') loadSaves(id); }; // ---------- the cloud save status above Play ---------- @@ -1161,10 +1186,15 @@ window.accountAct = async (act, el) => { // The player knows better (a game that saves somewhere else): their folder from now on. const p = await pickFile({ title: t('The folder where the game keeps its saves'), directory: true }).catch(fail); if (!p) return; - try { S.library[id] = await invoke('saves_set_place', { id, path: typeof p === 'string' ? p : p.path }); } catch (e) { return fail(e); } + try { S.library[id] = await invoke(placeCommand(S.saves[id]), { id, path: typeof p === 'string' ? p : p.path }); } catch (e) { return fail(e); } toast(t('Saved. Backups and cloud saves use that folder now.')); return loadSaves(id); } + case 'saves-place-named': { + try { S.library[id] = await invoke('saves_set_override', { id, path: null }); } catch (e) { return fail(e); } + toast(t('Saved. Backups and cloud saves use that folder again.')); + return loadSaves(id); + } case 'saves-place-add': { const p = await pickFile({ title: t('Another folder where the game keeps its saves'), directory: true }).catch(fail); if (!p) return; diff --git a/ui/app.css b/ui/app.css index c54c5550..770f589b 100644 --- a/ui/app.css +++ b/ui/app.css @@ -2965,6 +2965,8 @@ body.light .set-row .k .svp-set{color:#127a45} .svh-del:hover{color:var(--bad)} /* One RecompLauncher set is the launcher's cyan, so it reads apart from the developer's green. */ .set-row .k .svp-set.ours{color:var(--cyan)} +/* The named folder while the player's own is used instead: greyed, it's not where saves go now. */ +.set-row.svp-unused .k{opacity:.6} /* Sponsor spot on Home (between Ready to Play and Recently Updated) */ .sp-band{margin-top:8px} .sp-tile{position:relative;display:block;width:100%;padding:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--card);cursor:pointer;transition:border-color .15s} diff --git a/ui/tv.css b/ui/tv.css index bc7cf1a4..5d87a1a0 100644 --- a/ui/tv.css +++ b/ui/tv.css @@ -1059,3 +1059,5 @@ body.linux .tv-boot .aurora i{filter:none;mix-blend-mode:normal} .tv-svp-set{display:inline-flex;align-items:center;gap:7px;font-weight:700;color:#3ee08f} .tv-svp-set svg{flex:none;width:20px;height:20px} .tv-svp-set.ours{color:#34F2E8} +/* The named folder while the player's own is used instead: greyed, as on the desktop. */ +.tv-item.tv-svp-unused .k{opacity:.6} diff --git a/ui/tv.js b/ui/tv.js index 8626dc21..8cb77b67 100644 --- a/ui/tv.js +++ b/ui/tv.js @@ -1377,6 +1377,19 @@ const side = r.current ? cur : r.incoming ? next : `${esc(t('Restore'))}`; return ``; } + // A save folder. A opens it, or, when the player may change it (Easy Setup skipped), asks + // whether to open it or pick another, as the desktop's Open and Change. + function savesSpotItem(id, p, i, sv) { + const from = esc(t(spotFrom(p, sv))); + const said = spotSet(p) ? `${SET_ICON}${from}` : from; + const act = sv.override ? 'gs-spot' : 'gs-open'; + return ``; + } + // The folder its developer or RecompLauncher names, while the player's own is used: A goes back to it. + function savesNamedItem(id, o) { + const text = NAMED_UNUSED[o.by] || NAMED_UNUSED.developer; + return ``; + } function pageGameSaves(id) { const a = libAppOf(id), g = S.library[id] || {}; const s0 = TV.saves[id]; @@ -1406,7 +1419,8 @@ ${shareTitle ? `

${esc(t('Settings'))}

` : ''} ${shareTitle ? `` : ''} ${unknown ? '' : `

${esc(t('Where it saves'))}

`} - ${(sv.spots || []).map((p, i) => ``).join('')} + ${(sv.spots || []).map((p, i) => savesSpotItem(id, p, i, sv)).join('')} + ${overrideOn(sv) ? savesNamedItem(id, sv.override) : ''}
`; } return `${backdrop(a, 'game')}${gameBar()} @@ -2900,6 +2914,16 @@ draw(); } + // The same pick as the desktop's Where it saves: the player's folder from now on, or in place + // of the named one for a game set up without Easy Setup. + async function pickSavesFolder(id) { + const p = await pickFile({ title: t('The folder where the game keeps its saves'), directory: true }).catch(fail); + if (!p) return; + try { S.library[id] = await invoke(placeCommand(TV.saves[id]), { id, path: typeof p === 'string' ? p : p.path }); } catch (e) { return fail(e); } + toast(t('Saved. Backups and cloud saves use that folder now.')); + return loadGameSaves(id); + } + async function activate(el) { if (!el || el.disabled) return; // With a sheet open, only what's on it can be picked. @@ -3043,12 +3067,17 @@ return loadGameSaves(id); } case 'gs-open': return invoke('saves_open', { id }).catch(fail); - case 'gs-place': { - // The same pick as the desktop's Where it saves: the player's folder from now on. - const p = await pickFile({ title: t('The folder where the game keeps its saves'), directory: true }).catch(fail); - if (!p) return; - try { S.library[id] = await invoke('saves_set_place', { id, path: typeof p === 'string' ? p : p.path }); } catch (e) { return fail(e); } - toast(t('Saved. Backups and cloud saves use that folder now.')); + case 'gs-place': return pickSavesFolder(id); + case 'gs-spot': { + sfx('open'); + const open = { label: t('Open'), sub: t('Where the game keeps its saves'), icon: 'folder', run: () => invoke('saves_open', { id }).catch(fail) }; + const change = { label: t('Change'), sub: t('The folder where the game keeps its saves'), icon: 'folder', run: () => pickSavesFolder(id) }; + return sheet(t('Where it saves'), el.dataset.exists ? [open, change] : [change]); + } + case 'gs-named': { + sfx('select'); + try { S.library[id] = await invoke('saves_set_override', { id, path: null }); } catch (e) { return fail(e); } + toast(t('Saved. Backups and cloud saves use that folder again.')); return loadGameSaves(id); } case 'gs-restore': { From 316148651f480c82b2ae69b317192b032eaade78 Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 15:01:30 +0200 Subject: [PATCH 12/35] Translations for changing the named save folder --- ui/i18n/ar.json | 6 ++++++ ui/i18n/de.json | 6 ++++++ ui/i18n/es-419.json | 6 ++++++ ui/i18n/es.json | 6 ++++++ ui/i18n/fr-CA.json | 6 ++++++ ui/i18n/fr.json | 6 ++++++ ui/i18n/id.json | 6 ++++++ ui/i18n/it.json | 6 ++++++ ui/i18n/ja.json | 6 ++++++ ui/i18n/ko.json | 6 ++++++ ui/i18n/nl.json | 6 ++++++ ui/i18n/pl.json | 6 ++++++ ui/i18n/pt-BR.json | 6 ++++++ ui/i18n/pt.json | 6 ++++++ ui/i18n/ru.json | 6 ++++++ ui/i18n/th.json | 6 ++++++ ui/i18n/tr.json | 6 ++++++ ui/i18n/uk.json | 6 ++++++ ui/i18n/vi.json | 6 ++++++ ui/i18n/zh-Hans.json | 6 ++++++ ui/i18n/zh-Hant.json | 6 ++++++ 21 files changed, 126 insertions(+) diff --git a/ui/i18n/ar.json b/ui/i18n/ar.json index 5716f974..fbaab5df 100644 --- a/ui/i18n/ar.json +++ b/ui/i18n/ar.json @@ -1591,6 +1591,12 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "أنت من يدير هذا التثبيت. يشغّل «تشغيل» الملف التنفيذي الذي اخترته كما هو، دون الإعداد السهل أو خطوات إعداد المشغّل.", "You only have one library. Add a folder on another drive to move it there.": "لديك مكتبة واحدة فقط. أضف مجلدًا على محرك أقراص آخر لنقلها إليه.", "You picked this folder": "اخترت هذا المجلد", + "You changed this folder": "غيّرت هذا المجلد", + "Its developer names this folder. Not used while you use your own.": "يحدد مطوّر اللعبة هذا المجلد. لا يُستخدم ما دمت تستخدم مجلدك.", + "RecompLauncher names this folder. Not used while you use your own.": "يحدد RecompLauncher هذا المجلد. لا يُستخدم ما دمت تستخدم مجلدك.", + "Saved. Backups and cloud saves use that folder again.": "تم الحفظ. تستخدم النسخ الاحتياطية والحفظ السحابي هذا المجلد مجددًا.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "لا يمكن تغيير مجلد الحفظ إلا عند تخطي الإعداد السهل لهذه اللعبة.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "هذا مجلد اللعبة نفسه، أو فيه برامج. اختر المجلد الذي فيه ملفات الحفظ.", "You said no.": "لقد رفضت.", "You stopped following {name}.": "توقفت عن متابعة {name}.", "You were signed out. Sign in again to use cloud saves.": "تم تسجيل خروجك. سجل الدخول مرة أخرى لاستخدام الحفظ السحابي.", diff --git a/ui/i18n/de.json b/ui/i18n/de.json index 0ddf3dfe..aa53b0db 100644 --- a/ui/i18n/de.json +++ b/ui/i18n/de.json @@ -1591,6 +1591,12 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Du verwaltest diese Installation. „Spielen“ startet die ausführbare Datei, die du gewählt hast, so wie sie ist, ohne einfache Einrichtung oder die Einrichtungsschritte des Launchers.", "You only have one library. Add a folder on another drive to move it there.": "Du hast nur eine Bibliothek. Füge einen Ordner auf einem anderen Laufwerk hinzu, um es dorthin zu verschieben.", "You picked this folder": "Diesen Ordner hast du ausgewählt", + "You changed this folder": "Diesen Ordner hast du geändert", + "Its developer names this folder. Not used while you use your own.": "Sein Entwickler nennt diesen Ordner. Nicht genutzt, solange du deinen eigenen verwendest.", + "RecompLauncher names this folder. Not used while you use your own.": "RecompLauncher nennt diesen Ordner. Nicht genutzt, solange du deinen eigenen verwendest.", + "Saved. Backups and cloud saves use that folder again.": "Gespeichert. Sicherungen und Cloud-Speicherstände nutzen wieder diesen Ordner.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "Sein Speicherordner lässt sich nur ändern, wenn die einfache Einrichtung dafür übersprungen wurde.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Das ist der eigene Ordner des Spiels, oder er enthält Programme. Wähle den Ordner, in dem seine Speicherstände liegen.", "You said no.": "Du hast abgelehnt.", "You stopped following {name}.": "Du folgst {name} nicht mehr.", "You were signed out. Sign in again to use cloud saves.": "Du wurdest abgemeldet. Melde dich wieder an, um Cloud-Spielstände zu nutzen.", diff --git a/ui/i18n/es-419.json b/ui/i18n/es-419.json index 13c1bac6..0f927634 100644 --- a/ui/i18n/es-419.json +++ b/ui/i18n/es-419.json @@ -1580,6 +1580,12 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Tú gestionas esta instalación. Jugar inicia el ejecutable que elegiste, tal cual, sin la configuración fácil ni los pasos de configuración del launcher.", "You only have one library. Add a folder on another drive to move it there.": "Solo tienes una biblioteca. Agrega una carpeta en otra unidad para moverlo ahí.", "You picked this folder": "Elegiste esta carpeta", + "You changed this folder": "Cambiaste esta carpeta", + "Its developer names this folder. Not used while you use your own.": "Su desarrollador indica esta carpeta. No se usa mientras uses la tuya.", + "RecompLauncher names this folder. Not used while you use your own.": "RecompLauncher indica esta carpeta. No se usa mientras uses la tuya.", + "Saved. Backups and cloud saves use that folder again.": "Guardado. Las copias de seguridad y las partidas en la nube vuelven a usar esa carpeta.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "Su carpeta de partidas solo se puede cambiar si se saltó la configuración fácil para este juego.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Esa es la carpeta del propio juego o contiene programas. Elige la carpeta donde están sus partidas.", "You said no.": "Dijiste que no.", "You stopped following {name}.": "Ya no sigues a {name}.", "You were signed out. Sign in again to use cloud saves.": "Se cerró tu sesión. Vuelve a iniciar sesión para usar las partidas en la nube.", diff --git a/ui/i18n/es.json b/ui/i18n/es.json index 22a3edbf..c45c0fb3 100644 --- a/ui/i18n/es.json +++ b/ui/i18n/es.json @@ -1591,6 +1591,12 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Tú gestionas esta instalación. Jugar inicia el ejecutable que elegiste, tal cual, sin la configuración fácil ni los pasos de configuración del launcher.", "You only have one library. Add a folder on another drive to move it there.": "Solo tienes una biblioteca. Añade una carpeta en otra unidad para moverlo allí.", "You picked this folder": "Elegiste esta carpeta", + "You changed this folder": "Cambiaste esta carpeta", + "Its developer names this folder. Not used while you use your own.": "Su desarrollador indica esta carpeta. No se usa mientras uses la tuya.", + "RecompLauncher names this folder. Not used while you use your own.": "RecompLauncher indica esta carpeta. No se usa mientras uses la tuya.", + "Saved. Backups and cloud saves use that folder again.": "Guardado. Las copias de seguridad y las partidas en la nube vuelven a usar esa carpeta.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "Su carpeta de partidas solo se puede cambiar si se saltó la configuración fácil para este juego.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Esa es la carpeta del propio juego o contiene programas. Elige la carpeta donde están sus partidas.", "You said no.": "Dijiste que no.", "You stopped following {name}.": "Ya no sigues a {name}.", "You were signed out. Sign in again to use cloud saves.": "Se ha cerrado tu sesión. Vuelve a iniciar sesión para usar las partidas en la nube.", diff --git a/ui/i18n/fr-CA.json b/ui/i18n/fr-CA.json index 8b503087..bbf2393d 100644 --- a/ui/i18n/fr-CA.json +++ b/ui/i18n/fr-CA.json @@ -299,6 +299,12 @@ "You didn't allow {site}.": "Vous n'avez pas autorisé {site}.", "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Vous gérez cette installation. Jouer lance l'exécutable que vous avez choisi, tel quel, sans la configuration facile ni les étapes de configuration du lanceur.", "You picked this folder": "Vous avez choisi ce dossier", + "You changed this folder": "Vous avez changé ce dossier", + "Its developer names this folder. Not used while you use your own.": "Son développeur indique ce dossier. Il n'est pas utilisé tant que vous utilisez le vôtre.", + "RecompLauncher names this folder. Not used while you use your own.": "RecompLauncher indique ce dossier. Il n'est pas utilisé tant que vous utilisez le vôtre.", + "Saved. Backups and cloud saves use that folder again.": "Enregistré. Les copies de sauvegarde et les sauvegardes dans le cloud utilisent de nouveau ce dossier.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "Son dossier de sauvegarde ne peut être changé que si la configuration facile a été ignorée pour ce jeu.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "C'est le dossier du jeu lui-même, ou il contient des programmes. Choisissez le dossier où se trouvent ses sauvegardes.", "You said no.": "Vous avez refusé.", "You're all set. Your achievements will be tied to your account.": "Tout est prêt. Vos succès seront liés à votre compte.", "Your ROM of the game": "Votre ROM du jeu", diff --git a/ui/i18n/fr.json b/ui/i18n/fr.json index 948d1556..28e00c4e 100644 --- a/ui/i18n/fr.json +++ b/ui/i18n/fr.json @@ -1591,6 +1591,12 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Vous gérez cette installation. Jouer lance l'exécutable que vous avez choisi, tel quel, sans la configuration facile ni les étapes de configuration du lanceur.", "You only have one library. Add a folder on another drive to move it there.": "Vous n'avez qu'une seule bibliothèque. Ajoutez un dossier sur un autre lecteur pour y déplacer le jeu.", "You picked this folder": "Vous avez choisi ce dossier", + "You changed this folder": "Vous avez changé ce dossier", + "Its developer names this folder. Not used while you use your own.": "Son développeur indique ce dossier. Il n'est pas utilisé tant que vous utilisez le vôtre.", + "RecompLauncher names this folder. Not used while you use your own.": "RecompLauncher indique ce dossier. Il n'est pas utilisé tant que vous utilisez le vôtre.", + "Saved. Backups and cloud saves use that folder again.": "Enregistré. Les copies de sauvegarde et les sauvegardes dans le cloud utilisent de nouveau ce dossier.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "Son dossier de sauvegarde ne peut être changé que si la configuration facile a été ignorée pour ce jeu.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "C'est le dossier du jeu lui-même, ou il contient des programmes. Choisissez le dossier où se trouvent ses sauvegardes.", "You said no.": "Vous avez refusé.", "You stopped following {name}.": "Vous ne suivez plus {name}.", "You were signed out. Sign in again to use cloud saves.": "Vous avez été déconnecté. Reconnectez-vous pour utiliser les sauvegardes dans le cloud.", diff --git a/ui/i18n/id.json b/ui/i18n/id.json index 7adabc86..713641e9 100644 --- a/ui/i18n/id.json +++ b/ui/i18n/id.json @@ -1591,6 +1591,12 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Kamu yang mengelola instalasi ini. Main menjalankan file eksekusi yang kamu pilih apa adanya, tanpa penyiapan mudah atau langkah penyiapan launcher.", "You only have one library. Add a folder on another drive to move it there.": "Kamu hanya punya satu pustaka. Tambahkan folder di drive lain untuk memindahkannya ke sana.", "You picked this folder": "Kamu memilih folder ini", + "You changed this folder": "Kamu mengganti folder ini", + "Its developer names this folder. Not used while you use your own.": "Developer-nya menyebut folder ini. Tidak dipakai selama kamu memakai foldermu sendiri.", + "RecompLauncher names this folder. Not used while you use your own.": "RecompLauncher menyebut folder ini. Tidak dipakai selama kamu memakai foldermu sendiri.", + "Saved. Backups and cloud saves use that folder again.": "Tersimpan. Cadangan dan save cloud kembali memakai folder itu.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "Folder save-nya hanya bisa diganti jika penyiapan mudah dilewati untuk game ini.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Itu folder game itu sendiri, atau berisi program. Pilih folder tempat save-nya berada.", "You said no.": "Kamu menolak.", "You stopped following {name}.": "Kamu berhenti mengikuti {name}.", "You were signed out. Sign in again to use cloud saves.": "Kamu telah dikeluarkan dari akun. Masuk lagi untuk memakai save cloud.", diff --git a/ui/i18n/it.json b/ui/i18n/it.json index 8a5f3c60..285a43c7 100644 --- a/ui/i18n/it.json +++ b/ui/i18n/it.json @@ -1591,6 +1591,12 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Gestisci tu questa installazione. Gioca avvia l'eseguibile che hai scelto così com'è, senza la configurazione facile né i passaggi di configurazione del launcher.", "You only have one library. Add a folder on another drive to move it there.": "Hai una sola libreria. Aggiungi una cartella su un'altra unità per spostarci il gioco.", "You picked this folder": "Hai scelto questa cartella", + "You changed this folder": "Hai cambiato questa cartella", + "Its developer names this folder. Not used while you use your own.": "Il suo sviluppatore indica questa cartella. Non viene usata finché usi la tua.", + "RecompLauncher names this folder. Not used while you use your own.": "RecompLauncher indica questa cartella. Non viene usata finché usi la tua.", + "Saved. Backups and cloud saves use that folder again.": "Salvato. Backup e salvataggi nel cloud usano di nuovo quella cartella.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "La sua cartella dei salvataggi si può cambiare solo se la configurazione facile è stata saltata per questo gioco.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Questa è la cartella del gioco stesso, oppure contiene programmi. Scegli la cartella in cui si trovano i salvataggi.", "You said no.": "Hai rifiutato.", "You stopped following {name}.": "Non segui più {name}.", "You were signed out. Sign in again to use cloud saves.": "Sei stato disconnesso. Accedi di nuovo per usare i salvataggi nel cloud.", diff --git a/ui/i18n/ja.json b/ui/i18n/ja.json index 9a0d00ac..544954c0 100644 --- a/ui/i18n/ja.json +++ b/ui/i18n/ja.json @@ -1591,6 +1591,12 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "このインストールはあなたが管理しています。「プレイ」は選んだ実行ファイルをそのまま起動し、かんたんセットアップやランチャーのセットアップ手順は行いません。", "You only have one library. Add a folder on another drive to move it there.": "ライブラリは 1 つだけです。移動するには、別のドライブにフォルダーを追加してください。", "You picked this folder": "このフォルダーを選択しました", + "You changed this folder": "このフォルダーを変更しました", + "Its developer names this folder. Not used while you use your own.": "開発者が指定しているフォルダーです。自分のフォルダーを使っている間は使われません。", + "RecompLauncher names this folder. Not used while you use your own.": "RecompLauncher が指定しているフォルダーです。自分のフォルダーを使っている間は使われません。", + "Saved. Backups and cloud saves use that folder again.": "保存しました。バックアップとクラウドセーブは再びそのフォルダーを使います。", + "Its save folder can only be changed when Easy Setup is skipped for it.": "セーブフォルダーを変更できるのは、このゲームのかんたんセットアップをスキップした場合だけです。", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "そこはゲーム本体のフォルダーか、プログラムが入っているフォルダーです。セーブデータがあるフォルダーを選んでください。", "You said no.": "拒否しました。", "You stopped following {name}.": "{name} のフォローをやめました。", "You were signed out. Sign in again to use cloud saves.": "サインアウトされました。クラウドセーブを使うには、もう一度サインインしてください。", diff --git a/ui/i18n/ko.json b/ui/i18n/ko.json index 00f89141..f8d51246 100644 --- a/ui/i18n/ko.json +++ b/ui/i18n/ko.json @@ -1591,6 +1591,12 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "이 설치는 직접 관리합니다. 플레이를 누르면 고른 실행 파일을 그대로 실행하며, 간편 설정이나 런처의 설정 단계는 거치지 않습니다.", "You only have one library. Add a folder on another drive to move it there.": "라이브러리가 하나뿐입니다. 옮기려면 다른 드라이브에 폴더를 추가하세요.", "You picked this folder": "이 폴더를 선택했습니다", + "You changed this folder": "이 폴더를 변경했습니다", + "Its developer names this folder. Not used while you use your own.": "개발자가 지정한 폴더입니다. 직접 고른 폴더를 쓰는 동안에는 사용하지 않습니다.", + "RecompLauncher names this folder. Not used while you use your own.": "RecompLauncher가 지정한 폴더입니다. 직접 고른 폴더를 쓰는 동안에는 사용하지 않습니다.", + "Saved. Backups and cloud saves use that folder again.": "저장했습니다. 백업과 클라우드 저장에서 다시 그 폴더를 사용합니다.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "이 게임의 간편 설정을 건너뛴 경우에만 저장 폴더를 바꿀 수 있습니다.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "게임 자체 폴더이거나 프로그램이 들어 있는 폴더입니다. 저장 데이터가 있는 폴더를 선택하세요.", "You said no.": "거부했습니다.", "You stopped following {name}.": "{name} 팔로우를 그만뒀습니다.", "You were signed out. Sign in again to use cloud saves.": "로그아웃되었습니다. 클라우드 저장을 사용하려면 다시 로그인하세요.", diff --git a/ui/i18n/nl.json b/ui/i18n/nl.json index 59e05af9..14c23eb1 100644 --- a/ui/i18n/nl.json +++ b/ui/i18n/nl.json @@ -1591,6 +1591,12 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Je beheert deze installatie zelf. Spelen start het uitvoerbare bestand dat je koos, zoals het is, zonder eenvoudig instellen of de instelstappen van de launcher.", "You only have one library. Add a folder on another drive to move it there.": "Je hebt maar één bibliotheek. Voeg een map op een andere schijf toe om hem daarheen te verplaatsen.", "You picked this folder": "Je hebt deze map gekozen", + "You changed this folder": "Je hebt deze map gewijzigd", + "Its developer names this folder. Not used while you use your own.": "De ontwikkelaar noemt deze map. Niet gebruikt zolang je je eigen map gebruikt.", + "RecompLauncher names this folder. Not used while you use your own.": "RecompLauncher noemt deze map. Niet gebruikt zolang je je eigen map gebruikt.", + "Saved. Backups and cloud saves use that folder again.": "Opgeslagen. Back-ups en opslaan in de cloud gebruiken die map weer.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "De opslagmap kan alleen worden gewijzigd als Eenvoudig instellen voor deze game is overgeslagen.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Dat is de eigen map van de game, of er staan programma's in. Kies de map waarin de opgeslagen spellen staan.", "You said no.": "Je hebt nee gezegd.", "You stopped following {name}.": "Je volgt {name} niet meer.", "You were signed out. Sign in again to use cloud saves.": "Je bent afgemeld. Meld je opnieuw aan om opslaan in de cloud te gebruiken.", diff --git a/ui/i18n/pl.json b/ui/i18n/pl.json index fcdb6283..0b4a4baa 100644 --- a/ui/i18n/pl.json +++ b/ui/i18n/pl.json @@ -1591,6 +1591,12 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Sam zarządzasz tą instalacją. Graj uruchamia wybrany plik wykonywalny bez zmian, bez łatwej konfiguracji i kroków konfiguracji launchera.", "You only have one library. Add a folder on another drive to move it there.": "Masz tylko jedną bibliotekę. Dodaj folder na innym dysku, aby ją tam przenieść.", "You picked this folder": "Ten folder został wybrany przez Ciebie", + "You changed this folder": "Ten folder został zmieniony przez Ciebie", + "Its developer names this folder. Not used while you use your own.": "Ten folder wskazuje twórca gry. Nie jest używany, dopóki używasz własnego.", + "RecompLauncher names this folder. Not used while you use your own.": "Ten folder wskazuje RecompLauncher. Nie jest używany, dopóki używasz własnego.", + "Saved. Backups and cloud saves use that folder again.": "Zapisano. Kopie zapasowe i zapisy w chmurze znowu używają tego folderu.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "Folder zapisów można zmienić tylko wtedy, gdy dla tej gry pominięto łatwą konfigurację.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "To folder samej gry albo zawiera programy. Wybierz folder, w którym są jej zapisy.", "You said no.": "Odmówiono.", "You stopped following {name}.": "Nie obserwujesz już {name}.", "You were signed out. Sign in again to use cloud saves.": "Wylogowano cię. Zaloguj się ponownie, aby korzystać z zapisów w chmurze.", diff --git a/ui/i18n/pt-BR.json b/ui/i18n/pt-BR.json index 6634b00b..20266c25 100644 --- a/ui/i18n/pt-BR.json +++ b/ui/i18n/pt-BR.json @@ -1580,6 +1580,12 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Você gerencia esta instalação. Jogar inicia o executável que você escolheu, do jeito que está, sem a configuração fácil nem as etapas de configuração do launcher.", "You only have one library. Add a folder on another drive to move it there.": "Você só tem uma biblioteca. Adicione uma pasta em outra unidade para mover o jogo para lá.", "You picked this folder": "Você escolheu esta pasta", + "You changed this folder": "Você mudou esta pasta", + "Its developer names this folder. Not used while you use your own.": "O desenvolvedor indica esta pasta. Ela não é usada enquanto você usa a sua.", + "RecompLauncher names this folder. Not used while you use your own.": "O RecompLauncher indica esta pasta. Ela não é usada enquanto você usa a sua.", + "Saved. Backups and cloud saves use that folder again.": "Salvo. Os backups e os saves na nuvem voltam a usar essa pasta.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "A pasta de saves só pode ser mudada quando a configuração fácil foi pulada para este jogo.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Essa é a pasta do próprio jogo ou contém programas. Escolha a pasta onde estão os saves.", "You said no.": "Você recusou.", "You stopped following {name}.": "Você deixou de seguir {name}.", "You were signed out. Sign in again to use cloud saves.": "Você foi desconectado. Entre de novo para usar o salvamento na nuvem.", diff --git a/ui/i18n/pt.json b/ui/i18n/pt.json index 1242fd42..9299ab31 100644 --- a/ui/i18n/pt.json +++ b/ui/i18n/pt.json @@ -1591,6 +1591,12 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "És tu que geres esta instalação. Jogar inicia o executável que escolheste, tal como está, sem a configuração fácil nem os passos de configuração do launcher.", "You only have one library. Add a folder on another drive to move it there.": "Só tens uma biblioteca. Adiciona uma pasta noutra unidade para o mover para lá.", "You picked this folder": "Escolheste esta pasta", + "You changed this folder": "Mudaste esta pasta", + "Its developer names this folder. Not used while you use your own.": "O programador indica esta pasta. Não é usada enquanto usares a tua.", + "RecompLauncher names this folder. Not used while you use your own.": "O RecompLauncher indica esta pasta. Não é usada enquanto usares a tua.", + "Saved. Backups and cloud saves use that folder again.": "Guardado. As cópias de segurança e os dados na nuvem voltam a usar essa pasta.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "A pasta de dados guardados só pode ser mudada quando a configuração fácil foi saltada para este jogo.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Essa é a pasta do próprio jogo ou contém programas. Escolhe a pasta onde estão os dados guardados.", "You said no.": "Disseste que não.", "You stopped following {name}.": "Deixaste de seguir {name}.", "You were signed out. Sign in again to use cloud saves.": "A tua sessão foi terminada. Inicia sessão novamente para usar os dados guardados na nuvem.", diff --git a/ui/i18n/ru.json b/ui/i18n/ru.json index 9a5f21bf..1afa6f43 100644 --- a/ui/i18n/ru.json +++ b/ui/i18n/ru.json @@ -1591,6 +1591,12 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Этой установкой управляете вы. «Играть» запускает выбранный вами исполняемый файл как есть, без простой настройки и шагов настройки лаунчера.", "You only have one library. Add a folder on another drive to move it there.": "У вас только одна библиотека. Добавьте папку на другом диске, чтобы перенести игру туда.", "You picked this folder": "Вы выбрали эту папку", + "You changed this folder": "Вы изменили эту папку", + "Its developer names this folder. Not used while you use your own.": "Эту папку указал разработчик. Она не используется, пока вы используете свою.", + "RecompLauncher names this folder. Not used while you use your own.": "Эту папку указал RecompLauncher. Она не используется, пока вы используете свою.", + "Saved. Backups and cloud saves use that folder again.": "Сохранено. Резервные копии и облачные сохранения снова используют эту папку.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "Папку сохранений можно изменить, только если для этой игры пропущена простая настройка.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Это папка самой игры, или в ней есть программы. Выберите папку, где лежат её сохранения.", "You said no.": "Вы отказали.", "You stopped following {name}.": "Вы отписались от {name}.", "You were signed out. Sign in again to use cloud saves.": "Выполнен выход из аккаунта. Войдите снова, чтобы пользоваться облачными сохранениями.", diff --git a/ui/i18n/th.json b/ui/i18n/th.json index f0ed3291..25e5e030 100644 --- a/ui/i18n/th.json +++ b/ui/i18n/th.json @@ -1591,6 +1591,12 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "คุณเป็นผู้จัดการการติดตั้งนี้ ปุ่ม เล่น จะเปิดไฟล์โปรแกรมที่คุณเลือกตามที่เป็นอยู่ โดยไม่ใช้การตั้งค่าง่ายหรือขั้นตอนการตั้งค่าของตัวเปิดเกม", "You only have one library. Add a folder on another drive to move it there.": "คุณมีคลังเดียว เพิ่มโฟลเดอร์ในไดรฟ์อื่นเพื่อย้ายเกมไปที่นั่น", "You picked this folder": "คุณเลือกโฟลเดอร์นี้", + "You changed this folder": "คุณเปลี่ยนโฟลเดอร์นี้", + "Its developer names this folder. Not used while you use your own.": "ผู้พัฒนากำหนดโฟลเดอร์นี้ไว้ จะไม่ถูกใช้ขณะที่คุณใช้โฟลเดอร์ของคุณเอง", + "RecompLauncher names this folder. Not used while you use your own.": "RecompLauncher กำหนดโฟลเดอร์นี้ไว้ จะไม่ถูกใช้ขณะที่คุณใช้โฟลเดอร์ของคุณเอง", + "Saved. Backups and cloud saves use that folder again.": "บันทึกแล้ว ข้อมูลสำรองและเซฟบนคลาวด์กลับมาใช้โฟลเดอร์นั้นอีกครั้ง", + "Its save folder can only be changed when Easy Setup is skipped for it.": "เปลี่ยนโฟลเดอร์เซฟได้เฉพาะเมื่อข้ามการตั้งค่าง่ายสำหรับเกมนี้แล้วเท่านั้น", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "นี่คือโฟลเดอร์ของตัวเกมเอง หรือมีโปรแกรมอยู่ข้างใน เลือกโฟลเดอร์ที่เก็บเซฟของเกม", "You said no.": "คุณปฏิเสธแล้ว", "You stopped following {name}.": "เลิกติดตาม {name} แล้ว", "You were signed out. Sign in again to use cloud saves.": "คุณถูกออกจากระบบ ลงชื่อเข้าใช้อีกครั้งเพื่อใช้เซฟบนคลาวด์", diff --git a/ui/i18n/tr.json b/ui/i18n/tr.json index 7d4eac4e..f2275627 100644 --- a/ui/i18n/tr.json +++ b/ui/i18n/tr.json @@ -1591,6 +1591,12 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Bu kurulumu siz yönetiyorsunuz. Oyna, seçtiğiniz çalıştırılabilir dosyayı olduğu gibi başlatır; kolay kurulum ve başlatıcının kurulum adımları atlanır.", "You only have one library. Add a folder on another drive to move it there.": "Yalnızca bir kitaplığınız var. Oraya taşımak için başka bir sürücüde klasör ekleyin.", "You picked this folder": "Bu klasörü sen seçtin", + "You changed this folder": "Bu klasörü sen değiştirdin", + "Its developer names this folder. Not used while you use your own.": "Geliştiricisi bu klasörü belirtiyor. Kendi klasörünü kullandığın sürece kullanılmaz.", + "RecompLauncher names this folder. Not used while you use your own.": "RecompLauncher bu klasörü belirtiyor. Kendi klasörünü kullandığın sürece kullanılmaz.", + "Saved. Backups and cloud saves use that folder again.": "Kaydedildi. Yedekler ve bulut kayıtları yeniden o klasörü kullanıyor.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "Kayıt klasörü yalnızca bu oyun için kolay kurulum atlandıysa değiştirilebilir.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Bu, oyunun kendi klasörü ya da içinde programlar var. Kayıtlarının bulunduğu klasörü seç.", "You said no.": "Hayır dediniz.", "You stopped following {name}.": "Artık {name} takip edilmiyor.", "You were signed out. Sign in again to use cloud saves.": "Oturumunuz kapatıldı. Bulut kayıtlarını kullanmak için yeniden oturum açın.", diff --git a/ui/i18n/uk.json b/ui/i18n/uk.json index ab8c44e7..02acf7ef 100644 --- a/ui/i18n/uk.json +++ b/ui/i18n/uk.json @@ -1591,6 +1591,12 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Цією інсталяцією керуєте ви. «Грати» запускає вибраний вами виконуваний файл як є, без простого налаштування і кроків налаштування лаунчера.", "You only have one library. Add a folder on another drive to move it there.": "У тебе лише одна бібліотека. Додай папку на іншому диску, щоб перенести гру туди.", "You picked this folder": "Ви вибрали цю папку", + "You changed this folder": "Ви змінили цю папку", + "Its developer names this folder. Not used while you use your own.": "Цю папку вказав розробник. Вона не використовується, поки ви використовуєте свою.", + "RecompLauncher names this folder. Not used while you use your own.": "Цю папку вказав RecompLauncher. Вона не використовується, поки ви використовуєте свою.", + "Saved. Backups and cloud saves use that folder again.": "Збережено. Резервні копії та хмарні збереження знову використовують цю папку.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "Папку збережень можна змінити, лише якщо для цієї гри пропущено просте налаштування.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Це папка самої гри, або в ній є програми. Виберіть папку, де лежать її збереження.", "You said no.": "Відмовлено.", "You stopped following {name}.": "Ви більше не стежите за {name}.", "You were signed out. Sign in again to use cloud saves.": "Виконано вихід з акаунта. Увійди знову, щоб користуватися хмарними збереженнями.", diff --git a/ui/i18n/vi.json b/ui/i18n/vi.json index 13004c2a..22fdb691 100644 --- a/ui/i18n/vi.json +++ b/ui/i18n/vi.json @@ -1591,6 +1591,12 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Bạn tự quản lý bản cài đặt này. Nút Chơi khởi chạy tệp thực thi bạn đã chọn như hiện có, không dùng thiết lập dễ dàng hay các bước thiết lập của launcher.", "You only have one library. Add a folder on another drive to move it there.": "Bạn chỉ có một thư viện. Thêm thư mục trên ổ đĩa khác để chuyển trò chơi sang đó.", "You picked this folder": "Bạn đã chọn thư mục này", + "You changed this folder": "Bạn đã đổi thư mục này", + "Its developer names this folder. Not used while you use your own.": "Nhà phát triển chỉ định thư mục này. Không được dùng khi bạn dùng thư mục của mình.", + "RecompLauncher names this folder. Not used while you use your own.": "RecompLauncher chỉ định thư mục này. Không được dùng khi bạn dùng thư mục của mình.", + "Saved. Backups and cloud saves use that folder again.": "Đã lưu. Bản sao lưu và dữ liệu lưu đám mây lại dùng thư mục đó.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "Chỉ có thể đổi thư mục lưu khi đã bỏ qua thiết lập dễ dàng cho trò chơi này.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Đó là thư mục của chính trò chơi, hoặc có chứa chương trình. Hãy chọn thư mục chứa dữ liệu lưu của nó.", "You said no.": "Bạn đã từ chối.", "You stopped following {name}.": "Bạn đã bỏ theo dõi {name}.", "You were signed out. Sign in again to use cloud saves.": "Bạn đã bị đăng xuất. Hãy đăng nhập lại để dùng dữ liệu lưu đám mây.", diff --git a/ui/i18n/zh-Hans.json b/ui/i18n/zh-Hans.json index cebe1f10..6db3e294 100644 --- a/ui/i18n/zh-Hans.json +++ b/ui/i18n/zh-Hans.json @@ -1591,6 +1591,12 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "此安装由你自行管理。“开始游戏”会按原样启动你选择的可执行文件,不经过轻松配置或启动器的设置步骤。", "You only have one library. Add a folder on another drive to move it there.": "你只有一个游戏库。添加其他驱动器上的文件夹即可把游戏移过去。", "You picked this folder": "你选择了此文件夹", + "You changed this folder": "你更改了此文件夹", + "Its developer names this folder. Not used while you use your own.": "这是开发者指定的文件夹。在你使用自己的文件夹期间不会使用它。", + "RecompLauncher names this folder. Not used while you use your own.": "这是 RecompLauncher 指定的文件夹。在你使用自己的文件夹期间不会使用它。", + "Saved. Backups and cloud saves use that folder again.": "已保存。备份和云存档重新使用该文件夹。", + "Its save folder can only be changed when Easy Setup is skipped for it.": "只有为此游戏跳过轻松配置后,才能更改它的存档文件夹。", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "这是游戏本身的文件夹,或其中包含程序。请选择存放存档的文件夹。", "You said no.": "你已拒绝。", "You stopped following {name}.": "已取消关注 {name}。", "You were signed out. Sign in again to use cloud saves.": "你已被退出登录。重新登录即可使用云存档。", diff --git a/ui/i18n/zh-Hant.json b/ui/i18n/zh-Hant.json index 287076ee..40bbd76a 100644 --- a/ui/i18n/zh-Hant.json +++ b/ui/i18n/zh-Hant.json @@ -1591,6 +1591,12 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "此安裝由你自行管理。「開始遊戲」會照原樣啟動你選擇的執行檔,不經過輕鬆設定或啟動器的設定步驟。", "You only have one library. Add a folder on another drive to move it there.": "您只有一個收藏庫。新增其他磁碟機上的資料夾,就能把遊戲移過去。", "You picked this folder": "你選擇了這個資料夾", + "You changed this folder": "你變更了這個資料夾", + "Its developer names this folder. Not used while you use your own.": "這是開發者指定的資料夾。在你使用自己的資料夾期間不會使用它。", + "RecompLauncher names this folder. Not used while you use your own.": "這是 RecompLauncher 指定的資料夾。在你使用自己的資料夾期間不會使用它。", + "Saved. Backups and cloud saves use that folder again.": "已儲存。備份和雲端存檔重新使用該資料夾。", + "Its save folder can only be changed when Easy Setup is skipped for it.": "只有為此遊戲略過輕鬆設定後,才能變更它的存檔資料夾。", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "這是遊戲本身的資料夾,或其中包含程式。請選擇存放存檔的資料夾。", "You said no.": "您已拒絕。", "You stopped following {name}.": "已取消追蹤 {name}。", "You were signed out. Sign in again to use cloud saves.": "您已被登出。請重新登入以使用雲端存檔。", From c4bc897c0812139725978fafc2e432626cebf195 Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 17:10:32 +0200 Subject: [PATCH 13/35] Controllers: tell the window when the launcher reads them, and keep the right stick pads_native says SDL is up, so the window can leave gamepads alone; pad_right_stick gives Big Picture's box tilt the stick without asking the browser. --- src-tauri/src/lib.rs | 14 +++++++++++++- src-tauri/src/pads.rs | 45 ++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 57 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 5d52951f..640da482 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -7138,6 +7138,18 @@ fn controllers() -> Vec { pads::connected() } +/// The launcher reads controllers itself, so the window must leave them alone (see pads::native). +#[tauri::command(async)] +fn pads_native() -> bool { + pads::native() +} + +/// The right stick, for Big Picture's box tilt. +#[tauri::command(async)] +fn pad_right_stick() -> [f32; 2] { + pads::right_stick() +} + /// Keep these pictures on disk, so pages show at once and work offline. #[tauri::command(async)] fn prefetch_images(st: State<'_, App>, urls: Vec) { @@ -10331,7 +10343,7 @@ pub fn run() { get_state, get_catalog, get_releases, net_state, check_updates, launcher_update, install, cancel, uninstall, play, stop, set_exe, forget_program, set_setup_mode, open_folder, save_settings, set_start_at_login, list_monitors, prepare_tv_mode, leave_tv_mode, open_url, libraries, move_game, game_sizes, game_size, backups, backup_now, restore_backup, pc_check, set_ui_scale, update_retry, ge_proton_install, proton_now, repo_readme, install_vcredist, scan_roms, rom_matches, copy_files, support_local, desktop_shortcut, refresh_shortcut_art, open_app_control, fs_paste, portable_info, make_portable, add_to_steam, launcher_to_steam, steam_sync::steam_sync_now, steam_sync::steam_sync_state, steam_sync::steam_remove_all, recent_log, screenshots, open_shots, overlay_action, overlay_state, is_handheld, skip_backup, set_cover, art::art_source, art::art_open, art::art_save, art::art_search, art::art_for, all_screenshots, delete_screenshot, - copy_screenshot, show_screenshot, controllers, prefetch_images, versions, build_check, news, game_info, mods_state, mods_online, + copy_screenshot, show_screenshot, controllers, pads_native, pad_right_stick, prefetch_images, versions, build_check, news, game_info, mods_state, mods_online, mod_install, mod_remove, open_mods, send_report, beta_feedback, logs_zip::export_logs, game_programs, run_program, game_root, boot::boot_builtin, update_launcher, resume_game, game_setup, set_game_copy, free_up_space, set_update_copy, set_game_setting, set_game_slider, set_game_binding, reset_game_bindings, usage::report_preview, usage::profile_report, usage::my_reports, usage::report_reply, usage::review_delete, recomp_games, adopt::move_listing, update_info, set_proxy, umu_repair, dlss_fetch, dlss_set, dlss_state, dlss_remove, cloud::library_pull, cloud::library_push, cloud::playtime_push, cloud::playtime_pull, cloud::playtime_reset, cloud::spons_mine, cloud::spons_seen, cloud::saves_open_backups, game_action, setup_copy, setup_cancel, setup_status, setup_begin, setup_end, setup_input_set, setup_key_remove, setup_inputs_run, easy_setup, set_game_options, set_prepare_opts, diff --git a/src-tauri/src/pads.rs b/src-tauri/src/pads.rs index acf7e3d8..764af9d5 100644 --- a/src-tauri/src/pads.rs +++ b/src-tauri/src/pads.rs @@ -14,7 +14,7 @@ use sdl3_sys::everything as sdl; use std::collections::HashMap; use std::ffi::{c_char, CStr, CString}; use std::path::{Path, PathBuf}; -use std::sync::atomic::{AtomicBool, Ordering}; +use std::sync::atomic::{AtomicBool, AtomicI16, Ordering}; use std::sync::mpsc::{channel, Sender}; use std::sync::Mutex; use tauri::{AppHandle, Emitter, Manager}; @@ -259,6 +259,8 @@ impl Reader { if let Some(o) = open.remove(&unsafe { ev.gdevice.which }) { // SAFETY: opened above, closed once. unsafe { sdl::SDL_CloseGamepad(o.pad) }; + // A controller that's gone isn't tilting anything. + RIGHT_STICK.iter().for_each(|v| v.store(0, Ordering::Relaxed)); list(open); } } @@ -275,6 +277,7 @@ impl Reader { sdl::SDL_EVENT_GAMEPAD_AXIS_MOTION => { let a = unsafe { ev.gaxis }; let Some(o) = open.get_mut(&a.which) else { continue }; + keep_right_stick(sdl::SDL_GamepadAxis(a.axis as i32), a.value); for (down, n) in o.axes.moved(sdl::SDL_GamepadAxis(a.axis as i32), a.value) { let _ = tx.send(if down { Ev::Down(n, o.kind) } else { Ev::Up(n) }); } @@ -292,6 +295,7 @@ fn read_sdl(tx: Sender, mappings: PathBuf) { RUNNING.store(false, Ordering::Relaxed); return; } + READY.store(true, Ordering::Relaxed); let mut reader = Reader::default(); while !STOP.load(Ordering::Relaxed) { reader.poll(&tx); @@ -302,6 +306,7 @@ fn read_sdl(tx: Sender, mappings: PathBuf) { let playing = PLAYING.load(Ordering::Relaxed); std::thread::sleep(std::time::Duration::from_millis(if idle() { 60 } else if playing && !FOCUSED.load(Ordering::Relaxed) { 25 } else { 10 })); } + READY.store(false, Ordering::Relaxed); reader.close(); // SAFETY: the last SDL call, on SDL's thread. unsafe { sdl::SDL_Quit() }; @@ -315,6 +320,38 @@ fn read_sdl(tx: Sender, mappings: PathBuf) { /// SDL's thread is running (or starting). static RUNNING: AtomicBool = AtomicBool::new(false); +/// SDL started and is reading controllers. +static READY: AtomicBool = AtomicBool::new(false); +/// The right stick's last position (SDL's -32768..32767, Y positive downwards), for Big Picture's +/// box tilt: the window can't ask for its own controllers without upsetting them (see `native`). +static RIGHT_STICK: [AtomicI16; 2] = [AtomicI16::new(0), AtomicI16::new(0)]; + +fn keep_right_stick(axis: sdl::SDL_GamepadAxis, value: i16) { + use sdl::SDL_GamepadAxis as A; + let i = match axis { + A::RIGHTX => 0, + A::RIGHTY => 1, + _ => return, + }; + RIGHT_STICK[i].store(value, Ordering::Relaxed); +} + +/// The right stick, -1..1 each way, Y positive downwards (as the browser's gamepads have it). +pub fn right_stick() -> [f32; 2] { + RIGHT_STICK.each_ref().map(|v| (v.load(Ordering::Relaxed) as f32 / 32767.0).clamp(-1.0, 1.0)) +} + +/// Whether the launcher reads controllers itself, waiting a moment if SDL is still starting. +/// While it does, the window must not ask for gamepads (navigator.getGamepads): that starts +/// WebView2's own controller reading, raw input beside SDL's XInput, and on Windows that pair +/// switches off a controller reconnecting through the Xbox Wireless Adapter (issue #496). +pub fn native() -> bool { + let t = std::time::Instant::now(); + while RUNNING.load(Ordering::Relaxed) && !READY.load(Ordering::Relaxed) && t.elapsed() < std::time::Duration::from_secs(3) { + std::thread::sleep(std::time::Duration::from_millis(10)); + } + READY.load(Ordering::Relaxed) +} /// The launcher is closing: SDL's thread closes the controllers and stops. static STOP: AtomicBool = AtomicBool::new(false); @@ -598,6 +635,11 @@ mod tests { r.poll(&tx); let got: Vec = rx.try_iter().collect(); assert_eq!(got, vec![Ev::Down("a", "xbox"), Ev::Down("view", "xbox"), Ev::Up("a"), Ev::Down("right", "xbox")]); + // The right stick is kept for Big Picture's tilt, not sent as presses. + axis(x, A::RIGHTY, -32768); + r.poll(&tx); + assert_eq!(right_stick(), [0.0, -1.0]); + assert!(rx.try_iter().next().is_none()); // A Switch Pro Controller: its A is on the right. let (nid, n) = attach(0x057E, 0x2009); @@ -617,6 +659,7 @@ mod tests { } r.poll(&tx); assert_eq!(connected().iter().map(|p| p.kind).collect::>(), vec!["nintendo"]); + assert_eq!(right_stick(), [0.0, 0.0]); // Closing the launcher closes the rest. r.close(); assert!(connected().is_empty(), "{:?}", connected()); From cacf813e05b768be09c294f2320535361dfa43fa Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 17:14:17 +0200 Subject: [PATCH 14/35] Saves: a folder in place of the named one is not a home folder, a drive or one around the game Backups, cloud uploads and restore's clearing take everything in the folder for saves. The program check gave up after 4000 entries and let big folders through; for the override, too big to look through is refused, as are the home folder, a drive root and a folder that holds the game's folder. --- src-tauri/src/cloud.rs | 11 ++--- src-tauri/src/saves.rs | 97 ++++++++++++++++++++++++++++++++++++++++-- ui/i18n/ar.json | 1 + ui/i18n/de.json | 1 + ui/i18n/es-419.json | 1 + ui/i18n/es.json | 1 + ui/i18n/fr-CA.json | 1 + ui/i18n/fr.json | 1 + ui/i18n/id.json | 1 + ui/i18n/it.json | 1 + ui/i18n/ja.json | 1 + ui/i18n/ko.json | 1 + ui/i18n/nl.json | 1 + ui/i18n/pl.json | 1 + ui/i18n/pt-BR.json | 1 + ui/i18n/pt.json | 1 + ui/i18n/ru.json | 1 + ui/i18n/th.json | 1 + ui/i18n/tr.json | 1 + ui/i18n/uk.json | 1 + ui/i18n/vi.json | 1 + ui/i18n/zh-Hans.json | 1 + ui/i18n/zh-Hant.json | 1 + 23 files changed, 118 insertions(+), 11 deletions(-) diff --git a/src-tauri/src/cloud.rs b/src-tauri/src/cloud.rs index bf83154d..da201a11 100644 --- a/src-tauri/src/cloud.rs +++ b/src-tauri/src/cloud.rs @@ -1810,8 +1810,7 @@ pub fn saves_set_override(st: State<'_, App>, id: String, path: Option) Ok(g) } -/// `dir` as the game's override, or why it can't be. Not the game's own folder or one that holds -/// programs: backups, restores and cloud saves would take game files for saves, or clear them. +/// `dir` as the game's override, or why it can't be (saves::override_refused). fn override_template(st: &App, id: &str, g: &Installed, dir: &Path) -> Res { let named = named_of(st, id, g); if own_saves(st, id).is_some() || !saves::can_override(&named, crate::player_sets_up(st, id)) { @@ -1820,16 +1819,14 @@ fn override_template(st: &App, id: &str, g: &Installed, dir: &Path) -> Res bool { + programs_in(dir).unwrap_or(false) +} + +/// Whether `dir` has programs in it, or None when it holds too much to look through (a home +/// folder, a drive). holds_programs takes that as no; a folder the player picks doesn't. +fn programs_in(dir: &Path) -> Option { + programs_within(dir, 4000) +} + +/// programs_in, looking at no more than `most` entries. +fn programs_within(dir: &Path, most: usize) -> Option { const PROGRAMS: [&str; 7] = [".exe", ".dll", ".so", ".dylib", ".jar", ".jmod", ".pyd"]; let mut stack = vec![(dir.to_path_buf(), 0usize)]; let mut seen = 0usize; while let Some((d, depth)) = stack.pop() { for e in fs::read_dir(&d).into_iter().flatten().flatten() { seen += 1; - if seen > 4000 { - return false; + if seen > most { + return None; } let Ok(t) = e.file_type() else { continue }; let n = e.file_name().to_string_lossy().to_lowercase(); @@ -223,13 +234,39 @@ pub fn holds_programs(dir: &Path) -> bool { stack.push((e.path(), depth + 1)); } } else if PROGRAMS.iter().any(|x| n.ends_with(x)) || n.contains(".so.") || crate::proton::elf_arch(&e.path()).is_some() { - return true; + return Some(true); } } } - false + Some(false) } +/// Why a folder the player picks can't stand in for the named save folder, or None when it can. +/// Backups, cloud uploads and restore's clearing would take everything in it for saves, so not +/// the game's folder or one around it, a home folder, a drive, one with programs, or one too big +/// to look through. +pub fn override_refused(dir: &Path, game: &Path, home: Option<&Path>) -> Option<&'static str> { + let dir = dir.canonicalize().unwrap_or_else(|_| dir.to_path_buf()); + let game = game.canonicalize().unwrap_or_else(|_| game.to_path_buf()); + // A home folder or a drive holds the game's folder too: said as too big, which it is. + let is_home = home.and_then(|h| h.canonicalize().ok()).is_some_and(|h| h == dir); + if is_home || dir.parent().is_none() { + return Some(OVERRIDE_TOO_BIG); + } + if game.starts_with(&dir) { + return Some(OVERRIDE_GAME_FOLDER); + } + match programs_in(&dir) { + Some(false) => None, + Some(true) => Some(OVERRIDE_GAME_FOLDER), + None => Some(OVERRIDE_TOO_BIG), + } +} + +/// Fixed texts, so the window can translate them. +pub(crate) const OVERRIDE_GAME_FOLDER: &str = "That's the game's own folder, or it holds programs. Pick the folder its saves are in."; +pub(crate) const OVERRIDE_TOO_BIG: &str = "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in."; + fn is_save_file(name: &str, size: u64) -> bool { let n = name.to_lowercase(); if n.starts_with(".recomplauncher-input-") { return false; } @@ -1610,6 +1647,58 @@ mod tests { assert_eq!(s.len(), 2); } + #[test] + fn an_override_can_be_a_plain_save_folder() { + let d = tmp("override-plain"); + fs::create_dir_all(d.join("game")).unwrap(); + fs::create_dir_all(d.join("saves")).unwrap(); + fs::write(d.join("saves/slot.sav"), "save").unwrap(); + assert_eq!(override_refused(&d.join("saves"), &d.join("game"), None), None); + } + + #[test] + fn an_override_is_not_the_games_own_folder() { + let d = tmp("override-game"); + assert_eq!(override_refused(&d, &d, None), Some(OVERRIDE_GAME_FOLDER)); + } + + #[test] + fn an_override_is_not_a_folder_around_the_game() { + let d = tmp("override-around"); + fs::create_dir_all(d.join("lib/game")).unwrap(); + assert_eq!(override_refused(&d.join("lib"), &d.join("lib/game"), None), Some(OVERRIDE_GAME_FOLDER)); + } + + #[test] + fn an_override_is_not_the_home_folder() { + let d = tmp("override-home"); + fs::create_dir_all(d.join("home")).unwrap(); + assert_eq!(override_refused(&d.join("home"), &d.join("game"), Some(&d.join("home"))), Some(OVERRIDE_TOO_BIG)); + } + + #[test] + fn an_override_is_not_a_whole_drive() { + let root = Path::new(if cfg!(windows) { "C:\\" } else { "/" }); + assert_eq!(override_refused(root, Path::new("/nowhere/game"), None), Some(OVERRIDE_TOO_BIG)); + } + + #[test] + fn a_folder_too_big_to_look_through_is_not_said_to_be_free_of_programs() { + // A small limit, not 4000 files: writing that many slows the tests that time a restart. + let d = tmp("override-big"); + for i in 0..4 { + fs::write(d.join(format!("{i}.txt")), "").unwrap(); + } + assert_eq!(programs_within(&d, 3), None); + } + + #[test] + fn an_override_is_not_a_folder_with_programs() { + let d = tmp("override-programs"); + fs::write(d.join("tool.dll"), "").unwrap(); + assert_eq!(override_refused(&d, Path::new("/nowhere/game"), None), Some(OVERRIDE_GAME_FOLDER)); + } + #[test] fn the_override_is_not_used_when_nobody_named_a_folder() { assert!(!can_override(&[Spot { template: "{install}/mine".into(), from: "player" }], true)); diff --git a/ui/i18n/ar.json b/ui/i18n/ar.json index fbaab5df..c1f32781 100644 --- a/ui/i18n/ar.json +++ b/ui/i18n/ar.json @@ -1597,6 +1597,7 @@ "Saved. Backups and cloud saves use that folder again.": "تم الحفظ. تستخدم النسخ الاحتياطية والحفظ السحابي هذا المجلد مجددًا.", "Its save folder can only be changed when Easy Setup is skipped for it.": "لا يمكن تغيير مجلد الحفظ إلا عند تخطي الإعداد السهل لهذه اللعبة.", "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "هذا مجلد اللعبة نفسه، أو فيه برامج. اختر المجلد الذي فيه ملفات الحفظ.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "هذا المجلد يحتوي على أكثر بكثير من أن يكون مجلد حفظ، مثل مجلدك الرئيسي أو قرص كامل. اختر المجلد الذي فيه ملفات الحفظ.", "You said no.": "لقد رفضت.", "You stopped following {name}.": "توقفت عن متابعة {name}.", "You were signed out. Sign in again to use cloud saves.": "تم تسجيل خروجك. سجل الدخول مرة أخرى لاستخدام الحفظ السحابي.", diff --git a/ui/i18n/de.json b/ui/i18n/de.json index aa53b0db..68bcb2bf 100644 --- a/ui/i18n/de.json +++ b/ui/i18n/de.json @@ -1597,6 +1597,7 @@ "Saved. Backups and cloud saves use that folder again.": "Gespeichert. Sicherungen und Cloud-Speicherstände nutzen wieder diesen Ordner.", "Its save folder can only be changed when Easy Setup is skipped for it.": "Sein Speicherordner lässt sich nur ändern, wenn die einfache Einrichtung dafür übersprungen wurde.", "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Das ist der eigene Ordner des Spiels, oder er enthält Programme. Wähle den Ordner, in dem seine Speicherstände liegen.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "Dieser Ordner enthält viel zu viel, um ein Speicherordner zu sein, etwa dein Benutzerordner oder ein ganzes Laufwerk. Wähle den Ordner, in dem seine Speicherstände liegen.", "You said no.": "Du hast abgelehnt.", "You stopped following {name}.": "Du folgst {name} nicht mehr.", "You were signed out. Sign in again to use cloud saves.": "Du wurdest abgemeldet. Melde dich wieder an, um Cloud-Spielstände zu nutzen.", diff --git a/ui/i18n/es-419.json b/ui/i18n/es-419.json index 0f927634..96375ac4 100644 --- a/ui/i18n/es-419.json +++ b/ui/i18n/es-419.json @@ -1586,6 +1586,7 @@ "Saved. Backups and cloud saves use that folder again.": "Guardado. Las copias de seguridad y las partidas en la nube vuelven a usar esa carpeta.", "Its save folder can only be changed when Easy Setup is skipped for it.": "Su carpeta de partidas solo se puede cambiar si se saltó la configuración fácil para este juego.", "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Esa es la carpeta del propio juego o contiene programas. Elige la carpeta donde están sus partidas.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "Esa carpeta contiene demasiado para ser una carpeta de partidas, como tu carpeta personal o una unidad entera. Elige la carpeta donde están sus partidas.", "You said no.": "Dijiste que no.", "You stopped following {name}.": "Ya no sigues a {name}.", "You were signed out. Sign in again to use cloud saves.": "Se cerró tu sesión. Vuelve a iniciar sesión para usar las partidas en la nube.", diff --git a/ui/i18n/es.json b/ui/i18n/es.json index c45c0fb3..fa603934 100644 --- a/ui/i18n/es.json +++ b/ui/i18n/es.json @@ -1597,6 +1597,7 @@ "Saved. Backups and cloud saves use that folder again.": "Guardado. Las copias de seguridad y las partidas en la nube vuelven a usar esa carpeta.", "Its save folder can only be changed when Easy Setup is skipped for it.": "Su carpeta de partidas solo se puede cambiar si se saltó la configuración fácil para este juego.", "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Esa es la carpeta del propio juego o contiene programas. Elige la carpeta donde están sus partidas.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "Esa carpeta contiene demasiado para ser una carpeta de partidas, como tu carpeta personal o una unidad entera. Elige la carpeta donde están sus partidas.", "You said no.": "Dijiste que no.", "You stopped following {name}.": "Ya no sigues a {name}.", "You were signed out. Sign in again to use cloud saves.": "Se ha cerrado tu sesión. Vuelve a iniciar sesión para usar las partidas en la nube.", diff --git a/ui/i18n/fr-CA.json b/ui/i18n/fr-CA.json index bbf2393d..45854a49 100644 --- a/ui/i18n/fr-CA.json +++ b/ui/i18n/fr-CA.json @@ -305,6 +305,7 @@ "Saved. Backups and cloud saves use that folder again.": "Enregistré. Les copies de sauvegarde et les sauvegardes dans le cloud utilisent de nouveau ce dossier.", "Its save folder can only be changed when Easy Setup is skipped for it.": "Son dossier de sauvegarde ne peut être changé que si la configuration facile a été ignorée pour ce jeu.", "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "C'est le dossier du jeu lui-même, ou il contient des programmes. Choisissez le dossier où se trouvent ses sauvegardes.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "Ce dossier contient beaucoup trop de choses pour être un dossier de sauvegarde, comme votre dossier personnel ou un disque entier. Choisissez le dossier où se trouvent ses sauvegardes.", "You said no.": "Vous avez refusé.", "You're all set. Your achievements will be tied to your account.": "Tout est prêt. Vos succès seront liés à votre compte.", "Your ROM of the game": "Votre ROM du jeu", diff --git a/ui/i18n/fr.json b/ui/i18n/fr.json index 28e00c4e..a88b6da6 100644 --- a/ui/i18n/fr.json +++ b/ui/i18n/fr.json @@ -1597,6 +1597,7 @@ "Saved. Backups and cloud saves use that folder again.": "Enregistré. Les copies de sauvegarde et les sauvegardes dans le cloud utilisent de nouveau ce dossier.", "Its save folder can only be changed when Easy Setup is skipped for it.": "Son dossier de sauvegarde ne peut être changé que si la configuration facile a été ignorée pour ce jeu.", "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "C'est le dossier du jeu lui-même, ou il contient des programmes. Choisissez le dossier où se trouvent ses sauvegardes.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "Ce dossier contient beaucoup trop de choses pour être un dossier de sauvegarde, comme votre dossier personnel ou un disque entier. Choisissez le dossier où se trouvent ses sauvegardes.", "You said no.": "Vous avez refusé.", "You stopped following {name}.": "Vous ne suivez plus {name}.", "You were signed out. Sign in again to use cloud saves.": "Vous avez été déconnecté. Reconnectez-vous pour utiliser les sauvegardes dans le cloud.", diff --git a/ui/i18n/id.json b/ui/i18n/id.json index 713641e9..1fa9b6c9 100644 --- a/ui/i18n/id.json +++ b/ui/i18n/id.json @@ -1597,6 +1597,7 @@ "Saved. Backups and cloud saves use that folder again.": "Tersimpan. Cadangan dan save cloud kembali memakai folder itu.", "Its save folder can only be changed when Easy Setup is skipped for it.": "Folder save-nya hanya bisa diganti jika penyiapan mudah dilewati untuk game ini.", "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Itu folder game itu sendiri, atau berisi program. Pilih folder tempat save-nya berada.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "Folder itu berisi terlalu banyak untuk menjadi folder save, seperti folder home-mu atau seluruh drive. Pilih folder tempat save-nya berada.", "You said no.": "Kamu menolak.", "You stopped following {name}.": "Kamu berhenti mengikuti {name}.", "You were signed out. Sign in again to use cloud saves.": "Kamu telah dikeluarkan dari akun. Masuk lagi untuk memakai save cloud.", diff --git a/ui/i18n/it.json b/ui/i18n/it.json index 285a43c7..05774dcb 100644 --- a/ui/i18n/it.json +++ b/ui/i18n/it.json @@ -1597,6 +1597,7 @@ "Saved. Backups and cloud saves use that folder again.": "Salvato. Backup e salvataggi nel cloud usano di nuovo quella cartella.", "Its save folder can only be changed when Easy Setup is skipped for it.": "La sua cartella dei salvataggi si può cambiare solo se la configurazione facile è stata saltata per questo gioco.", "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Questa è la cartella del gioco stesso, oppure contiene programmi. Scegli la cartella in cui si trovano i salvataggi.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "Quella cartella contiene troppe cose per essere una cartella dei salvataggi, come la tua cartella home o un intero disco. Scegli la cartella in cui si trovano i salvataggi.", "You said no.": "Hai rifiutato.", "You stopped following {name}.": "Non segui più {name}.", "You were signed out. Sign in again to use cloud saves.": "Sei stato disconnesso. Accedi di nuovo per usare i salvataggi nel cloud.", diff --git a/ui/i18n/ja.json b/ui/i18n/ja.json index 544954c0..ac9ff9ea 100644 --- a/ui/i18n/ja.json +++ b/ui/i18n/ja.json @@ -1597,6 +1597,7 @@ "Saved. Backups and cloud saves use that folder again.": "保存しました。バックアップとクラウドセーブは再びそのフォルダーを使います。", "Its save folder can only be changed when Easy Setup is skipped for it.": "セーブフォルダーを変更できるのは、このゲームのかんたんセットアップをスキップした場合だけです。", "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "そこはゲーム本体のフォルダーか、プログラムが入っているフォルダーです。セーブデータがあるフォルダーを選んでください。", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "そのフォルダーは中身が多すぎてセーブフォルダーにはできません(ホームフォルダーやドライブ全体など)。セーブデータがあるフォルダーを選んでください。", "You said no.": "拒否しました。", "You stopped following {name}.": "{name} のフォローをやめました。", "You were signed out. Sign in again to use cloud saves.": "サインアウトされました。クラウドセーブを使うには、もう一度サインインしてください。", diff --git a/ui/i18n/ko.json b/ui/i18n/ko.json index f8d51246..76fcfd9b 100644 --- a/ui/i18n/ko.json +++ b/ui/i18n/ko.json @@ -1597,6 +1597,7 @@ "Saved. Backups and cloud saves use that folder again.": "저장했습니다. 백업과 클라우드 저장에서 다시 그 폴더를 사용합니다.", "Its save folder can only be changed when Easy Setup is skipped for it.": "이 게임의 간편 설정을 건너뛴 경우에만 저장 폴더를 바꿀 수 있습니다.", "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "게임 자체 폴더이거나 프로그램이 들어 있는 폴더입니다. 저장 데이터가 있는 폴더를 선택하세요.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "이 폴더는 저장 폴더로 쓰기에는 너무 많은 것이 들어 있습니다(홈 폴더나 드라이브 전체 등). 저장 데이터가 있는 폴더를 선택하세요.", "You said no.": "거부했습니다.", "You stopped following {name}.": "{name} 팔로우를 그만뒀습니다.", "You were signed out. Sign in again to use cloud saves.": "로그아웃되었습니다. 클라우드 저장을 사용하려면 다시 로그인하세요.", diff --git a/ui/i18n/nl.json b/ui/i18n/nl.json index 14c23eb1..ed15527c 100644 --- a/ui/i18n/nl.json +++ b/ui/i18n/nl.json @@ -1597,6 +1597,7 @@ "Saved. Backups and cloud saves use that folder again.": "Opgeslagen. Back-ups en opslaan in de cloud gebruiken die map weer.", "Its save folder can only be changed when Easy Setup is skipped for it.": "De opslagmap kan alleen worden gewijzigd als Eenvoudig instellen voor deze game is overgeslagen.", "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Dat is de eigen map van de game, of er staan programma's in. Kies de map waarin de opgeslagen spellen staan.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "Die map bevat veel te veel om een opslagmap te zijn, zoals je thuismap of een hele schijf. Kies de map waarin de opgeslagen spellen staan.", "You said no.": "Je hebt nee gezegd.", "You stopped following {name}.": "Je volgt {name} niet meer.", "You were signed out. Sign in again to use cloud saves.": "Je bent afgemeld. Meld je opnieuw aan om opslaan in de cloud te gebruiken.", diff --git a/ui/i18n/pl.json b/ui/i18n/pl.json index 0b4a4baa..1844c749 100644 --- a/ui/i18n/pl.json +++ b/ui/i18n/pl.json @@ -1597,6 +1597,7 @@ "Saved. Backups and cloud saves use that folder again.": "Zapisano. Kopie zapasowe i zapisy w chmurze znowu używają tego folderu.", "Its save folder can only be changed when Easy Setup is skipped for it.": "Folder zapisów można zmienić tylko wtedy, gdy dla tej gry pominięto łatwą konfigurację.", "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "To folder samej gry albo zawiera programy. Wybierz folder, w którym są jej zapisy.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "Ten folder zawiera o wiele za dużo, żeby być folderem zapisów, na przykład folder domowy albo cały dysk. Wybierz folder, w którym są jej zapisy.", "You said no.": "Odmówiono.", "You stopped following {name}.": "Nie obserwujesz już {name}.", "You were signed out. Sign in again to use cloud saves.": "Wylogowano cię. Zaloguj się ponownie, aby korzystać z zapisów w chmurze.", diff --git a/ui/i18n/pt-BR.json b/ui/i18n/pt-BR.json index 20266c25..2a3a66e3 100644 --- a/ui/i18n/pt-BR.json +++ b/ui/i18n/pt-BR.json @@ -1586,6 +1586,7 @@ "Saved. Backups and cloud saves use that folder again.": "Salvo. Os backups e os saves na nuvem voltam a usar essa pasta.", "Its save folder can only be changed when Easy Setup is skipped for it.": "A pasta de saves só pode ser mudada quando a configuração fácil foi pulada para este jogo.", "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Essa é a pasta do próprio jogo ou contém programas. Escolha a pasta onde estão os saves.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "Essa pasta tem coisas demais para ser uma pasta de saves, como sua pasta pessoal ou um disco inteiro. Escolha a pasta onde estão os saves.", "You said no.": "Você recusou.", "You stopped following {name}.": "Você deixou de seguir {name}.", "You were signed out. Sign in again to use cloud saves.": "Você foi desconectado. Entre de novo para usar o salvamento na nuvem.", diff --git a/ui/i18n/pt.json b/ui/i18n/pt.json index 9299ab31..b217d266 100644 --- a/ui/i18n/pt.json +++ b/ui/i18n/pt.json @@ -1597,6 +1597,7 @@ "Saved. Backups and cloud saves use that folder again.": "Guardado. As cópias de segurança e os dados na nuvem voltam a usar essa pasta.", "Its save folder can only be changed when Easy Setup is skipped for it.": "A pasta de dados guardados só pode ser mudada quando a configuração fácil foi saltada para este jogo.", "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Essa é a pasta do próprio jogo ou contém programas. Escolhe a pasta onde estão os dados guardados.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "Essa pasta tem coisas a mais para ser uma pasta de dados guardados, como a tua pasta pessoal ou um disco inteiro. Escolhe a pasta onde estão os dados guardados.", "You said no.": "Disseste que não.", "You stopped following {name}.": "Deixaste de seguir {name}.", "You were signed out. Sign in again to use cloud saves.": "A tua sessão foi terminada. Inicia sessão novamente para usar os dados guardados na nuvem.", diff --git a/ui/i18n/ru.json b/ui/i18n/ru.json index 1afa6f43..bd54e638 100644 --- a/ui/i18n/ru.json +++ b/ui/i18n/ru.json @@ -1597,6 +1597,7 @@ "Saved. Backups and cloud saves use that folder again.": "Сохранено. Резервные копии и облачные сохранения снова используют эту папку.", "Its save folder can only be changed when Easy Setup is skipped for it.": "Папку сохранений можно изменить, только если для этой игры пропущена простая настройка.", "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Это папка самой игры, или в ней есть программы. Выберите папку, где лежат её сохранения.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "В этой папке слишком много всего, чтобы она была папкой сохранений, например домашняя папка или целый диск. Выберите папку, где лежат её сохранения.", "You said no.": "Вы отказали.", "You stopped following {name}.": "Вы отписались от {name}.", "You were signed out. Sign in again to use cloud saves.": "Выполнен выход из аккаунта. Войдите снова, чтобы пользоваться облачными сохранениями.", diff --git a/ui/i18n/th.json b/ui/i18n/th.json index 25e5e030..7785b459 100644 --- a/ui/i18n/th.json +++ b/ui/i18n/th.json @@ -1597,6 +1597,7 @@ "Saved. Backups and cloud saves use that folder again.": "บันทึกแล้ว ข้อมูลสำรองและเซฟบนคลาวด์กลับมาใช้โฟลเดอร์นั้นอีกครั้ง", "Its save folder can only be changed when Easy Setup is skipped for it.": "เปลี่ยนโฟลเดอร์เซฟได้เฉพาะเมื่อข้ามการตั้งค่าง่ายสำหรับเกมนี้แล้วเท่านั้น", "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "นี่คือโฟลเดอร์ของตัวเกมเอง หรือมีโปรแกรมอยู่ข้างใน เลือกโฟลเดอร์ที่เก็บเซฟของเกม", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "โฟลเดอร์นี้มีของมากเกินกว่าจะเป็นโฟลเดอร์เซฟได้ เช่น โฟลเดอร์หลักของคุณหรือทั้งไดรฟ์ เลือกโฟลเดอร์ที่เก็บเซฟของเกม", "You said no.": "คุณปฏิเสธแล้ว", "You stopped following {name}.": "เลิกติดตาม {name} แล้ว", "You were signed out. Sign in again to use cloud saves.": "คุณถูกออกจากระบบ ลงชื่อเข้าใช้อีกครั้งเพื่อใช้เซฟบนคลาวด์", diff --git a/ui/i18n/tr.json b/ui/i18n/tr.json index f2275627..10a4fd53 100644 --- a/ui/i18n/tr.json +++ b/ui/i18n/tr.json @@ -1597,6 +1597,7 @@ "Saved. Backups and cloud saves use that folder again.": "Kaydedildi. Yedekler ve bulut kayıtları yeniden o klasörü kullanıyor.", "Its save folder can only be changed when Easy Setup is skipped for it.": "Kayıt klasörü yalnızca bu oyun için kolay kurulum atlandıysa değiştirilebilir.", "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Bu, oyunun kendi klasörü ya da içinde programlar var. Kayıtlarının bulunduğu klasörü seç.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "Bu klasörde bir kayıt klasörü olmak için fazlasıyla çok şey var, örneğin ana klasörün ya da bütün bir sürücü. Kayıtlarının bulunduğu klasörü seç.", "You said no.": "Hayır dediniz.", "You stopped following {name}.": "Artık {name} takip edilmiyor.", "You were signed out. Sign in again to use cloud saves.": "Oturumunuz kapatıldı. Bulut kayıtlarını kullanmak için yeniden oturum açın.", diff --git a/ui/i18n/uk.json b/ui/i18n/uk.json index 02acf7ef..d62a532e 100644 --- a/ui/i18n/uk.json +++ b/ui/i18n/uk.json @@ -1597,6 +1597,7 @@ "Saved. Backups and cloud saves use that folder again.": "Збережено. Резервні копії та хмарні збереження знову використовують цю папку.", "Its save folder can only be changed when Easy Setup is skipped for it.": "Папку збережень можна змінити, лише якщо для цієї гри пропущено просте налаштування.", "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Це папка самої гри, або в ній є програми. Виберіть папку, де лежать її збереження.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "У цій папці забагато всього, щоб вона була папкою збережень, наприклад домашня папка або цілий диск. Виберіть папку, де лежать її збереження.", "You said no.": "Відмовлено.", "You stopped following {name}.": "Ви більше не стежите за {name}.", "You were signed out. Sign in again to use cloud saves.": "Виконано вихід з акаунта. Увійди знову, щоб користуватися хмарними збереженнями.", diff --git a/ui/i18n/vi.json b/ui/i18n/vi.json index 22fdb691..cc4863e1 100644 --- a/ui/i18n/vi.json +++ b/ui/i18n/vi.json @@ -1597,6 +1597,7 @@ "Saved. Backups and cloud saves use that folder again.": "Đã lưu. Bản sao lưu và dữ liệu lưu đám mây lại dùng thư mục đó.", "Its save folder can only be changed when Easy Setup is skipped for it.": "Chỉ có thể đổi thư mục lưu khi đã bỏ qua thiết lập dễ dàng cho trò chơi này.", "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Đó là thư mục của chính trò chơi, hoặc có chứa chương trình. Hãy chọn thư mục chứa dữ liệu lưu của nó.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "Thư mục đó chứa quá nhiều thứ để làm thư mục lưu, như thư mục nhà của bạn hoặc cả một ổ đĩa. Hãy chọn thư mục chứa dữ liệu lưu của nó.", "You said no.": "Bạn đã từ chối.", "You stopped following {name}.": "Bạn đã bỏ theo dõi {name}.", "You were signed out. Sign in again to use cloud saves.": "Bạn đã bị đăng xuất. Hãy đăng nhập lại để dùng dữ liệu lưu đám mây.", diff --git a/ui/i18n/zh-Hans.json b/ui/i18n/zh-Hans.json index 6db3e294..824b2d05 100644 --- a/ui/i18n/zh-Hans.json +++ b/ui/i18n/zh-Hans.json @@ -1597,6 +1597,7 @@ "Saved. Backups and cloud saves use that folder again.": "已保存。备份和云存档重新使用该文件夹。", "Its save folder can only be changed when Easy Setup is skipped for it.": "只有为此游戏跳过轻松配置后,才能更改它的存档文件夹。", "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "这是游戏本身的文件夹,或其中包含程序。请选择存放存档的文件夹。", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "该文件夹内容太多,不能作为存档文件夹,例如你的主文件夹或整个磁盘。请选择存放存档的文件夹。", "You said no.": "你已拒绝。", "You stopped following {name}.": "已取消关注 {name}。", "You were signed out. Sign in again to use cloud saves.": "你已被退出登录。重新登录即可使用云存档。", diff --git a/ui/i18n/zh-Hant.json b/ui/i18n/zh-Hant.json index 40bbd76a..ae3926f1 100644 --- a/ui/i18n/zh-Hant.json +++ b/ui/i18n/zh-Hant.json @@ -1597,6 +1597,7 @@ "Saved. Backups and cloud saves use that folder again.": "已儲存。備份和雲端存檔重新使用該資料夾。", "Its save folder can only be changed when Easy Setup is skipped for it.": "只有為此遊戲略過輕鬆設定後,才能變更它的存檔資料夾。", "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "這是遊戲本身的資料夾,或其中包含程式。請選擇存放存檔的資料夾。", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "該資料夾內容太多,不能作為存檔資料夾,例如你的主資料夾或整個磁碟。請選擇存放存檔的資料夾。", "You said no.": "您已拒絕。", "You stopped following {name}.": "已取消追蹤 {name}。", "You were signed out. Sign in again to use cloud saves.": "您已被登出。請重新登入以使用雲端存檔。", From 05777a82f507722eec66a88fbf525bb222e43a03 Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 17:14:32 +0200 Subject: [PATCH 15/35] Xbox Wireless Adapter: the window no longer reads controllers beside SDL (#496) navigator.getGamepads starts WebView2's own controller reading (raw input) beside SDL's XInput. On Windows that pair switches off a controller reconnecting through the Xbox Wireless Adapter (SDL #3468). The window's reading is now only a fallback for when SDL can't start, and the box tilt takes the right stick from the launcher. --- tests/gamepad-stick.test.cjs | 34 ++++++++++++++++++++++------------ ui/tv.js | 24 ++++++++++++++++++++---- 2 files changed, 42 insertions(+), 16 deletions(-) diff --git a/tests/gamepad-stick.test.cjs b/tests/gamepad-stick.test.cjs index 2de85898..953be857 100644 --- a/tests/gamepad-stick.test.cjs +++ b/tests/gamepad-stick.test.cjs @@ -9,46 +9,50 @@ const start = tv.indexOf(' const STD = '); const end = tv.indexOf(' // F11 switches', start); assert.ok(start >= 0 && end > start, 'the controller fallback is present'); -function controller(settings = {}) { +// The fallback starts once the core has said whether it reads controllers itself (`native`). +async function controller(settings = {}, native = false) { let time = 0; const timers = [], presses = []; + const asked = { gamepads: 0 }; const gp = { index: 0, id: 'standard controller', axes: [0, 0], buttons: Array.from({ length: 17 }, () => ({ pressed: false })) }; + const getGamepads = () => { asked.gamepads++; return [gp]; }; const context = vm.createContext({ - S: { settings }, TV: { on: true }, nativeSeen: false, - navigator: { getGamepads: () => [gp] }, document: { hasFocus: () => true }, + S: { settings }, TV: { on: true }, nativeSeen: false, padsAnswer: Promise.resolve(native), + navigator: { getGamepads }, document: { hasFocus: () => true }, performance: { now: () => time }, setTimeout: fn => timers.push(fn), pad: button => presses.push(button), }); vm.runInContext(tv.slice(start, end), context); + await new Promise(setImmediate); return { - gp, settings, presses, + gp, settings, presses, asked, timers, tick(ms = 33) { time += ms; assert.ok(timers.length); timers.shift()(); }, }; } -test('disabled stick navigation ignores the fallback controller axes', () => { - const c = controller({ pad_stick: false }); +test('disabled stick navigation ignores the fallback controller axes', async () => { + const c = await controller({ pad_stick: false }); c.gp.axes = [0.9, -0.9]; c.tick(); assert.deepEqual(c.presses, []); }); -test('the fallback D-pad still works with stick navigation disabled', () => { - const c = controller({ pad_stick: false }); +test('the fallback D-pad still works with stick navigation disabled', async () => { + const c = await controller({ pad_stick: false }); c.gp.buttons[13].pressed = true; c.tick(); assert.deepEqual(c.presses, ['down']); }); -test('fallback stick navigation remains enabled by default', () => { - const c = controller(); +test('fallback stick navigation remains enabled by default', async () => { + const c = await controller(); c.gp.axes[0] = -0.9; c.tick(); assert.deepEqual(c.presses, ['left']); }); -test('turning stick navigation off stops a held fallback direction from repeating', () => { - const c = controller({ pad_stick: true }); +test('turning stick navigation off stops a held fallback direction from repeating', async () => { + const c = await controller({ pad_stick: true }); c.gp.axes[0] = 0.9; c.tick(); assert.deepEqual(c.presses, ['right']); @@ -57,3 +61,9 @@ test('turning stick navigation off stops a held fallback direction from repeatin c.tick(600); assert.deepEqual(c.presses, ['right']); }); + +test('the window never asks for gamepads while the core reads controllers', async () => { + const c = await controller({}, true); + assert.equal(c.timers.length, 0); + assert.equal(c.asked.gamepads, 0); +}); diff --git a/ui/tv.js b/ui/tv.js index 8626dc21..ab7b0921 100644 --- a/ui/tv.js +++ b/ui/tv.js @@ -762,8 +762,20 @@ PRE.set(src, im); if (PRE.size > 60) PRE.delete(PRE.keys().next().value); } + // Whether the core reads controllers itself (SDL); null until it answers. While it does, this + // window never asks for gamepads: that starts WebView2's own controller reading, and on Windows + // the two together switch off a controller reconnecting through the Xbox Wireless Adapter (#496). + let padsNative = null; + // Outside the launcher (a page opened on its own) there's no core to ask: the fallback it is. + const padsAnswer = Promise.resolve().then(() => invoke('pads_native')).catch(() => false).then((on) => { padsNative = on; return on; }); // The box you're on tilts with the right stick (or the mouse over it), like turning it in your hands. - const TILT = { raf: 0, x: 0, y: 0, mx: 0, my: 0, mouseAt: 0, el: null }; + const TILT = { raf: 0, x: 0, y: 0, mx: 0, my: 0, mouseAt: 0, el: null, stick: [0, 0], asking: false }; + // The core's right stick, asked for once a frame at most; the tilt uses the last answer. + function askRightStick() { + if (TILT.asking) return; + TILT.asking = true; + invoke('pad_right_stick').then((s) => { TILT.stick = s; }).catch(() => {}).finally(() => { TILT.asking = false; }); + } function tiltStart() { if (TILT.raf || lighter()) return; TILT.raf = requestAnimationFrame(tiltTick); @@ -778,7 +790,11 @@ if (!f || !TV.on) { TILT.x = TILT.y = 0; return; } let sx = 0, sy = 0; if (performance.now() - TILT.mouseAt < 1500) { sx = TILT.mx; sy = TILT.my; } - else if (navigator.getGamepads) { + else if (padsNative) { + askRightStick(); + [sx, sy] = TILT.stick; + if (Math.hypot(sx, sy) < 0.15) sx = sy = 0; + } else if (padsNative === false && navigator.getGamepads) { for (const gp of navigator.getGamepads()) { if (!gp || gp.axes.length < 4) continue; const x = gp.axes[2] || 0, y = gp.axes[3] || 0; @@ -3159,7 +3175,7 @@ } // Controllers: from the core (Xbox through XInput, PlayStation read directly), with the - // window's own gamepad support as a fallback if the core never reports anything. + // window's own gamepad support as a fallback only when the core can't read them (padsNative). let nativeSeen = false; let lastPad = { b: '', t: 0 }; const BORN = performance.now(); @@ -3235,7 +3251,7 @@ held[k] = now; } } - pollPads(); + padsAnswer.then((on) => { if (!on) pollPads(); }); // F11 switches between the desktop view and Big Picture mode. document.addEventListener('keydown', (e) => { From 9d81bd42435812c8a1752cbb632ff6545bc1d519 Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 17:04:50 +0200 Subject: [PATCH 16/35] Downloads keep the date their file has on GitHub The downloaded file takes the Last-Modified date the site answers with (GitHub's upload date), so a kept zip shows when it was released, not when it was downloaded. (#456) --- src-tauri/src/install.rs | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src-tauri/src/install.rs b/src-tauri/src/install.rs index f5d0a35b..fed52ba3 100644 --- a/src-tauri/src/install.rs +++ b/src-tauri/src/install.rs @@ -381,6 +381,8 @@ async fn download_with_api( let mut src = asset.browser_download_url.clone(); let mut by_api = false; let mut api_tried = false; + // When the site says the file was uploaded: a kept download carries that date, not today's. + let mut uploaded: Option = None; // The same alternate route helps when the edge drops a connection or never answers. It is // tried once per download, after repeated failures, with the byte offset and hash preserved. let mut try_api = |tries: u32, src: &mut String, by_api: &mut bool| { @@ -476,6 +478,8 @@ async fn download_with_api( out = None; } total = r.content_length().map(|n| n + done).unwrap_or(asset.size); + let last_modified = r.headers().get(reqwest::header::LAST_MODIFIED).and_then(|v| v.to_str().ok()); + uploaded = last_modified.and_then(uploaded_at); if out.is_none() { out = Some(if resumed { tokio::fs::OpenOptions::new().append(true).open(&part).await? } else { tokio::fs::File::create(&part).await? }); } @@ -551,9 +555,20 @@ async fn download_with_api( } } tokio::fs::rename(&part, &file).await?; + if let Some(when) = uploaded { + // Only the file's date: a drive that can't set it still has the right file. + let _ = std::fs::File::options().write(true).open(&file).and_then(|f| f.set_modified(when)); + } Ok(Downloaded { file, sha256: got, verified: want.is_some() }) } +/// A Last-Modified answer ("Wed, 27 Aug 2025 00:55:54 GMT") as a time. GitHub's is the upload date. +fn uploaded_at(header: &str) -> Option { + let when = chrono::DateTime::parse_from_rfc2822(header).ok()?; + let secs = u64::try_from(when.timestamp()).ok()?; + Some(std::time::UNIX_EPOCH + Duration::from_secs(secs)) +} + /// A path inside an archive, made safe to join onto the folder: no absolute paths, no `..`. fn inside(name: &str) -> Option { let mut p = PathBuf::new(); @@ -3134,4 +3149,21 @@ mod connection_fallback_tests { assert!(request.contains("\r\naccept: application/octet-stream\r\n")); assert!(request.contains("\r\nrange: bytes=2-\r\n")); } + + #[tokio::test] + async fn a_download_keeps_the_date_its_site_gives() { + let dir = TempDir::new(); + let dated = "HTTP/1.1 200 OK\r\nContent-Length: 6\r\nLast-Modified: Wed, 27 Aug 2025 00:55:54 GMT\r\nConnection: close\r\n\r\nabcdef"; + let (url, server) = download_site(vec![dated]); + let result = download_with_api(&reqwest::Client::new(), &asset(url), &dir.0, "date-test", Arc::new(AtomicBool::new(false)), &|_| {}, None).await; + let got = result.unwrap_or_else(|e| panic!("the download should finish: {e}")); + let modified = fs::metadata(&got.file).unwrap().modified().unwrap(); + assert_eq!(modified, std::time::UNIX_EPOCH + Duration::from_secs(1_756_256_154)); + server.join().unwrap(); + } + + #[test] + fn a_date_that_isnt_one_is_left_alone() { + assert_eq!(uploaded_at("yesterday"), None); + } } From 25602700de8ff7341f731572db445504274a59ec Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 17:08:50 +0200 Subject: [PATCH 17/35] Keep downloaded files keeps an installer's zip too A recomp that comes as a zip with its installer inside lost the zip after staging even with Keep downloaded files on. (#456) --- src-tauri/src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 3d2e9f55..8da425fb 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -677,7 +677,11 @@ async fn do_install(app: &AppHandle, st: &App, id: &str, dir: Option, t report(Progress::new(id, "unpack", 0, 0)); let (file, sdir) = (got.file.clone(), installer::staging(&st.dir, id)); let setup = tokio::task::spawn_blocking(move || installer::stage(&file, &sdir)).await.map_err(|e| Error::Msg(e.to_string()))??; - let _ = std::fs::remove_file(&got.file); + // A zip with the installer in it stays with Keep downloaded files on, like a game's zip. + // (A lone setup program has already moved to staging, so there's nothing left to keep.) + if !keep { + let _ = std::fs::remove_file(&got.file); + } { let mut l = st.lib.lock().unwrap(); match l.installed.get_mut(id) { From 43e28bc50a2954b40930a19adc33db3a9e3bdc17 Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 17:13:50 +0200 Subject: [PATCH 18/35] Keep downloaded files: Open goes to the kept zips, and says what it keeps With it on, Settings shows Open beside the switch for the library's hidden .downloads folder, and the text says every zip stays as it came, updates too, with its GitHub date. The FAQ lists where they are. (#456) --- docs/FAQ.md | 1 + src-tauri/src/lib.rs | 6 ++++- tests/keep-downloads.test.cjs | 46 +++++++++++++++++++++++++++++++++++ ui/app.js | 9 ++++++- ui/i18n/ar.json | 2 +- ui/i18n/de.json | 2 +- ui/i18n/es-419.json | 2 +- ui/i18n/es.json | 2 +- ui/i18n/fr.json | 2 +- ui/i18n/id.json | 2 +- ui/i18n/it.json | 2 +- ui/i18n/ja.json | 2 +- ui/i18n/ko.json | 2 +- ui/i18n/nl.json | 2 +- ui/i18n/pl.json | 2 +- ui/i18n/pt-BR.json | 2 +- ui/i18n/pt.json | 2 +- ui/i18n/ru.json | 2 +- ui/i18n/th.json | 2 +- ui/i18n/tr.json | 2 +- ui/i18n/uk.json | 2 +- ui/i18n/vi.json | 2 +- ui/i18n/zh-Hans.json | 2 +- ui/i18n/zh-Hant.json | 2 +- 24 files changed, 80 insertions(+), 22 deletions(-) create mode 100644 tests/keep-downloads.test.cjs diff --git a/docs/FAQ.md b/docs/FAQ.md index dc7b89b0..a36ddd4d 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -31,6 +31,7 @@ No. Everything works without one. A free account adds cloud saves, so the same s | Games | `C:\Recomp Library` on Windows, `~/Games/Recomp Library` on Linux and Mac. You can change it or add more folders in Settings. | | Settings and covers | The launcher's data folder: `%APPDATA%\com.recomplauncher.app` on Windows, `~/.local/share/com.recomplauncher.app` on Linux, `~/Library/Application Support/com.recomplauncher.app` on Mac | | Save backups | Beside each game, in its library's `.backups` folder (or a folder you pick on the Saves page) | +| Release zips | Deleted once unpacked. With **Keep downloaded files** on (Settings → Updates and Downloads), each one, updates too, stays as it came in its library's `.downloads` folder, with the date it has on GitHub | | Screenshots | `Pictures\RecompLauncher` | The Windows default is a short folder near the top of the drive because some games break in long or OneDrive-synced paths. diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 8da425fb..b2bd74ac 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -7296,10 +7296,14 @@ fn open_folder(app: AppHandle, st: State<'_, App>, id: Option, path: Opt let l = st.lib.lock().unwrap(); match (id, path) { (Some(id), _) => l.installed.get(&id).map(|g| g.path.clone()).ok_or_else(|| Error::Msg("It isn't installed.".into()))?, - // Only folders the launcher knows about: libraries and ROM folders. + // Only folders the launcher knows about: libraries, their kept downloads and ROM folders. (None, Some(p)) => { let p = PathBuf::from(p); + let named_downloads = p.file_name() == Some(std::ffi::OsStr::new(".downloads")); + let in_library = p.parent().is_some_and(|lib| l.settings.all_libraries().iter().any(|x| x == lib)); + let kept_downloads = named_downloads && in_library; let known = l.settings.all_libraries().contains(&p) + || kept_downloads || l.settings.rom_dirs.contains(&p) || l.roms.iter().any(|r| r.path == p || r.path.parent() == Some(p.as_path())) || p == st.dir diff --git a/tests/keep-downloads.test.cjs b/tests/keep-downloads.test.cjs new file mode 100644 index 00000000..114e03a3 --- /dev/null +++ b/tests/keep-downloads.test.cjs @@ -0,0 +1,46 @@ +const { test } = require('node:test'); +const assert = require('node:assert/strict'); +const fs = require('node:fs'); +const path = require('node:path'); +const vm = require('node:vm'); + +const app = fs.readFileSync(path.join(__dirname, '../ui/app.js'), 'utf8'); +const fn = (src, name) => src.match(new RegExp(`^function ${name}\\([^]*?^}`, 'm'))[0]; + +// Settings → Updates and Downloads, drawn with the given settings. +function updatesPage(settings) { + const c = vm.createContext({ + S: { + os: 'windows', settings, libs: [], library: {}, owned: {}, + ids: { usage: 'usage-id', stats: 'stats-id' }, setTab: 'updates', view: 'settings', + }, + t: (s) => s, N_: (s) => s, tc: (s) => s, esc: String, + tf: (s, values) => s.replace(/\{(\w+)\}/g, (_, k) => values[k]), + LANGS: [['en', 'English']], systemLang: () => 'en', + SET_SECTIONS: [['updates', 'Updates']], SET_ICONS: {}, DL_LIMITS: [0], + okMark: () => '', portableRow: () => '', geRow: () => '', networkGroup: () => '', selfUpdatesGroup: () => '', + backdrop: () => '', bar: () => '', region: (s) => s, pageHead: (s) => s, + homePinned: () => false, ownedGames: () => [], bgMode: () => '', langName: () => 'English', + svg: () => '', hints: () => '', HEART: '', setClock: () => {}, + autoInstall: () => false, autoUpdateAll: () => false, + }); + c.window = c; + c.clockRow = () => ''; c.monitorPicked = () => ''; c.monitorName = () => ''; + vm.runInContext(fn(app, 'pageSettings'), c); + return c.pageSettings(); +} + +test('with Keep downloaded files on, Open goes to the library\'s .downloads folder', () => { + const html = updatesPage({ keep_downloads: true, library_dir: 'C:\\Recomp Library' }); + assert.match(html, /data-act="folder" data-path="C:\\Recomp Library\\\.downloads"/); +}); + +test('a Linux or Mac library gets its .downloads folder with a forward slash', () => { + const html = updatesPage({ keep_downloads: true, library_dir: '/home/me/Games/Recomp Library/' }); + assert.match(html, /data-path="\/home\/me\/Games\/Recomp Library\/\.downloads"/); +}); + +test('with Keep downloaded files off, there is no Open for kept downloads', () => { + const html = updatesPage({ keep_downloads: false, library_dir: 'C:\\Recomp Library' }); + assert.doesNotMatch(html, /\.downloads"/); +}); diff --git a/ui/app.js b/ui/app.js index e4e3f13e..974d3064 100644 --- a/ui/app.js +++ b/ui/app.js @@ -5180,6 +5180,13 @@ function pageSettings() { const nOwned = ownedGames().length; const row = (b, s, ctl) => `
${esc(b)}${esc(s)}
${ctl}
`; const group = (title, inner, extra = '') => `

${esc(title)}

${extra}
${inner}
`; + // Keep downloaded files: with it on, Open goes to the kept zips, which sit in a hidden folder + // players wouldn't find on their own. + const keepToggle = sw('keep_downloads', st.keep_downloads, t('Keep downloaded files')); + const libDir = String(st.library_dir || ''); + const keptFolder = libDir.replace(/[\\/]+$/, '') + (libDir.includes('\\') ? '\\' : '/') + '.downloads'; + const keptOpen = ``; + const keepCtl = st.keep_downloads && libDir ? `${keptOpen}${keepToggle}` : keepToggle; const shown = (k) => (k !== 'pc' || S.pc) && (k !== 'dev' || devAllowed()); const sec = SET_SECTIONS.some(([k]) => k === S.setTab && shown(k)) ? S.setTab : 'general'; let body = ''; @@ -5242,7 +5249,7 @@ function pageSettings() { + row(t('Update All Games Automatically'), t('Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. To keep one game waiting for you, turn off Update automatically in its Manage tab.'), sw('auto_update_all', autoUpdateAll(), t('Update All Games Automatically'))) + row(t('Back up saves before updates'), t('Keeps the newest five copies of the saves in each game\'s folder.'), sw('backup_before_update', st.backup_before_update, t('Back up before updates'))) + row(t('Auto-Install'), t('When an Easy Setup game or a game that comes as an installer finishes downloading (an update too), its setup or installer opens right away. Off: it waits until you press Set Up on its page.'), sw('auto_install', autoInstall(), t('Auto-Install')))) - + group(t('Downloads'), row(t('Keep downloaded files'), t('Off: the zip is deleted once it\'s unpacked. On: it stays in the library\'s .downloads folder.'), sw('keep_downloads', st.keep_downloads, t('Keep downloaded files'))) + + group(t('Downloads'), row(t('Keep downloaded files'), t('Off: the zip is deleted once it\'s unpacked. On: every zip stays as it came, an update\'s too, in its library\'s .downloads folder with the date it has on GitHub.'), keepCtl) + row(t('Speed Limit'), t('Keeps downloads under this speed, so the rest of your home\'s internet stays quick.'), ``) + row(t('Slow Down While Playing'), t('While a game is running, downloads keep to 4 MB/s so the game gets your internet and drive first.'), sw('dl_slow_play', ui.dl_slow_play !== false, t('Slow Down While Playing'), 'dl-slow'))) + networkGroup(group, row, st); diff --git a/ui/i18n/ar.json b/ui/i18n/ar.json index 5716f974..9e4d62ef 100644 --- a/ui/i18n/ar.json +++ b/ui/i18n/ar.json @@ -878,7 +878,7 @@ "Off. Saves for this game are not synced to the cloud.": "متوقف. لا تتم مزامنة ملفات حفظ هذه اللعبة مع السحابة.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "عند الإيقاف: نافذة Windows نفسها لاختيار الملفات والمجلدات. عند التشغيل: نافذة المشغل، التي تميّز الألعاب التي يعرفها ويمكنها فك ضغطها.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "عند الإيقاف: يشغّل اختصار اللعبة على سطح المكتب اللعبة مباشرة، لواجهات مثل RetroBat. عند التشغيل: يفتح المشغل، الذي يجلب معه المظهر والحفظ السحابي ووقت اللعب.", - "Off: the zip is deleted once it's unpacked. On: it stays in the library's .downloads folder.": "إيقاف: يحذف ملف zip بعد فك ضغطه. تشغيل: يبقى في مجلد .downloads في المكتبة.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "إيقاف: يحذف ملف zip بعد فك ضغطه. تشغيل: يبقى كل ملف zip كما وصل، وملف التحديث أيضًا، في مجلد .downloads في مكتبته بالتاريخ الذي يحمله على GitHub.", "Offline": "غير متصل", "Older releases": "إصدارات أقدم", "On": "تشغيل", diff --git a/ui/i18n/de.json b/ui/i18n/de.json index 0ddf3dfe..8bc75e7e 100644 --- a/ui/i18n/de.json +++ b/ui/i18n/de.json @@ -878,7 +878,7 @@ "Off. Saves for this game are not synced to the cloud.": "Aus. Die Spielstände dieses Spiels werden nicht mit der Cloud synchronisiert.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "Aus: das Windows-eigene Fenster zum Auswählen von Dateien und Ordnern. An: das des Launchers, das die Spiele markiert, die er kennt, und entpacken kann.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "Aus: Die Desktop-Verknüpfung eines Spiels startet direkt das Spiel, für Frontends wie RetroBat. An: Sie öffnet den Launcher, der deinen Look, Cloud-Speicherstände und die Spielzeit mitbringt.", - "Off: the zip is deleted once it's unpacked. On: it stays in the library's .downloads folder.": "Aus: Die ZIP-Datei wird nach dem Entpacken gelöscht. Ein: Sie bleibt im Ordner .downloads der Bibliothek.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "Aus: Die ZIP-Datei wird nach dem Entpacken gelöscht. Ein: Jede ZIP-Datei bleibt, wie sie kam, auch die eines Updates, im Ordner .downloads ihrer Bibliothek, mit dem Datum, das sie auf GitHub hat.", "Offline": "Offline", "Older releases": "Ältere Releases", "On": "Ein", diff --git a/ui/i18n/es-419.json b/ui/i18n/es-419.json index 13c1bac6..13443e49 100644 --- a/ui/i18n/es-419.json +++ b/ui/i18n/es-419.json @@ -867,7 +867,7 @@ "Off. Saves for this game are not synced to the cloud.": "Desactivado. Las partidas de este juego no se sincronizan con la nube.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "Desactivado: la ventana de Windows para elegir archivos y carpetas. Activado: la del lanzador, que marca los juegos que conoce y puede descomprimir.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "Desactivado: el acceso directo de escritorio de un juego inicia el juego directamente, para front-ends como RetroBat. Activado: abre el lanzador, que trae tu Estilo, tus partidas en la nube y tu tiempo de juego.", - "Off: the zip is deleted once it's unpacked. On: it stays in the library's .downloads folder.": "Desactivado: el zip se borra al descomprimirse. Activado: se queda en la carpeta .downloads de la biblioteca.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "Desactivado: el zip se borra al descomprimirse. Activado: cada zip se queda tal como llegó, también el de una actualización, en la carpeta .downloads de su biblioteca, con la fecha que tiene en GitHub.", "Offline": "Sin conexión", "Older releases": "Versiones anteriores", "On": "Activado", diff --git a/ui/i18n/es.json b/ui/i18n/es.json index 22a3edbf..2bffb7ce 100644 --- a/ui/i18n/es.json +++ b/ui/i18n/es.json @@ -878,7 +878,7 @@ "Off. Saves for this game are not synced to the cloud.": "Desactivado. Las partidas de este juego no se sincronizan con la nube.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "Desactivado: la ventana de Windows para elegir archivos y carpetas. Activado: la del lanzador, que marca los juegos que conoce y puede descomprimir.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "Desactivado: el acceso directo de escritorio de un juego inicia el juego directamente, para front-ends como RetroBat. Activado: abre el lanzador, que trae tu Estilo, tus partidas en la nube y tu tiempo de juego.", - "Off: the zip is deleted once it's unpacked. On: it stays in the library's .downloads folder.": "Desactivado: el zip se borra al descomprimirse. Activado: se queda en la carpeta .downloads de la biblioteca.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "Desactivado: el zip se borra al descomprimirse. Activado: cada zip se queda tal como llegó, también el de una actualización, en la carpeta .downloads de su biblioteca, con la fecha que tiene en GitHub.", "Offline": "Sin conexión", "Older releases": "Versiones anteriores", "On": "Activado", diff --git a/ui/i18n/fr.json b/ui/i18n/fr.json index 948d1556..381b7d0c 100644 --- a/ui/i18n/fr.json +++ b/ui/i18n/fr.json @@ -878,7 +878,7 @@ "Off. Saves for this game are not synced to the cloud.": "Désactivé. Les sauvegardes de ce jeu ne sont pas synchronisées avec le cloud.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "Désactivé : la fenêtre de Windows pour choisir les fichiers et dossiers. Activé : celle du lanceur, qui signale les jeux qu'il connaît et peut décompresser.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "Désactivé : le raccourci de bureau d'un jeu lance directement le jeu, pour les front-ends comme RetroBat. Activé : il ouvre le lanceur, qui apporte votre style, vos sauvegardes dans le cloud et votre temps de jeu.", - "Off: the zip is deleted once it's unpacked. On: it stays in the library's .downloads folder.": "Désactivé : le zip est supprimé une fois extrait. Activé : il reste dans le dossier .downloads de la bibliothèque.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "Désactivé : le zip est supprimé une fois extrait. Activé : chaque zip reste tel qu’il est arrivé, celui d’une mise à jour aussi, dans le dossier .downloads de sa bibliothèque, avec la date qu’il a sur GitHub.", "Offline": "Hors ligne", "Older releases": "Anciennes versions publiées", "On": "Activé", diff --git a/ui/i18n/id.json b/ui/i18n/id.json index 7adabc86..a3a16604 100644 --- a/ui/i18n/id.json +++ b/ui/i18n/id.json @@ -878,7 +878,7 @@ "Off. Saves for this game are not synced to the cloud.": "Mati. Save game ini tidak disinkronkan ke cloud.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "Mati: jendela bawaan Windows untuk memilih file dan folder. Nyala: jendela milik launcher, yang menandai game yang dikenalnya dan bisa mengekstrak.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "Mati: pintasan desktop game langsung menjalankan game-nya, untuk front-end seperti RetroBat. Nyala: membuka launcher, yang ikut membawa Tampilan, save cloud, dan waktu bermainmu.", - "Off: the zip is deleted once it's unpacked. On: it stays in the library's .downloads folder.": "Mati: zip dihapus setelah diekstrak. Nyala: zip tetap ada di folder .downloads milik pustaka.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "Mati: zip dihapus setelah diekstrak. Nyala: setiap zip tetap seperti saat diunduh, termasuk zip pembaruan, di folder .downloads milik pustakanya, dengan tanggal yang tertera di GitHub.", "Offline": "Offline", "Older releases": "Rilis lama", "On": "Nyala", diff --git a/ui/i18n/it.json b/ui/i18n/it.json index 8a5f3c60..f42017b7 100644 --- a/ui/i18n/it.json +++ b/ui/i18n/it.json @@ -878,7 +878,7 @@ "Off. Saves for this game are not synced to the cloud.": "Disattivato. I salvataggi di questo gioco non sono sincronizzati con il cloud.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "Disattivato: la finestra di Windows per scegliere file e cartelle. Attivato: quella del launcher, che segnala i giochi che conosce e può estrarre.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "Disattivato: il collegamento sul desktop di un gioco avvia direttamente il gioco, per i front-end come RetroBat. Attivato: apre il launcher, che porta con sé il tuo Stile, i salvataggi nel cloud e il tempo di gioco.", - "Off: the zip is deleted once it's unpacked. On: it stays in the library's .downloads folder.": "Disattivato: lo zip viene eliminato dopo l'estrazione. Attivato: resta nella cartella .downloads della libreria.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "Disattivato: lo zip viene eliminato dopo l’estrazione. Attivato: ogni zip resta com’è arrivato, anche quello di un aggiornamento, nella cartella .downloads della sua libreria, con la data che ha su GitHub.", "Offline": "Offline", "Older releases": "Release precedenti", "On": "Attivato", diff --git a/ui/i18n/ja.json b/ui/i18n/ja.json index 9a0d00ac..7a0e9685 100644 --- a/ui/i18n/ja.json +++ b/ui/i18n/ja.json @@ -878,7 +878,7 @@ "Off. Saves for this game are not synced to the cloud.": "オフ。このゲームのセーブデータはクラウドと同期されません。", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "オフ:ファイルやフォルダーの選択に Windows 標準のウィンドウを使います。オン:ランチャーのものを使います。対応ゲームに印が付き、zip も展開できます。", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "オフ:デスクトップのショートカットからゲームを直接起動します(RetroBat などのフロントエンド向け)。オン:ランチャーを開き、スタイル、クラウドセーブ、プレイ時間も使えます。", - "Off: the zip is deleted once it's unpacked. On: it stays in the library's .downloads folder.": "オフ:zip は展開後に削除されます。オン:ライブラリの .downloads フォルダーに残ります。", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "オフ:zip は展開後に削除されます。オン:アップデートのものも含め、どの zip も届いたままの形で、GitHub 上の日付のままライブラリの .downloads フォルダーに残ります。", "Offline": "オフライン", "Older releases": "過去のリリース", "On": "オン", diff --git a/ui/i18n/ko.json b/ui/i18n/ko.json index 00f89141..d270f47b 100644 --- a/ui/i18n/ko.json +++ b/ui/i18n/ko.json @@ -878,7 +878,7 @@ "Off. Saves for this game are not synced to the cloud.": "꺼짐. 이 게임의 저장 데이터가 클라우드와 동기화되지 않습니다.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "끄기: 파일과 폴더를 고르는 Windows 기본 창을 사용합니다. 켜기: 런처의 창을 사용하며, 아는 게임을 표시하고 압축을 풀 수 있습니다.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "끄기: 게임의 바탕 화면 바로 가기가 게임을 바로 실행합니다. RetroBat 같은 프런트엔드용입니다. 켜기: 런처를 열어 스타일, 클라우드 저장, 플레이 시간도 함께 적용합니다.", - "Off: the zip is deleted once it's unpacked. On: it stays in the library's .downloads folder.": "끔: zip 파일은 압축을 푼 뒤 삭제됩니다. 켬: 라이브러리의 .downloads 폴더에 남습니다.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "끔: zip 파일은 압축을 푼 뒤 삭제됩니다. 켬: 업데이트 파일을 포함한 모든 zip 파일이 받은 그대로, GitHub에 있는 날짜 그대로 라이브러리의 .downloads 폴더에 남습니다.", "Offline": "오프라인", "Older releases": "이전 릴리스", "On": "켬", diff --git a/ui/i18n/nl.json b/ui/i18n/nl.json index 59e05af9..523d9bf1 100644 --- a/ui/i18n/nl.json +++ b/ui/i18n/nl.json @@ -878,7 +878,7 @@ "Off. Saves for this game are not synced to the cloud.": "Uit. De opgeslagen games van deze game worden niet met de cloud gesynchroniseerd.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "Uit: het eigen venster van Windows om bestanden en mappen te kiezen. Aan: dat van de launcher, dat de games markeert die hij kent en kan uitpakken.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "Uit: de bureaubladsnelkoppeling van een game start de game zelf, voor front-ends zoals RetroBat. Aan: ze opent de launcher, die je Look, opslaan in de cloud en speeltijd meeneemt.", - "Off: the zip is deleted once it's unpacked. On: it stays in the library's .downloads folder.": "Uit: de zip wordt verwijderd zodra hij is uitgepakt. Aan: hij blijft in de map .downloads van de bibliotheek.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "Uit: de zip wordt verwijderd zodra hij is uitgepakt. Aan: elke zip blijft zoals hij binnenkwam, ook die van een update, in de map .downloads van zijn bibliotheek, met de datum die hij op GitHub heeft.", "Offline": "Offline", "Older releases": "Oudere releases", "On": "Aan", diff --git a/ui/i18n/pl.json b/ui/i18n/pl.json index fcdb6283..bbb85bde 100644 --- a/ui/i18n/pl.json +++ b/ui/i18n/pl.json @@ -878,7 +878,7 @@ "Off. Saves for this game are not synced to the cloud.": "Wyłączone. Zapisy tej gry nie są synchronizowane z chmurą.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "Wyłączone: okno samego Windowsa do wybierania plików i folderów. Włączone: okno launchera, które oznacza znane mu gry i potrafi je rozpakować.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "Wyłączone: skrót gry na pulpicie uruchamia bezpośrednio grę, dla nakładek takich jak RetroBat. Włączone: otwiera launcher, który dba o Twój Styl, zapisy w chmurze i czas gry.", - "Off: the zip is deleted once it's unpacked. On: it stays in the library's .downloads folder.": "Wyłączone: plik zip jest usuwany po rozpakowaniu. Włączone: zostaje w folderze .downloads biblioteki.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "Wyłączone: plik zip jest usuwany po rozpakowaniu. Włączone: każdy zip zostaje taki, jaki przyszedł, także z aktualizacji, w folderze .downloads swojej biblioteki, z datą, którą ma na GitHubie.", "Offline": "Offline", "Older releases": "Starsze wydania", "On": "Włączone", diff --git a/ui/i18n/pt-BR.json b/ui/i18n/pt-BR.json index 6634b00b..a5fa28ea 100644 --- a/ui/i18n/pt-BR.json +++ b/ui/i18n/pt-BR.json @@ -867,7 +867,7 @@ "Off. Saves for this game are not synced to the cloud.": "Desligado. Os dados salvos deste jogo não são sincronizados com a nuvem.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "Desligado: a janela do próprio Windows para escolher arquivos e pastas. Ligado: a do launcher, que marca os jogos que ele conhece e consegue descompactar.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "Desligado: o atalho de um jogo na área de trabalho inicia o próprio jogo, para front-ends como o RetroBat. Ligado: abre o launcher, que traz seu Estilo, os saves na nuvem e o tempo de jogo.", - "Off: the zip is deleted once it's unpacked. On: it stays in the library's .downloads folder.": "Desativado: o zip é excluído depois de extraído. Ativado: ele fica na pasta .downloads da biblioteca.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "Desativado: o zip é excluído depois de extraído. Ativado: cada zip fica como chegou, o de uma atualização também, na pasta .downloads da biblioteca dele, com a data que tem no GitHub.", "Offline": "Offline", "Older releases": "Lançamentos anteriores", "On": "Ativado", diff --git a/ui/i18n/pt.json b/ui/i18n/pt.json index 1242fd42..6a4218a2 100644 --- a/ui/i18n/pt.json +++ b/ui/i18n/pt.json @@ -878,7 +878,7 @@ "Off. Saves for this game are not synced to the cloud.": "Desligado. Os dados guardados deste jogo não são sincronizados com a nuvem.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "Desligado: a janela do próprio Windows para escolher ficheiros e pastas. Ligado: a do launcher, que assinala os jogos que conhece e consegue descomprimir.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "Desligado: o atalho de um jogo no ambiente de trabalho inicia o próprio jogo, para front-ends como o RetroBat. Ligado: abre o launcher, que traz o teu Estilo, os dados na nuvem e o tempo de jogo.", - "Off: the zip is deleted once it's unpacked. On: it stays in the library's .downloads folder.": "Desativado: o zip é eliminado depois de extraído. Ativado: fica na pasta .downloads da biblioteca.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "Desativado: o zip é eliminado depois de extraído. Ativado: cada zip fica como chegou, o de uma atualização também, na pasta .downloads da sua biblioteca, com a data que tem no GitHub.", "Offline": "Offline", "Older releases": "Lançamentos anteriores", "On": "Ativado", diff --git a/ui/i18n/ru.json b/ui/i18n/ru.json index 9a5f21bf..56de81a2 100644 --- a/ui/i18n/ru.json +++ b/ui/i18n/ru.json @@ -878,7 +878,7 @@ "Off. Saves for this game are not synced to the cloud.": "Выкл. Сохранения этой игры не синхронизируются с облаком.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "Выкл.: стандартное окно Windows для выбора файлов и папок. Вкл.: окно лаунчера, которое отмечает знакомые ему игры и умеет распаковывать.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "Выкл.: ярлык игры на рабочем столе запускает саму игру — для оболочек вроде RetroBat. Вкл.: он открывает лаунчер, который подключает ваш Стиль, облачные сохранения и учёт игрового времени.", - "Off: the zip is deleted once it's unpacked. On: it stays in the library's .downloads folder.": "Выкл.: zip удаляется после распаковки. Вкл.: остаётся в папке .downloads библиотеки.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "Выкл.: zip удаляется после распаковки. Вкл.: каждый zip остаётся таким, каким пришёл, в том числе от обновления, в папке .downloads своей библиотеки, с датой, которая у него на GitHub.", "Offline": "Не в сети", "Older releases": "Старые выпуски", "On": "Вкл.", diff --git a/ui/i18n/th.json b/ui/i18n/th.json index f0ed3291..e7e023de 100644 --- a/ui/i18n/th.json +++ b/ui/i18n/th.json @@ -878,7 +878,7 @@ "Off. Saves for this game are not synced to the cloud.": "ปิด เซฟของเกมนี้ไม่ได้ซิงก์กับคลาวด์", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "ปิด: ใช้หน้าต่างเลือกไฟล์และโฟลเดอร์ของ Windows เอง เปิด: ใช้ของตัวเปิดเกม ซึ่งทำเครื่องหมายเกมที่รู้จักและแตกไฟล์ zip ได้", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "ปิด: ทางลัดบนเดสก์ท็อปจะเปิดเกมโดยตรง สำหรับฟรอนต์เอนด์อย่าง RetroBat เปิด: จะเปิดตัวเปิดเกม ซึ่งนำสไตล์ภาพ เซฟบนคลาวด์ และเวลาเล่นของคุณมาด้วย", - "Off: the zip is deleted once it's unpacked. On: it stays in the library's .downloads folder.": "ปิด: ไฟล์ zip จะถูกลบหลังแตกไฟล์ เปิด: ไฟล์จะถูกเก็บไว้ในโฟลเดอร์ .downloads ของคลัง", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "ปิด: ไฟล์ zip จะถูกลบหลังแตกไฟล์ เปิด: ไฟล์ zip ทุกไฟล์จะถูกเก็บไว้ตามที่ดาวน์โหลดมา รวมถึงไฟล์อัปเดต ในโฟลเดอร์ .downloads ของคลังเกมนั้น พร้อมวันที่เดียวกับบน GitHub", "Offline": "ออฟไลน์", "Older releases": "รีลีสเก่า", "On": "เปิด", diff --git a/ui/i18n/tr.json b/ui/i18n/tr.json index 7d4eac4e..9a8536b6 100644 --- a/ui/i18n/tr.json +++ b/ui/i18n/tr.json @@ -878,7 +878,7 @@ "Off. Saves for this game are not synced to the cloud.": "Kapalı. Bu oyunun kayıtları bulutla eşitlenmez.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "Kapalı: Dosya ve klasör seçmek için Windows'un kendi penceresi. Açık: Başlatıcınınki; tanıdığı oyunları işaretler ve arşivden çıkarabilir.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "Kapalı: Bir oyunun masaüstü kısayolu oyunu doğrudan başlatır; RetroBat gibi ön yüzler için. Açık: Başlatıcıyı açar; Görünümün, bulut kayıtların ve oyun süren de onunla gelir.", - "Off: the zip is deleted once it's unpacked. On: it stays in the library's .downloads folder.": "Kapalı: zip açıldıktan sonra silinir. Açık: kitaplığın .downloads klasöründe kalır.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "Kapalı: zip açıldıktan sonra silinir. Açık: her zip, bir güncellemeninki de, geldiği gibi kitaplığının .downloads klasöründe GitHub’daki tarihiyle kalır.", "Offline": "Çevrimdışı", "Older releases": "Eski sürümler", "On": "Açık", diff --git a/ui/i18n/uk.json b/ui/i18n/uk.json index ab8c44e7..1d379f62 100644 --- a/ui/i18n/uk.json +++ b/ui/i18n/uk.json @@ -878,7 +878,7 @@ "Off. Saves for this game are not synced to the cloud.": "Вимк. Збереження цієї гри не синхронізуються з хмарою.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "Вимк.: стандартне вікно Windows для вибору файлів і папок. Увімк.: вікно лаунчера, яке позначає знайомі йому ігри й уміє розпаковувати.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "Вимк.: ярлик гри на робочому столі запускає саму гру — для оболонок на кшталт RetroBat. Увімк.: він відкриває лаунчер, який підключає ваш Стиль, хмарні збереження й облік ігрового часу.", - "Off: the zip is deleted once it's unpacked. On: it stays in the library's .downloads folder.": "Вимк.: zip видаляється після розпакування. Увімк.: залишається в папці .downloads бібліотеки.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "Вимк.: zip видаляється після розпакування. Увімк.: кожен zip залишається таким, яким прийшов, зокрема з оновлення, у папці .downloads своєї бібліотеки, з датою, яка в нього на GitHub.", "Offline": "Не в мережі", "Older releases": "Старіші випуски", "On": "Увімк.", diff --git a/ui/i18n/vi.json b/ui/i18n/vi.json index 13004c2a..ca4c3a14 100644 --- a/ui/i18n/vi.json +++ b/ui/i18n/vi.json @@ -878,7 +878,7 @@ "Off. Saves for this game are not synced to the cloud.": "Tắt. Dữ liệu lưu của trò chơi này không được đồng bộ lên đám mây.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "Tắt: cửa sổ chọn tệp và thư mục của chính Windows. Bật: cửa sổ của trình khởi chạy, đánh dấu các trò chơi nó nhận ra và có thể giải nén.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "Tắt: lối tắt trên màn hình nền của trò chơi sẽ mở thẳng trò chơi, dành cho các front-end như RetroBat. Bật: nó mở trình khởi chạy, mang theo Phong cách, dữ liệu lưu đám mây và thời gian chơi của bạn.", - "Off: the zip is deleted once it's unpacked. On: it stays in the library's .downloads folder.": "Tắt: tệp zip bị xóa sau khi giải nén. Bật: tệp được giữ trong thư mục .downloads của thư viện.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "Tắt: tệp zip bị xóa sau khi giải nén. Bật: mọi tệp zip được giữ nguyên như khi tải về, kể cả tệp cập nhật, trong thư mục .downloads của thư viện chứa nó, với ngày giống trên GitHub.", "Offline": "Ngoại tuyến", "Older releases": "Bản phát hành cũ", "On": "Bật", diff --git a/ui/i18n/zh-Hans.json b/ui/i18n/zh-Hans.json index cebe1f10..61da3016 100644 --- a/ui/i18n/zh-Hans.json +++ b/ui/i18n/zh-Hans.json @@ -878,7 +878,7 @@ "Off. Saves for this game are not synced to the cloud.": "已关闭。此游戏的存档不会同步到云端。", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "关闭:使用 Windows 自带的窗口选择文件和文件夹。开启:使用启动器的窗口,它会标出认识的游戏,并能解压。", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "关闭:游戏的桌面快捷方式直接启动游戏,适合 RetroBat 等前端。开启:它会打开启动器,带上你的画面风格、云存档和游戏时长。", - "Off: the zip is deleted once it's unpacked. On: it stays in the library's .downloads folder.": "关闭:解压后删除 zip 文件。开启:保留在游戏库的 .downloads 文件夹中。", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "关闭:解压后删除 zip 文件。开启:每个 zip 文件(包括更新的)都按下载时的原样保留在其游戏库的 .downloads 文件夹中,日期与 GitHub 上的一致。", "Offline": "离线", "Older releases": "旧版发布", "On": "开启", diff --git a/ui/i18n/zh-Hant.json b/ui/i18n/zh-Hant.json index 287076ee..19f5c1c8 100644 --- a/ui/i18n/zh-Hant.json +++ b/ui/i18n/zh-Hant.json @@ -878,7 +878,7 @@ "Off. Saves for this game are not synced to the cloud.": "已關閉。此遊戲的存檔不會同步到雲端。", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "關閉:使用 Windows 內建的視窗選擇檔案和資料夾。開啟:使用啟動器的視窗,它會標出認得的遊戲,並能解壓縮。", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "關閉:遊戲的桌面捷徑會直接啟動遊戲,適合 RetroBat 等前端。開啟:會開啟啟動器,帶上你的畫面風格、雲端存檔和遊戲時間。", - "Off: the zip is deleted once it's unpacked. On: it stays in the library's .downloads folder.": "關閉:解壓縮後刪除 zip 檔。開啟:保留在收藏庫的 .downloads 資料夾中。", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "關閉:解壓縮後刪除 zip 檔。開啟:每個 zip 檔(包括更新的)都按下載時的原樣保留在其收藏庫的 .downloads 資料夾中,日期與 GitHub 上的一致。", "Offline": "離線", "Older releases": "舊版發佈", "On": "開啟", From 8f7603bb9ce40d19dff4063aead34f04cd2f0c2c Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 17:43:27 +0200 Subject: [PATCH 19/35] Kept Downloads for every library, and the date it was released Each library keeps its own games' zips, so every library in Games and folders gets a Kept Downloads button while Keep downloaded files is on. The texts say "the date it was released", which stays true for GitLab, SourceForge and backup downloads too. (#456) --- docs/FAQ.md | 2 +- tests/keep-downloads.test.cjs | 25 ++++++++++++++++++++----- ui/app.js | 11 +++++++---- ui/i18n/ar.json | 3 ++- ui/i18n/de.json | 3 ++- ui/i18n/es-419.json | 3 ++- ui/i18n/es.json | 3 ++- ui/i18n/fr.json | 3 ++- ui/i18n/id.json | 3 ++- ui/i18n/it.json | 3 ++- ui/i18n/ja.json | 3 ++- ui/i18n/ko.json | 3 ++- ui/i18n/nl.json | 3 ++- ui/i18n/pl.json | 3 ++- ui/i18n/pt-BR.json | 3 ++- ui/i18n/pt.json | 3 ++- ui/i18n/ru.json | 3 ++- ui/i18n/th.json | 3 ++- ui/i18n/tr.json | 3 ++- ui/i18n/uk.json | 3 ++- ui/i18n/vi.json | 3 ++- ui/i18n/zh-Hans.json | 3 ++- ui/i18n/zh-Hant.json | 3 ++- 23 files changed, 68 insertions(+), 30 deletions(-) diff --git a/docs/FAQ.md b/docs/FAQ.md index a36ddd4d..e87dffd7 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -31,7 +31,7 @@ No. Everything works without one. A free account adds cloud saves, so the same s | Games | `C:\Recomp Library` on Windows, `~/Games/Recomp Library` on Linux and Mac. You can change it or add more folders in Settings. | | Settings and covers | The launcher's data folder: `%APPDATA%\com.recomplauncher.app` on Windows, `~/.local/share/com.recomplauncher.app` on Linux, `~/Library/Application Support/com.recomplauncher.app` on Mac | | Save backups | Beside each game, in its library's `.backups` folder (or a folder you pick on the Saves page) | -| Release zips | Deleted once unpacked. With **Keep downloaded files** on (Settings → Updates and Downloads), each one, updates too, stays as it came in its library's `.downloads` folder, with the date it has on GitHub | +| Release zips | Deleted once unpacked. With **Keep downloaded files** on (Settings → Updates and Downloads), each one, updates too, stays as it came in its library's `.downloads` folder, with the date it was released. Each library in Settings → Games and folders has a **Kept Downloads** button for its folder | | Screenshots | `Pictures\RecompLauncher` | The Windows default is a short folder near the top of the drive because some games break in long or OneDrive-synced paths. diff --git a/tests/keep-downloads.test.cjs b/tests/keep-downloads.test.cjs index 114e03a3..24919587 100644 --- a/tests/keep-downloads.test.cjs +++ b/tests/keep-downloads.test.cjs @@ -7,22 +7,24 @@ const vm = require('node:vm'); const app = fs.readFileSync(path.join(__dirname, '../ui/app.js'), 'utf8'); const fn = (src, name) => src.match(new RegExp(`^function ${name}\\([^]*?^}`, 'm'))[0]; -// Settings → Updates and Downloads, drawn with the given settings. -function updatesPage(settings) { +// A Settings page (Updates and Downloads unless another tab is given), drawn with the given settings. +function updatesPage(settings, setTab = 'updates', libs = []) { const c = vm.createContext({ S: { - os: 'windows', settings, libs: [], library: {}, owned: {}, - ids: { usage: 'usage-id', stats: 'stats-id' }, setTab: 'updates', view: 'settings', + os: 'windows', settings, libs, library: {}, owned: {}, roms: [], + ids: { usage: 'usage-id', stats: 'stats-id' }, setTab, view: 'settings', }, t: (s) => s, N_: (s) => s, tc: (s) => s, esc: String, tf: (s, values) => s.replace(/\{(\w+)\}/g, (_, k) => values[k]), LANGS: [['en', 'English']], systemLang: () => 'en', - SET_SECTIONS: [['updates', 'Updates']], SET_ICONS: {}, DL_LIMITS: [0], + SET_SECTIONS: [['updates', 'Updates'], ['library', 'Games and folders']], SET_ICONS: {}, DL_LIMITS: [0], okMark: () => '', portableRow: () => '', geRow: () => '', networkGroup: () => '', selfUpdatesGroup: () => '', backdrop: () => '', bar: () => '', region: (s) => s, pageHead: (s) => s, homePinned: () => false, ownedGames: () => [], bgMode: () => '', langName: () => 'English', svg: () => '', hints: () => '', HEART: '', setClock: () => {}, autoInstall: () => false, autoUpdateAll: () => false, + // What the Games and folders tab draws besides its libraries. + tn: (n, one, many) => (n === 1 ? one : many.replace('{n}', n)), fmtB: String, folderCounts: () => '', sharedLibraryNote: () => '', dlssGroup: () => '', steamSyncGroup: () => '', }); c.window = c; c.clockRow = () => ''; c.monitorPicked = () => ''; c.monitorName = () => ''; @@ -44,3 +46,16 @@ test('with Keep downloaded files off, there is no Open for kept downloads', () = const html = updatesPage({ keep_downloads: false, library_dir: 'C:\\Recomp Library' }); assert.doesNotMatch(html, /\.downloads"/); }); + +test('with Keep downloaded files on, every library has Kept Downloads for its own folder', () => { + const libs = [{ path: '/home/me/Games', default: true, games: 1 }, { path: '/mnt/big/Games', games: 2 }]; + const html = updatesPage({ keep_downloads: true, library_dir: '/home/me/Games' }, 'library', libs); + assert.match(html, /data-path="\/home\/me\/Games\/\.downloads">Kept DownloadsKept Downloads { + const libs = [{ path: '/mnt/big/Games', default: true, games: 2 }]; + const html = updatesPage({ keep_downloads: false, library_dir: '/mnt/big/Games' }, 'library', libs); + assert.doesNotMatch(html, /Kept Downloads/); +}); diff --git a/ui/app.js b/ui/app.js index 974d3064..e5ebcd28 100644 --- a/ui/app.js +++ b/ui/app.js @@ -5181,10 +5181,13 @@ function pageSettings() { const row = (b, s, ctl) => `
${esc(b)}${esc(s)}
${ctl}
`; const group = (title, inner, extra = '') => `

${esc(title)}

${extra}
${inner}
`; // Keep downloaded files: with it on, Open goes to the kept zips, which sit in a hidden folder - // players wouldn't find on their own. + // players wouldn't find on their own. Each library keeps its own games' zips, so every library + // in Libraries gets a Kept Downloads button too. const keepToggle = sw('keep_downloads', st.keep_downloads, t('Keep downloaded files')); + const keptIn = (dir) => String(dir).replace(/[\\/]+$/, '') + (String(dir).includes('\\') ? '\\' : '/') + '.downloads'; + const keptLibBtn = (dir) => st.keep_downloads ? `` : ''; const libDir = String(st.library_dir || ''); - const keptFolder = libDir.replace(/[\\/]+$/, '') + (libDir.includes('\\') ? '\\' : '/') + '.downloads'; + const keptFolder = keptIn(libDir); const keptOpen = ``; const keepCtl = st.keep_downloads && libDir ? `${keptOpen}${keepToggle}` : keepToggle; const shown = (k) => (k !== 'pc' || S.pc) && (k !== 'dev' || devAllowed()); @@ -5223,7 +5226,7 @@ function pageSettings() { break; case 'library': body = group(t('Recomp Library'), `

${esc(t('Each game gets its own folder in a library. Add folders on other drives to spread games out; new games go to the default one unless you pick another when you install.'))}

- ${libs.map((l) => `
${esc(l.path)}${l.free != null ? esc(tf('{free} free', { free: fmtB(l.free) })) + ' · ' : ''}${esc(tn(l.games, '1 recomp', '{n} recomps'))}${l.default ? ' · ' + esc(t('default')) : ''}
${l.default ? '' : ``}
`).join('')}${sharedLibraryNote(libs.map((l) => l.path))}`, + ${libs.map((l) => `
${esc(l.path)}${l.free != null ? esc(tf('{free} free', { free: fmtB(l.free) })) + ' · ' : ''}${esc(tn(l.games, '1 recomp', '{n} recomps'))}${l.default ? ' · ' + esc(t('default')) : ''}
${keptLibBtn(l.path)}${l.default ? '' : ``}
`).join('')}${sharedLibraryNote(libs.map((l) => l.path))}`, ``) + group(t('Installing'), row(t('Ask Where to Install'), t('Pick the folder for each new game when you install it, Easy Setup too. Off: new games go to the default library.'), sw('ask_where', ui.ask_where, t('Ask Where to Install'), 'ui-toggle')) + row(t('Skip Easy Setup'), t('Every game installs as it comes, and its own installer or launcher sets it up. To skip it for one game only, use Skip Easy Setup on its setup window, or the Easy Setup switch in its Manage tab.'), sw('easy_skip_all', ui.easy_skip_all, t('Skip Easy Setup'), 'ui-toggle'))) @@ -5249,7 +5252,7 @@ function pageSettings() { + row(t('Update All Games Automatically'), t('Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. To keep one game waiting for you, turn off Update automatically in its Manage tab.'), sw('auto_update_all', autoUpdateAll(), t('Update All Games Automatically'))) + row(t('Back up saves before updates'), t('Keeps the newest five copies of the saves in each game\'s folder.'), sw('backup_before_update', st.backup_before_update, t('Back up before updates'))) + row(t('Auto-Install'), t('When an Easy Setup game or a game that comes as an installer finishes downloading (an update too), its setup or installer opens right away. Off: it waits until you press Set Up on its page.'), sw('auto_install', autoInstall(), t('Auto-Install')))) - + group(t('Downloads'), row(t('Keep downloaded files'), t('Off: the zip is deleted once it\'s unpacked. On: every zip stays as it came, an update\'s too, in its library\'s .downloads folder with the date it has on GitHub.'), keepCtl) + + group(t('Downloads'), row(t('Keep downloaded files'), t('Off: the zip is deleted once it\'s unpacked. On: every zip stays as it came, an update\'s too, in its library\'s .downloads folder with the date it was released.'), keepCtl) + row(t('Speed Limit'), t('Keeps downloads under this speed, so the rest of your home\'s internet stays quick.'), ``) + row(t('Slow Down While Playing'), t('While a game is running, downloads keep to 4 MB/s so the game gets your internet and drive first.'), sw('dl_slow_play', ui.dl_slow_play !== false, t('Slow Down While Playing'), 'dl-slow'))) + networkGroup(group, row, st); diff --git a/ui/i18n/ar.json b/ui/i18n/ar.json index 9e4d62ef..56fc72a7 100644 --- a/ui/i18n/ar.json +++ b/ui/i18n/ar.json @@ -683,6 +683,7 @@ "Pick an answer first": "اختر إجابة أولاً", "Keep Asking": "الاستمرار في السؤال", "Keep downloaded files": "الاحتفاظ بالملفات التي تم تنزيلها", + "Kept Downloads": "التنزيلات المحفوظة", "Keep it": "الاحتفاظ بها", "Reset Play Time…": "إعادة ضبط وقت اللعب…", "Reset Play Time": "إعادة ضبط وقت اللعب", @@ -878,7 +879,7 @@ "Off. Saves for this game are not synced to the cloud.": "متوقف. لا تتم مزامنة ملفات حفظ هذه اللعبة مع السحابة.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "عند الإيقاف: نافذة Windows نفسها لاختيار الملفات والمجلدات. عند التشغيل: نافذة المشغل، التي تميّز الألعاب التي يعرفها ويمكنها فك ضغطها.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "عند الإيقاف: يشغّل اختصار اللعبة على سطح المكتب اللعبة مباشرة، لواجهات مثل RetroBat. عند التشغيل: يفتح المشغل، الذي يجلب معه المظهر والحفظ السحابي ووقت اللعب.", - "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "إيقاف: يحذف ملف zip بعد فك ضغطه. تشغيل: يبقى كل ملف zip كما وصل، وملف التحديث أيضًا، في مجلد .downloads في مكتبته بالتاريخ الذي يحمله على GitHub.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it was released.": "إيقاف: يحذف ملف zip بعد فك ضغطه. تشغيل: يبقى كل ملف zip كما وصل، وملف التحديث أيضًا، في مجلد .downloads في مكتبته بتاريخ صدوره.", "Offline": "غير متصل", "Older releases": "إصدارات أقدم", "On": "تشغيل", diff --git a/ui/i18n/de.json b/ui/i18n/de.json index 8bc75e7e..36ad3966 100644 --- a/ui/i18n/de.json +++ b/ui/i18n/de.json @@ -683,6 +683,7 @@ "Pick an answer first": "Wähle zuerst eine Antwort", "Keep Asking": "Weiter fragen", "Keep downloaded files": "Heruntergeladene Dateien behalten", + "Kept Downloads": "Behaltene Downloads", "Keep it": "Behalten", "Reset Play Time…": "Spielzeit zurücksetzen…", "Reset Play Time": "Spielzeit zurücksetzen", @@ -878,7 +879,7 @@ "Off. Saves for this game are not synced to the cloud.": "Aus. Die Spielstände dieses Spiels werden nicht mit der Cloud synchronisiert.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "Aus: das Windows-eigene Fenster zum Auswählen von Dateien und Ordnern. An: das des Launchers, das die Spiele markiert, die er kennt, und entpacken kann.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "Aus: Die Desktop-Verknüpfung eines Spiels startet direkt das Spiel, für Frontends wie RetroBat. An: Sie öffnet den Launcher, der deinen Look, Cloud-Speicherstände und die Spielzeit mitbringt.", - "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "Aus: Die ZIP-Datei wird nach dem Entpacken gelöscht. Ein: Jede ZIP-Datei bleibt, wie sie kam, auch die eines Updates, im Ordner .downloads ihrer Bibliothek, mit dem Datum, das sie auf GitHub hat.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it was released.": "Aus: Die ZIP-Datei wird nach dem Entpacken gelöscht. Ein: Jede ZIP-Datei bleibt, wie sie kam, auch die eines Updates, im Ordner .downloads ihrer Bibliothek, mit dem Datum ihrer Veröffentlichung.", "Offline": "Offline", "Older releases": "Ältere Releases", "On": "Ein", diff --git a/ui/i18n/es-419.json b/ui/i18n/es-419.json index 13443e49..fdaa7b11 100644 --- a/ui/i18n/es-419.json +++ b/ui/i18n/es-419.json @@ -680,6 +680,7 @@ "Pick an answer first": "Elige primero una respuesta", "Keep Asking": "Seguir preguntando", "Keep downloaded files": "Conservar los archivos descargados", + "Kept Downloads": "Descargas guardadas", "Keep it": "Conservar", "Keep it on Home, in the order you like": "Mantenerlo en Inicio, en el orden que quieras", "Keep its own settings": "Conservar su configuración", @@ -867,7 +868,7 @@ "Off. Saves for this game are not synced to the cloud.": "Desactivado. Las partidas de este juego no se sincronizan con la nube.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "Desactivado: la ventana de Windows para elegir archivos y carpetas. Activado: la del lanzador, que marca los juegos que conoce y puede descomprimir.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "Desactivado: el acceso directo de escritorio de un juego inicia el juego directamente, para front-ends como RetroBat. Activado: abre el lanzador, que trae tu Estilo, tus partidas en la nube y tu tiempo de juego.", - "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "Desactivado: el zip se borra al descomprimirse. Activado: cada zip se queda tal como llegó, también el de una actualización, en la carpeta .downloads de su biblioteca, con la fecha que tiene en GitHub.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it was released.": "Desactivado: el zip se borra al descomprimirse. Activado: cada zip se queda tal como llegó, también el de una actualización, en la carpeta .downloads de su biblioteca, con la fecha en que salió.", "Offline": "Sin conexión", "Older releases": "Versiones anteriores", "On": "Activado", diff --git a/ui/i18n/es.json b/ui/i18n/es.json index 2bffb7ce..9e29689c 100644 --- a/ui/i18n/es.json +++ b/ui/i18n/es.json @@ -683,6 +683,7 @@ "Pick an answer first": "Elige primero una respuesta", "Keep Asking": "Seguir preguntando", "Keep downloaded files": "Conservar los archivos descargados", + "Kept Downloads": "Descargas guardadas", "Keep it": "Conservar", "Reset Play Time…": "Restablecer tiempo de juego…", "Reset Play Time": "Restablecer tiempo de juego", @@ -878,7 +879,7 @@ "Off. Saves for this game are not synced to the cloud.": "Desactivado. Las partidas de este juego no se sincronizan con la nube.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "Desactivado: la ventana de Windows para elegir archivos y carpetas. Activado: la del lanzador, que marca los juegos que conoce y puede descomprimir.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "Desactivado: el acceso directo de escritorio de un juego inicia el juego directamente, para front-ends como RetroBat. Activado: abre el lanzador, que trae tu Estilo, tus partidas en la nube y tu tiempo de juego.", - "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "Desactivado: el zip se borra al descomprimirse. Activado: cada zip se queda tal como llegó, también el de una actualización, en la carpeta .downloads de su biblioteca, con la fecha que tiene en GitHub.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it was released.": "Desactivado: el zip se borra al descomprimirse. Activado: cada zip se queda tal como llegó, también el de una actualización, en la carpeta .downloads de su biblioteca, con la fecha en que salió.", "Offline": "Sin conexión", "Older releases": "Versiones anteriores", "On": "Activado", diff --git a/ui/i18n/fr.json b/ui/i18n/fr.json index 381b7d0c..fdefd891 100644 --- a/ui/i18n/fr.json +++ b/ui/i18n/fr.json @@ -683,6 +683,7 @@ "Pick an answer first": "Choisissez d'abord une réponse", "Keep Asking": "Continuer à demander", "Keep downloaded files": "Conserver les fichiers téléchargés", + "Kept Downloads": "Téléchargements gardés", "Keep it": "Garder", "Reset Play Time…": "Réinitialiser le temps de jeu…", "Reset Play Time": "Réinitialiser le temps de jeu", @@ -878,7 +879,7 @@ "Off. Saves for this game are not synced to the cloud.": "Désactivé. Les sauvegardes de ce jeu ne sont pas synchronisées avec le cloud.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "Désactivé : la fenêtre de Windows pour choisir les fichiers et dossiers. Activé : celle du lanceur, qui signale les jeux qu'il connaît et peut décompresser.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "Désactivé : le raccourci de bureau d'un jeu lance directement le jeu, pour les front-ends comme RetroBat. Activé : il ouvre le lanceur, qui apporte votre style, vos sauvegardes dans le cloud et votre temps de jeu.", - "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "Désactivé : le zip est supprimé une fois extrait. Activé : chaque zip reste tel qu’il est arrivé, celui d’une mise à jour aussi, dans le dossier .downloads de sa bibliothèque, avec la date qu’il a sur GitHub.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it was released.": "Désactivé : le zip est supprimé une fois extrait. Activé : chaque zip reste tel qu’il est arrivé, celui d’une mise à jour aussi, dans le dossier .downloads de sa bibliothèque, avec sa date de sortie.", "Offline": "Hors ligne", "Older releases": "Anciennes versions publiées", "On": "Activé", diff --git a/ui/i18n/id.json b/ui/i18n/id.json index a3a16604..941eefcc 100644 --- a/ui/i18n/id.json +++ b/ui/i18n/id.json @@ -683,6 +683,7 @@ "Pick an answer first": "Pilih jawaban dulu", "Keep Asking": "Tetap tanya", "Keep downloaded files": "Simpan file unduhan", + "Kept Downloads": "Unduhan yang Disimpan", "Keep it": "Biarkan", "Reset Play Time…": "Atur Ulang Waktu Main…", "Reset Play Time": "Atur Ulang Waktu Main", @@ -878,7 +879,7 @@ "Off. Saves for this game are not synced to the cloud.": "Mati. Save game ini tidak disinkronkan ke cloud.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "Mati: jendela bawaan Windows untuk memilih file dan folder. Nyala: jendela milik launcher, yang menandai game yang dikenalnya dan bisa mengekstrak.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "Mati: pintasan desktop game langsung menjalankan game-nya, untuk front-end seperti RetroBat. Nyala: membuka launcher, yang ikut membawa Tampilan, save cloud, dan waktu bermainmu.", - "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "Mati: zip dihapus setelah diekstrak. Nyala: setiap zip tetap seperti saat diunduh, termasuk zip pembaruan, di folder .downloads milik pustakanya, dengan tanggal yang tertera di GitHub.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it was released.": "Mati: zip dihapus setelah diekstrak. Nyala: setiap zip tetap seperti saat diunduh, termasuk zip pembaruan, di folder .downloads milik pustakanya, dengan tanggal rilisnya.", "Offline": "Offline", "Older releases": "Rilis lama", "On": "Nyala", diff --git a/ui/i18n/it.json b/ui/i18n/it.json index f42017b7..344a79d7 100644 --- a/ui/i18n/it.json +++ b/ui/i18n/it.json @@ -683,6 +683,7 @@ "Pick an answer first": "Scegli prima una risposta", "Keep Asking": "Continua a chiedere", "Keep downloaded files": "Conserva i file scaricati", + "Kept Downloads": "Download conservati", "Keep it": "Mantieni", "Reset Play Time…": "Azzera tempo di gioco…", "Reset Play Time": "Azzera tempo di gioco", @@ -878,7 +879,7 @@ "Off. Saves for this game are not synced to the cloud.": "Disattivato. I salvataggi di questo gioco non sono sincronizzati con il cloud.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "Disattivato: la finestra di Windows per scegliere file e cartelle. Attivato: quella del launcher, che segnala i giochi che conosce e può estrarre.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "Disattivato: il collegamento sul desktop di un gioco avvia direttamente il gioco, per i front-end come RetroBat. Attivato: apre il launcher, che porta con sé il tuo Stile, i salvataggi nel cloud e il tempo di gioco.", - "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "Disattivato: lo zip viene eliminato dopo l’estrazione. Attivato: ogni zip resta com’è arrivato, anche quello di un aggiornamento, nella cartella .downloads della sua libreria, con la data che ha su GitHub.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it was released.": "Disattivato: lo zip viene eliminato dopo l’estrazione. Attivato: ogni zip resta com’è arrivato, anche quello di un aggiornamento, nella cartella .downloads della sua libreria, con la data di uscita.", "Offline": "Offline", "Older releases": "Release precedenti", "On": "Attivato", diff --git a/ui/i18n/ja.json b/ui/i18n/ja.json index 7a0e9685..eff9a91a 100644 --- a/ui/i18n/ja.json +++ b/ui/i18n/ja.json @@ -683,6 +683,7 @@ "Pick an answer first": "先に回答を選んでください", "Keep Asking": "引き続き確認する", "Keep downloaded files": "ダウンロードしたファイルを残す", + "Kept Downloads": "保存したダウンロード", "Keep it": "そのままにする", "Reset Play Time…": "プレイ時間をリセット…", "Reset Play Time": "プレイ時間をリセット", @@ -878,7 +879,7 @@ "Off. Saves for this game are not synced to the cloud.": "オフ。このゲームのセーブデータはクラウドと同期されません。", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "オフ:ファイルやフォルダーの選択に Windows 標準のウィンドウを使います。オン:ランチャーのものを使います。対応ゲームに印が付き、zip も展開できます。", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "オフ:デスクトップのショートカットからゲームを直接起動します(RetroBat などのフロントエンド向け)。オン:ランチャーを開き、スタイル、クラウドセーブ、プレイ時間も使えます。", - "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "オフ:zip は展開後に削除されます。オン:アップデートのものも含め、どの zip も届いたままの形で、GitHub 上の日付のままライブラリの .downloads フォルダーに残ります。", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it was released.": "オフ:zip は展開後に削除されます。オン:アップデートのものも含め、どの zip も届いたままの形で、リリース日のままライブラリの .downloads フォルダーに残ります。", "Offline": "オフライン", "Older releases": "過去のリリース", "On": "オン", diff --git a/ui/i18n/ko.json b/ui/i18n/ko.json index d270f47b..6a0a7179 100644 --- a/ui/i18n/ko.json +++ b/ui/i18n/ko.json @@ -683,6 +683,7 @@ "Pick an answer first": "먼저 답변을 선택하세요", "Keep Asking": "계속 묻기", "Keep downloaded files": "다운로드한 파일 보관", + "Kept Downloads": "보관한 다운로드", "Keep it": "그대로 두기", "Reset Play Time…": "플레이 시간 초기화…", "Reset Play Time": "플레이 시간 초기화", @@ -878,7 +879,7 @@ "Off. Saves for this game are not synced to the cloud.": "꺼짐. 이 게임의 저장 데이터가 클라우드와 동기화되지 않습니다.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "끄기: 파일과 폴더를 고르는 Windows 기본 창을 사용합니다. 켜기: 런처의 창을 사용하며, 아는 게임을 표시하고 압축을 풀 수 있습니다.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "끄기: 게임의 바탕 화면 바로 가기가 게임을 바로 실행합니다. RetroBat 같은 프런트엔드용입니다. 켜기: 런처를 열어 스타일, 클라우드 저장, 플레이 시간도 함께 적용합니다.", - "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "끔: zip 파일은 압축을 푼 뒤 삭제됩니다. 켬: 업데이트 파일을 포함한 모든 zip 파일이 받은 그대로, GitHub에 있는 날짜 그대로 라이브러리의 .downloads 폴더에 남습니다.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it was released.": "끔: zip 파일은 압축을 푼 뒤 삭제됩니다. 켬: 업데이트 파일을 포함한 모든 zip 파일이 받은 그대로, 출시 날짜 그대로 라이브러리의 .downloads 폴더에 남습니다.", "Offline": "오프라인", "Older releases": "이전 릴리스", "On": "켬", diff --git a/ui/i18n/nl.json b/ui/i18n/nl.json index 523d9bf1..3dc258b8 100644 --- a/ui/i18n/nl.json +++ b/ui/i18n/nl.json @@ -683,6 +683,7 @@ "Pick an answer first": "Kies eerst een antwoord", "Keep Asking": "Blijven vragen", "Keep downloaded files": "Gedownloade bestanden bewaren", + "Kept Downloads": "Bewaarde downloads", "Keep it": "Behouden", "Reset Play Time…": "Speeltijd resetten…", "Reset Play Time": "Speeltijd resetten", @@ -878,7 +879,7 @@ "Off. Saves for this game are not synced to the cloud.": "Uit. De opgeslagen games van deze game worden niet met de cloud gesynchroniseerd.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "Uit: het eigen venster van Windows om bestanden en mappen te kiezen. Aan: dat van de launcher, dat de games markeert die hij kent en kan uitpakken.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "Uit: de bureaubladsnelkoppeling van een game start de game zelf, voor front-ends zoals RetroBat. Aan: ze opent de launcher, die je Look, opslaan in de cloud en speeltijd meeneemt.", - "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "Uit: de zip wordt verwijderd zodra hij is uitgepakt. Aan: elke zip blijft zoals hij binnenkwam, ook die van een update, in de map .downloads van zijn bibliotheek, met de datum die hij op GitHub heeft.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it was released.": "Uit: de zip wordt verwijderd zodra hij is uitgepakt. Aan: elke zip blijft zoals hij binnenkwam, ook die van een update, in de map .downloads van zijn bibliotheek, met de datum waarop hij uitkwam.", "Offline": "Offline", "Older releases": "Oudere releases", "On": "Aan", diff --git a/ui/i18n/pl.json b/ui/i18n/pl.json index bbb85bde..cf6743a1 100644 --- a/ui/i18n/pl.json +++ b/ui/i18n/pl.json @@ -683,6 +683,7 @@ "Pick an answer first": "Najpierw wybierz odpowiedź", "Keep Asking": "Pytaj dalej", "Keep downloaded files": "Zachowuj pobrane pliki", + "Kept Downloads": "Zachowane pobrane", "Keep it": "Zostaw", "Reset Play Time…": "Wyzeruj czas gry…", "Reset Play Time": "Wyzeruj czas gry", @@ -878,7 +879,7 @@ "Off. Saves for this game are not synced to the cloud.": "Wyłączone. Zapisy tej gry nie są synchronizowane z chmurą.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "Wyłączone: okno samego Windowsa do wybierania plików i folderów. Włączone: okno launchera, które oznacza znane mu gry i potrafi je rozpakować.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "Wyłączone: skrót gry na pulpicie uruchamia bezpośrednio grę, dla nakładek takich jak RetroBat. Włączone: otwiera launcher, który dba o Twój Styl, zapisy w chmurze i czas gry.", - "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "Wyłączone: plik zip jest usuwany po rozpakowaniu. Włączone: każdy zip zostaje taki, jaki przyszedł, także z aktualizacji, w folderze .downloads swojej biblioteki, z datą, którą ma na GitHubie.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it was released.": "Wyłączone: plik zip jest usuwany po rozpakowaniu. Włączone: każdy zip zostaje taki, jaki przyszedł, także z aktualizacji, w folderze .downloads swojej biblioteki, z datą wydania.", "Offline": "Offline", "Older releases": "Starsze wydania", "On": "Włączone", diff --git a/ui/i18n/pt-BR.json b/ui/i18n/pt-BR.json index a5fa28ea..d36273a7 100644 --- a/ui/i18n/pt-BR.json +++ b/ui/i18n/pt-BR.json @@ -680,6 +680,7 @@ "Pick an answer first": "Escolha uma resposta primeiro", "Keep Asking": "Continuar perguntando", "Keep downloaded files": "Manter arquivos baixados", + "Kept Downloads": "Downloads guardados", "Keep it": "Manter", "Keep it on Home, in the order you like": "Manter no Início, na ordem que você quiser", "Keep its own settings": "Manter as configurações dele", @@ -867,7 +868,7 @@ "Off. Saves for this game are not synced to the cloud.": "Desligado. Os dados salvos deste jogo não são sincronizados com a nuvem.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "Desligado: a janela do próprio Windows para escolher arquivos e pastas. Ligado: a do launcher, que marca os jogos que ele conhece e consegue descompactar.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "Desligado: o atalho de um jogo na área de trabalho inicia o próprio jogo, para front-ends como o RetroBat. Ligado: abre o launcher, que traz seu Estilo, os saves na nuvem e o tempo de jogo.", - "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "Desativado: o zip é excluído depois de extraído. Ativado: cada zip fica como chegou, o de uma atualização também, na pasta .downloads da biblioteca dele, com a data que tem no GitHub.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it was released.": "Desativado: o zip é excluído depois de extraído. Ativado: cada zip fica como chegou, o de uma atualização também, na pasta .downloads da biblioteca dele, com a data em que saiu.", "Offline": "Offline", "Older releases": "Lançamentos anteriores", "On": "Ativado", diff --git a/ui/i18n/pt.json b/ui/i18n/pt.json index 6a4218a2..f3e58704 100644 --- a/ui/i18n/pt.json +++ b/ui/i18n/pt.json @@ -683,6 +683,7 @@ "Pick an answer first": "Escolhe primeiro uma resposta", "Keep Asking": "Continuar a perguntar", "Keep downloaded files": "Manter ficheiros transferidos", + "Kept Downloads": "Transferências guardadas", "Keep it": "Manter", "Reset Play Time…": "Repor tempo de jogo…", "Reset Play Time": "Repor tempo de jogo", @@ -878,7 +879,7 @@ "Off. Saves for this game are not synced to the cloud.": "Desligado. Os dados guardados deste jogo não são sincronizados com a nuvem.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "Desligado: a janela do próprio Windows para escolher ficheiros e pastas. Ligado: a do launcher, que assinala os jogos que conhece e consegue descomprimir.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "Desligado: o atalho de um jogo no ambiente de trabalho inicia o próprio jogo, para front-ends como o RetroBat. Ligado: abre o launcher, que traz o teu Estilo, os dados na nuvem e o tempo de jogo.", - "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "Desativado: o zip é eliminado depois de extraído. Ativado: cada zip fica como chegou, o de uma atualização também, na pasta .downloads da sua biblioteca, com a data que tem no GitHub.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it was released.": "Desativado: o zip é eliminado depois de extraído. Ativado: cada zip fica como chegou, o de uma atualização também, na pasta .downloads da sua biblioteca, com a data em que saiu.", "Offline": "Offline", "Older releases": "Lançamentos anteriores", "On": "Ativado", diff --git a/ui/i18n/ru.json b/ui/i18n/ru.json index 56de81a2..b7c871af 100644 --- a/ui/i18n/ru.json +++ b/ui/i18n/ru.json @@ -683,6 +683,7 @@ "Pick an answer first": "Сначала выберите ответ", "Keep Asking": "Продолжать спрашивать", "Keep downloaded files": "Сохранять загруженные файлы", + "Kept Downloads": "Сохранённые загрузки", "Keep it": "Оставить", "Reset Play Time…": "Сбросить время в игре…", "Reset Play Time": "Сбросить время в игре", @@ -878,7 +879,7 @@ "Off. Saves for this game are not synced to the cloud.": "Выкл. Сохранения этой игры не синхронизируются с облаком.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "Выкл.: стандартное окно Windows для выбора файлов и папок. Вкл.: окно лаунчера, которое отмечает знакомые ему игры и умеет распаковывать.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "Выкл.: ярлык игры на рабочем столе запускает саму игру — для оболочек вроде RetroBat. Вкл.: он открывает лаунчер, который подключает ваш Стиль, облачные сохранения и учёт игрового времени.", - "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "Выкл.: zip удаляется после распаковки. Вкл.: каждый zip остаётся таким, каким пришёл, в том числе от обновления, в папке .downloads своей библиотеки, с датой, которая у него на GitHub.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it was released.": "Выкл.: zip удаляется после распаковки. Вкл.: каждый zip остаётся таким, каким пришёл, в том числе от обновления, в папке .downloads своей библиотеки, с датой выхода.", "Offline": "Не в сети", "Older releases": "Старые выпуски", "On": "Вкл.", diff --git a/ui/i18n/th.json b/ui/i18n/th.json index e7e023de..67b6c34b 100644 --- a/ui/i18n/th.json +++ b/ui/i18n/th.json @@ -683,6 +683,7 @@ "Pick an answer first": "เลือกคำตอบก่อน", "Keep Asking": "ถามต่อไป", "Keep downloaded files": "เก็บไฟล์ที่ดาวน์โหลดไว้", + "Kept Downloads": "ไฟล์ดาวน์โหลดที่เก็บไว้", "Keep it": "เก็บไว้", "Reset Play Time…": "รีเซ็ตเวลาเล่น…", "Reset Play Time": "รีเซ็ตเวลาเล่น", @@ -878,7 +879,7 @@ "Off. Saves for this game are not synced to the cloud.": "ปิด เซฟของเกมนี้ไม่ได้ซิงก์กับคลาวด์", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "ปิด: ใช้หน้าต่างเลือกไฟล์และโฟลเดอร์ของ Windows เอง เปิด: ใช้ของตัวเปิดเกม ซึ่งทำเครื่องหมายเกมที่รู้จักและแตกไฟล์ zip ได้", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "ปิด: ทางลัดบนเดสก์ท็อปจะเปิดเกมโดยตรง สำหรับฟรอนต์เอนด์อย่าง RetroBat เปิด: จะเปิดตัวเปิดเกม ซึ่งนำสไตล์ภาพ เซฟบนคลาวด์ และเวลาเล่นของคุณมาด้วย", - "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "ปิด: ไฟล์ zip จะถูกลบหลังแตกไฟล์ เปิด: ไฟล์ zip ทุกไฟล์จะถูกเก็บไว้ตามที่ดาวน์โหลดมา รวมถึงไฟล์อัปเดต ในโฟลเดอร์ .downloads ของคลังเกมนั้น พร้อมวันที่เดียวกับบน GitHub", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it was released.": "ปิด: ไฟล์ zip จะถูกลบหลังแตกไฟล์ เปิด: ไฟล์ zip ทุกไฟล์จะถูกเก็บไว้ตามที่ดาวน์โหลดมา รวมถึงไฟล์อัปเดต ในโฟลเดอร์ .downloads ของคลังเกมนั้น พร้อมวันที่ออก", "Offline": "ออฟไลน์", "Older releases": "รีลีสเก่า", "On": "เปิด", diff --git a/ui/i18n/tr.json b/ui/i18n/tr.json index 9a8536b6..20fb7a8a 100644 --- a/ui/i18n/tr.json +++ b/ui/i18n/tr.json @@ -683,6 +683,7 @@ "Pick an answer first": "Önce bir yanıt seçin", "Keep Asking": "Sormaya devam et", "Keep downloaded files": "İndirilen dosyaları sakla", + "Kept Downloads": "Saklanan İndirmeler", "Keep it": "Kalsın", "Reset Play Time…": "Oynama Süresini Sıfırla…", "Reset Play Time": "Oynama Süresini Sıfırla", @@ -878,7 +879,7 @@ "Off. Saves for this game are not synced to the cloud.": "Kapalı. Bu oyunun kayıtları bulutla eşitlenmez.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "Kapalı: Dosya ve klasör seçmek için Windows'un kendi penceresi. Açık: Başlatıcınınki; tanıdığı oyunları işaretler ve arşivden çıkarabilir.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "Kapalı: Bir oyunun masaüstü kısayolu oyunu doğrudan başlatır; RetroBat gibi ön yüzler için. Açık: Başlatıcıyı açar; Görünümün, bulut kayıtların ve oyun süren de onunla gelir.", - "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "Kapalı: zip açıldıktan sonra silinir. Açık: her zip, bir güncellemeninki de, geldiği gibi kitaplığının .downloads klasöründe GitHub’daki tarihiyle kalır.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it was released.": "Kapalı: zip açıldıktan sonra silinir. Açık: her zip, bir güncellemeninki de, geldiği gibi kitaplığının .downloads klasöründe çıktığı tarihle kalır.", "Offline": "Çevrimdışı", "Older releases": "Eski sürümler", "On": "Açık", diff --git a/ui/i18n/uk.json b/ui/i18n/uk.json index 1d379f62..fc034ebf 100644 --- a/ui/i18n/uk.json +++ b/ui/i18n/uk.json @@ -683,6 +683,7 @@ "Pick an answer first": "Спершу виберіть відповідь", "Keep Asking": "Питати й надалі", "Keep downloaded files": "Зберігати завантажені файли", + "Kept Downloads": "Збережені завантаження", "Keep it": "Залишити", "Reset Play Time…": "Скинути час у грі…", "Reset Play Time": "Скинути час у грі", @@ -878,7 +879,7 @@ "Off. Saves for this game are not synced to the cloud.": "Вимк. Збереження цієї гри не синхронізуються з хмарою.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "Вимк.: стандартне вікно Windows для вибору файлів і папок. Увімк.: вікно лаунчера, яке позначає знайомі йому ігри й уміє розпаковувати.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "Вимк.: ярлик гри на робочому столі запускає саму гру — для оболонок на кшталт RetroBat. Увімк.: він відкриває лаунчер, який підключає ваш Стиль, хмарні збереження й облік ігрового часу.", - "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "Вимк.: zip видаляється після розпакування. Увімк.: кожен zip залишається таким, яким прийшов, зокрема з оновлення, у папці .downloads своєї бібліотеки, з датою, яка в нього на GitHub.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it was released.": "Вимк.: zip видаляється після розпакування. Увімк.: кожен zip залишається таким, яким прийшов, зокрема з оновлення, у папці .downloads своєї бібліотеки, з датою виходу.", "Offline": "Не в мережі", "Older releases": "Старіші випуски", "On": "Увімк.", diff --git a/ui/i18n/vi.json b/ui/i18n/vi.json index ca4c3a14..e1661e0d 100644 --- a/ui/i18n/vi.json +++ b/ui/i18n/vi.json @@ -683,6 +683,7 @@ "Pick an answer first": "Hãy chọn một câu trả lời trước", "Keep Asking": "Tiếp tục hỏi", "Keep downloaded files": "Giữ tệp đã tải", + "Kept Downloads": "Bản tải đã giữ", "Keep it": "Giữ lại", "Reset Play Time…": "Đặt lại thời gian chơi…", "Reset Play Time": "Đặt lại thời gian chơi", @@ -878,7 +879,7 @@ "Off. Saves for this game are not synced to the cloud.": "Tắt. Dữ liệu lưu của trò chơi này không được đồng bộ lên đám mây.", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "Tắt: cửa sổ chọn tệp và thư mục của chính Windows. Bật: cửa sổ của trình khởi chạy, đánh dấu các trò chơi nó nhận ra và có thể giải nén.", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "Tắt: lối tắt trên màn hình nền của trò chơi sẽ mở thẳng trò chơi, dành cho các front-end như RetroBat. Bật: nó mở trình khởi chạy, mang theo Phong cách, dữ liệu lưu đám mây và thời gian chơi của bạn.", - "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "Tắt: tệp zip bị xóa sau khi giải nén. Bật: mọi tệp zip được giữ nguyên như khi tải về, kể cả tệp cập nhật, trong thư mục .downloads của thư viện chứa nó, với ngày giống trên GitHub.", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it was released.": "Tắt: tệp zip bị xóa sau khi giải nén. Bật: mọi tệp zip được giữ nguyên như khi tải về, kể cả tệp cập nhật, trong thư mục .downloads của thư viện chứa nó, với ngày phát hành.", "Offline": "Ngoại tuyến", "Older releases": "Bản phát hành cũ", "On": "Bật", diff --git a/ui/i18n/zh-Hans.json b/ui/i18n/zh-Hans.json index 61da3016..829ca2fd 100644 --- a/ui/i18n/zh-Hans.json +++ b/ui/i18n/zh-Hans.json @@ -683,6 +683,7 @@ "Pick an answer first": "请先选择一个回答", "Keep Asking": "继续询问", "Keep downloaded files": "保留下载的文件", + "Kept Downloads": "保留的下载", "Keep it": "保留", "Reset Play Time…": "重置游戏时间…", "Reset Play Time": "重置游戏时间", @@ -878,7 +879,7 @@ "Off. Saves for this game are not synced to the cloud.": "已关闭。此游戏的存档不会同步到云端。", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "关闭:使用 Windows 自带的窗口选择文件和文件夹。开启:使用启动器的窗口,它会标出认识的游戏,并能解压。", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "关闭:游戏的桌面快捷方式直接启动游戏,适合 RetroBat 等前端。开启:它会打开启动器,带上你的画面风格、云存档和游戏时长。", - "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "关闭:解压后删除 zip 文件。开启:每个 zip 文件(包括更新的)都按下载时的原样保留在其游戏库的 .downloads 文件夹中,日期与 GitHub 上的一致。", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it was released.": "关闭:解压后删除 zip 文件。开启:每个 zip 文件(包括更新的)都按下载时的原样保留在其游戏库的 .downloads 文件夹中,日期为其发布日期。", "Offline": "离线", "Older releases": "旧版发布", "On": "开启", diff --git a/ui/i18n/zh-Hant.json b/ui/i18n/zh-Hant.json index 19f5c1c8..14763e79 100644 --- a/ui/i18n/zh-Hant.json +++ b/ui/i18n/zh-Hant.json @@ -683,6 +683,7 @@ "Pick an answer first": "請先選擇一個回答", "Keep Asking": "繼續詢問", "Keep downloaded files": "保留下載的檔案", + "Kept Downloads": "保留的下載", "Keep it": "保留", "Reset Play Time…": "重設遊戲時間…", "Reset Play Time": "重設遊戲時間", @@ -878,7 +879,7 @@ "Off. Saves for this game are not synced to the cloud.": "已關閉。此遊戲的存檔不會同步到雲端。", "Off: Windows' own window for picking files and folders. On: the launcher's, which marks the games it knows and can unzip.": "關閉:使用 Windows 內建的視窗選擇檔案和資料夾。開啟:使用啟動器的視窗,它會標出認得的遊戲,並能解壓縮。", "Off: a game's desktop shortcut starts the game itself, for front ends like RetroBat. On: it opens the launcher, which brings your Look, cloud saves and play time along.": "關閉:遊戲的桌面捷徑會直接啟動遊戲,適合 RetroBat 等前端。開啟:會開啟啟動器,帶上你的畫面風格、雲端存檔和遊戲時間。", - "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it has on GitHub.": "關閉:解壓縮後刪除 zip 檔。開啟:每個 zip 檔(包括更新的)都按下載時的原樣保留在其收藏庫的 .downloads 資料夾中,日期與 GitHub 上的一致。", + "Off: the zip is deleted once it's unpacked. On: every zip stays as it came, an update's too, in its library's .downloads folder with the date it was released.": "關閉:解壓縮後刪除 zip 檔。開啟:每個 zip 檔(包括更新的)都按下載時的原樣保留在其收藏庫的 .downloads 資料夾中,日期為其發布日期。", "Offline": "離線", "Older releases": "舊版發佈", "On": "開啟", From 1a375d042743345b152b147c228497061cbf4060 Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 17:51:56 +0200 Subject: [PATCH 20/35] Controllers: leave the window's own reading on outside Windows, ask for the stick every 50 ms Only Windows has the Xbox Wireless Adapter trouble, so Linux and macOS keep the window's fallback for a controller SDL doesn't open. Big Picture's tilt asks for the right stick at most every 50 ms, not every frame. --- src-tauri/src/lib.rs | 8 ++++---- src-tauri/src/pads.rs | 26 ++++++++++++++++++++------ tests/gamepad-stick.test.cjs | 8 ++++---- ui/tv.js | 27 ++++++++++++++------------- 4 files changed, 42 insertions(+), 27 deletions(-) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 640da482..847da4ed 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -7138,10 +7138,10 @@ fn controllers() -> Vec { pads::connected() } -/// The launcher reads controllers itself, so the window must leave them alone (see pads::native). +/// The window must leave controllers to the launcher (see pads::window_stays_off). #[tauri::command(async)] -fn pads_native() -> bool { - pads::native() +fn pads_window_off() -> bool { + pads::window_stays_off() } /// The right stick, for Big Picture's box tilt. @@ -10343,7 +10343,7 @@ pub fn run() { get_state, get_catalog, get_releases, net_state, check_updates, launcher_update, install, cancel, uninstall, play, stop, set_exe, forget_program, set_setup_mode, open_folder, save_settings, set_start_at_login, list_monitors, prepare_tv_mode, leave_tv_mode, open_url, libraries, move_game, game_sizes, game_size, backups, backup_now, restore_backup, pc_check, set_ui_scale, update_retry, ge_proton_install, proton_now, repo_readme, install_vcredist, scan_roms, rom_matches, copy_files, support_local, desktop_shortcut, refresh_shortcut_art, open_app_control, fs_paste, portable_info, make_portable, add_to_steam, launcher_to_steam, steam_sync::steam_sync_now, steam_sync::steam_sync_state, steam_sync::steam_remove_all, recent_log, screenshots, open_shots, overlay_action, overlay_state, is_handheld, skip_backup, set_cover, art::art_source, art::art_open, art::art_save, art::art_search, art::art_for, all_screenshots, delete_screenshot, - copy_screenshot, show_screenshot, controllers, pads_native, pad_right_stick, prefetch_images, versions, build_check, news, game_info, mods_state, mods_online, + copy_screenshot, show_screenshot, controllers, pads_window_off, pad_right_stick, prefetch_images, versions, build_check, news, game_info, mods_state, mods_online, mod_install, mod_remove, open_mods, send_report, beta_feedback, logs_zip::export_logs, game_programs, run_program, game_root, boot::boot_builtin, update_launcher, resume_game, game_setup, set_game_copy, free_up_space, set_update_copy, set_game_setting, set_game_slider, set_game_binding, reset_game_bindings, usage::report_preview, usage::profile_report, usage::my_reports, usage::report_reply, usage::review_delete, recomp_games, adopt::move_listing, update_info, set_proxy, umu_repair, dlss_fetch, dlss_set, dlss_state, dlss_remove, cloud::library_pull, cloud::library_push, cloud::playtime_push, cloud::playtime_pull, cloud::playtime_reset, cloud::spons_mine, cloud::spons_seen, cloud::saves_open_backups, game_action, setup_copy, setup_cancel, setup_status, setup_begin, setup_end, setup_input_set, setup_key_remove, setup_inputs_run, easy_setup, set_game_options, set_prepare_opts, diff --git a/src-tauri/src/pads.rs b/src-tauri/src/pads.rs index 764af9d5..c9f983a7 100644 --- a/src-tauri/src/pads.rs +++ b/src-tauri/src/pads.rs @@ -323,7 +323,8 @@ static RUNNING: AtomicBool = AtomicBool::new(false); /// SDL started and is reading controllers. static READY: AtomicBool = AtomicBool::new(false); /// The right stick's last position (SDL's -32768..32767, Y positive downwards), for Big Picture's -/// box tilt: the window can't ask for its own controllers without upsetting them (see `native`). +/// box tilt: on Windows the window can't ask for its own controllers without upsetting them +/// (see `window_stays_off`). static RIGHT_STICK: [AtomicI16; 2] = [AtomicI16::new(0), AtomicI16::new(0)]; fn keep_right_stick(axis: sdl::SDL_GamepadAxis, value: i16) { @@ -341,11 +342,16 @@ pub fn right_stick() -> [f32; 2] { RIGHT_STICK.each_ref().map(|v| (v.load(Ordering::Relaxed) as f32 / 32767.0).clamp(-1.0, 1.0)) } -/// Whether the launcher reads controllers itself, waiting a moment if SDL is still starting. -/// While it does, the window must not ask for gamepads (navigator.getGamepads): that starts -/// WebView2's own controller reading, raw input beside SDL's XInput, and on Windows that pair -/// switches off a controller reconnecting through the Xbox Wireless Adapter (issue #496). -pub fn native() -> bool { +/// Whether the window must leave controllers to the launcher, waiting a moment if SDL is still +/// starting. On Windows, while SDL reads them, the window must not ask for gamepads +/// (navigator.getGamepads): that starts WebView2's own controller reading, raw input beside +/// SDL's XInput, and that pair switches off a controller reconnecting through the Xbox Wireless +/// Adapter (issue #496). Elsewhere the window's reading does no harm and stays as the fallback +/// for a controller SDL doesn't open. +pub fn window_stays_off() -> bool { + if !cfg!(windows) { + return false; + } let t = std::time::Instant::now(); while RUNNING.load(Ordering::Relaxed) && !READY.load(Ordering::Relaxed) && t.elapsed() < std::time::Duration::from_secs(3) { std::thread::sleep(std::time::Duration::from_millis(10)); @@ -670,6 +676,14 @@ mod tests { } } + /// Only Windows has the Xbox Wireless Adapter trouble (#496): elsewhere the window keeps + /// its own controller reading as the fallback. + #[test] + #[cfg(not(windows))] + fn the_window_reads_controllers_outside_windows() { + assert!(!window_stays_off()); + } + #[test] fn triggers() { let mut a = Axes::default(); diff --git a/tests/gamepad-stick.test.cjs b/tests/gamepad-stick.test.cjs index 953be857..e625c17c 100644 --- a/tests/gamepad-stick.test.cjs +++ b/tests/gamepad-stick.test.cjs @@ -9,15 +9,15 @@ const start = tv.indexOf(' const STD = '); const end = tv.indexOf(' // F11 switches', start); assert.ok(start >= 0 && end > start, 'the controller fallback is present'); -// The fallback starts once the core has said whether it reads controllers itself (`native`). -async function controller(settings = {}, native = false) { +// The fallback starts once the core has said whether the window must leave controllers to it (`windowOff`). +async function controller(settings = {}, windowOff = false) { let time = 0; const timers = [], presses = []; const asked = { gamepads: 0 }; const gp = { index: 0, id: 'standard controller', axes: [0, 0], buttons: Array.from({ length: 17 }, () => ({ pressed: false })) }; const getGamepads = () => { asked.gamepads++; return [gp]; }; const context = vm.createContext({ - S: { settings }, TV: { on: true }, nativeSeen: false, padsAnswer: Promise.resolve(native), + S: { settings }, TV: { on: true }, nativeSeen: false, padsAnswer: Promise.resolve(windowOff), navigator: { getGamepads }, document: { hasFocus: () => true }, performance: { now: () => time }, setTimeout: fn => timers.push(fn), pad: button => presses.push(button), @@ -62,7 +62,7 @@ test('turning stick navigation off stops a held fallback direction from repeatin assert.deepEqual(c.presses, ['right']); }); -test('the window never asks for gamepads while the core reads controllers', async () => { +test('on Windows the window never asks for gamepads while SDL reads controllers', async () => { const c = await controller({}, true); assert.equal(c.timers.length, 0); assert.equal(c.asked.gamepads, 0); diff --git a/ui/tv.js b/ui/tv.js index ab7b0921..14eb5451 100644 --- a/ui/tv.js +++ b/ui/tv.js @@ -762,18 +762,19 @@ PRE.set(src, im); if (PRE.size > 60) PRE.delete(PRE.keys().next().value); } - // Whether the core reads controllers itself (SDL); null until it answers. While it does, this - // window never asks for gamepads: that starts WebView2's own controller reading, and on Windows - // the two together switch off a controller reconnecting through the Xbox Wireless Adapter (#496). - let padsNative = null; - // Outside the launcher (a page opened on its own) there's no core to ask: the fallback it is. - const padsAnswer = Promise.resolve().then(() => invoke('pads_native')).catch(() => false).then((on) => { padsNative = on; return on; }); + // Whether this window must leave controllers to the core; null until it answers. On Windows, + // while SDL reads them, asking for gamepads starts WebView2's own controller reading, and the two + // together switch off a controller reconnecting through the Xbox Wireless Adapter (#496). + let padsWindowOff = null; + // Outside the launcher (a page opened on its own) there's no core to ask: the window reads them. + const padsAnswer = Promise.resolve().then(() => invoke('pads_window_off')).catch(() => false).then((off) => { padsWindowOff = off; return off; }); // The box you're on tilts with the right stick (or the mouse over it), like turning it in your hands. - const TILT = { raf: 0, x: 0, y: 0, mx: 0, my: 0, mouseAt: 0, el: null, stick: [0, 0], asking: false }; - // The core's right stick, asked for once a frame at most; the tilt uses the last answer. + const TILT = { raf: 0, x: 0, y: 0, mx: 0, my: 0, mouseAt: 0, el: null, stick: [0, 0], asking: false, askedAt: 0 }; + // The core's right stick, asked for every 50 ms at most; the tilt eases towards the last answer. function askRightStick() { - if (TILT.asking) return; + if (TILT.asking || performance.now() - TILT.askedAt < 50) return; TILT.asking = true; + TILT.askedAt = performance.now(); invoke('pad_right_stick').then((s) => { TILT.stick = s; }).catch(() => {}).finally(() => { TILT.asking = false; }); } function tiltStart() { @@ -790,11 +791,11 @@ if (!f || !TV.on) { TILT.x = TILT.y = 0; return; } let sx = 0, sy = 0; if (performance.now() - TILT.mouseAt < 1500) { sx = TILT.mx; sy = TILT.my; } - else if (padsNative) { + else if (padsWindowOff) { askRightStick(); [sx, sy] = TILT.stick; if (Math.hypot(sx, sy) < 0.15) sx = sy = 0; - } else if (padsNative === false && navigator.getGamepads) { + } else if (padsWindowOff === false && navigator.getGamepads) { for (const gp of navigator.getGamepads()) { if (!gp || gp.axes.length < 4) continue; const x = gp.axes[2] || 0, y = gp.axes[3] || 0; @@ -3175,7 +3176,7 @@ } // Controllers: from the core (Xbox through XInput, PlayStation read directly), with the - // window's own gamepad support as a fallback only when the core can't read them (padsNative). + // window's own gamepad support as a fallback, except where it must leave them to the core (padsWindowOff). let nativeSeen = false; let lastPad = { b: '', t: 0 }; const BORN = performance.now(); @@ -3251,7 +3252,7 @@ held[k] = now; } } - padsAnswer.then((on) => { if (!on) pollPads(); }); + padsAnswer.then((off) => { if (!off) pollPads(); }); // F11 switches between the desktop view and Big Picture mode. document.addEventListener('keydown', (e) => { From c1557af81712c8cf2cff528eb8c980a1cd9564b6 Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 19:18:59 +0200 Subject: [PATCH 21/35] Set Up by You: a pill on every game Easy Setup is skipped for, saying what the launcher still does --- tests/beta51.test.cjs | 2 +- tests/choose-program.test.cjs | 34 +++++++++++++++++++++++++++------- tests/shader-chip.test.cjs | 2 +- ui/app.css | 3 +-- ui/app.js | 24 ++++++++++++++++++------ ui/i18n/ar.json | 5 +++-- ui/i18n/de.json | 5 +++-- ui/i18n/es-419.json | 5 +++-- ui/i18n/es.json | 5 +++-- ui/i18n/fr-CA.json | 5 +++-- ui/i18n/fr.json | 5 +++-- ui/i18n/id.json | 5 +++-- ui/i18n/it.json | 5 +++-- ui/i18n/ja.json | 5 +++-- ui/i18n/ko.json | 5 +++-- ui/i18n/nl.json | 5 +++-- ui/i18n/pl.json | 5 +++-- ui/i18n/pt-BR.json | 5 +++-- ui/i18n/pt.json | 5 +++-- ui/i18n/ru.json | 5 +++-- ui/i18n/th.json | 5 +++-- ui/i18n/tr.json | 5 +++-- ui/i18n/uk.json | 5 +++-- ui/i18n/vi.json | 5 +++-- ui/i18n/zh-Hans.json | 5 +++-- ui/i18n/zh-Hant.json | 5 +++-- ui/tv.js | 2 +- 27 files changed, 112 insertions(+), 60 deletions(-) diff --git a/tests/beta51.test.cjs b/tests/beta51.test.cjs index 4e0f16a6..2b2f6267 100644 --- a/tests/beta51.test.cjs +++ b/tests/beta51.test.cjs @@ -17,7 +17,7 @@ test('cards show only Easy Setup and the versions count', () => { assert.doesNotMatch(tvPoster, /deckb|stb|greatOnDeck|STATE_NAME/); assert.match(tvPoster, /turnkey\(a\) \? ` src.match(new RegExp(`^(?:async )?function ${name}\\([^]*?^}`, 'm'))[0]; // Game Executable on the game's page, with what game_setup says about the game. -const row = (setup, easy, exe = 'Hookshot\\bin\\hookshot.exe', ui = {}) => { - const names = ['setupOf', 'selfManaged', 'selfManagedPill', 'exePath', 'programRow']; +// `easyOn`: Easy Setup is on for it (not skipped), which it is unless a test says otherwise. +const row = (setup, easy, exe = 'Hookshot\\bin\\hookshot.exe', ui = {}, easyOn = easy) => { + const names = ['setupOf', 'selfManaged', 'setUpByYou', 'setUpByYouPill', 'exePath', 'programRow']; const run = new Function('S', 't', 'esc', `${names.map((n) => fn(app, n)).join(';\n')}; return programRow;`); - const S = { os: 'windows', settings: { ui }, setup: { g: setup }, easyAll: new Set(easy ? ['g'] : []) }; + const S = { os: 'windows', settings: { ui }, setup: { g: setup }, easyAll: new Set(easy ? ['g'] : []), easy: new Set(easyOn ? ['g'] : []) }; return run(S, (x) => x, (x) => x)('g', { exe, path: 'F:\\Library\\hookshot' }); }; @@ -33,9 +34,9 @@ test('a game Easy Setup does says what picking its own executable does', () => { const MINE = { own_program: 'F:\\Library\\hookshot\\Hookshot\\bin\\hookshot.exe' }; -test('once Play starts the player\'s executable: Self-Managed, and no second button (the Easy Setup switch is the way back)', () => { +test('once Play starts the player\'s executable: Set Up by You, and no second button (the Easy Setup switch is the way back)', () => { const html = row(MINE, true); - assert.match(html, /Self-Managed<\/span>/); + assert.match(html, /Set Up by You<\/span>/); assert.match(html, /You manage this install, and Easy Setup is skipped\./); assert.doesNotMatch(html, /forget-program|easy-again|easy-skip/); }); @@ -93,8 +94,27 @@ test('with Easy Setup skipped for every game, the way back is Use Default', () = assert.match(row(MINE, true, undefined, { easy_skip_all: true }), /data-act="forget-program"[^>]*>Use Default { - assert.match(app, /gsBox\(GS_IC\.disk, t\('On Disk'\), \(size \? esc\(fmtB\(size\)\) : '—'\) \+ selfManagedPill\(id\)\)/); +test('Easy Setup skipped on a game it can do: Set Up by You, saying what the launcher still does', () => { + const html = row({ own_program: null }, true, undefined, {}, false); + assert.match(html, /Set Up by You<\/span>/); +}); + +test('Easy Setup skipped for every game: Set Up by You too', () => { + assert.match(row({ own_program: null }, true, undefined, { easy_skip_all: true }, false), />Set Up by You { + assert.doesNotMatch(row({ own_program: null }, false), /own-pill/); +}); + +test('the pill sits under the game\'s name in place of Easy Setup, and no longer in On Disk', () => { + assert.match(fn(app, 'gameTitle'), /inst && setUpByYou\(id\) \? setUpByYouPill\(id\) : turnkey\(a\) \? /); + assert.match(app, /gsBox\(GS_IC\.disk, t\('On Disk'\), size \? esc\(fmtB\(size\)\) : '—'\)/); +}); + +test('Big Picture says Set Up by You on an installed game where it would say Easy Setup', () => { + const tv = fs.readFileSync(path.join(__dirname, '../ui/tv.js'), 'utf8'); + assert.match(tv, /: S\.easy\.has\(id\) \? `\$\{esc\(t\('Easy Setup'\)\)\}<\/span>` : S\.library\[id\] && setUpByYou\(id\) \? `\$\{esc\(t\('Set Up by You'\)\)\}<\/span>` : ''/); }); test('Use Default lets the pick go in the core', () => { diff --git a/tests/shader-chip.test.cjs b/tests/shader-chip.test.cjs index 326ae2a0..cc315795 100644 --- a/tests/shader-chip.test.cjs +++ b/tests/shader-chip.test.cjs @@ -32,7 +32,7 @@ function gamePage() { statePill: () => '', tagsOf: () => [], ...Object.fromEntries(['reviveSoon', 'moveTabPill', 'paintLooks', 'fitTitles', 'layoutShelves', 'render', 'loadSetup'].map((k) => [k, () => {}])), - ...Object.fromEntries(['turnkey', 'greatOnDeck', 'greatHandheld', 'isAI'].map((k) => [k, () => false])), + ...Object.fromEntries(['turnkey', 'setUpByYou', 'greatOnDeck', 'greatHandheld', 'isAI'].map((k) => [k, () => false])), ...Object.fromEntries(['partOfLine', 'based', 'devLine', 'verPill'].map((k) => [k, () => ''])), }); for (const name of ['refreshGame', 'gameTitle', 'lookChip']) vm.runInContext(fn(name), c); diff --git a/ui/app.css b/ui/app.css index 02b43a62..03638775 100644 --- a/ui/app.css +++ b/ui/app.css @@ -448,7 +448,6 @@ body.light .known-fix b{color:#127a45} .gs-v .scan-pill{height:19px;font-size:10.5px!important;gap:4px;padding:0 7px 0 3px;margin-left:4px} .gs-v .scan-pill i{width:12px;height:12px} .gs-v .scan-pill i svg{width:11px;height:11px} -.gs-v .own-pill{margin-left:4px} .gs-to{color:var(--dim);font-size:10px;font-weight:600;margin:0 -1px} .gs-new{color:var(--cyan)} .gs-stack{display:inline-flex;margin-right:4px} @@ -2419,7 +2418,7 @@ body.mac .tile .glow{display:none} .path-box:not(.empty){direction:rtl;text-align:left} .path-box>bdi{direction:ltr;unicode-bidi:isolate} .path-box.empty{font-family:inherit;font-weight:500;color:var(--dim)} -/* Self-Managed: Play starts the player's own executable; the launcher doesn't set the game up. */ +/* Set Up by You: the player sets the game up (their own executable, or Easy Setup skipped), not the launcher. */ .own-pill{display:inline-flex!important;align-items:center;height:22px;padding:0 10px;border-radius:999px;font-size:11.5px!important;font-weight:700;letter-spacing:.02em;color:var(--cyan)!important;border:1px solid rgba(52,242,232,.32);background:rgba(52,242,232,.08);cursor:help;flex:none} /* Where's Your Build?: the two ways in as cards, then Easy Setup and Not Now. */ diff --git a/ui/app.js b/ui/app.js index 8d400d63..f2d56a15 100644 --- a/ui/app.js +++ b/ui/app.js @@ -2438,7 +2438,7 @@ function gameTitle(a, id) { const inst = S.library[id], su = S.setup[id]; // Easy Setup first; the AI-assisted tag last, and only when the player turned it on (the details stay in Overview). const sp = statePill(a), quiet = sp.includes('tag quiet'); - const chips = [quiet ? '' : sp, turnkey(a) ? `${DISC_S}${esc(t('Easy Setup'))}` : '', greatOnDeck(a) ? `${DECK_ICON(14)}${esc(t('Great on Deck'))}` : '', greatHandheld(a) ? `${HH_ICON}${esc(t('Great on Handhelds'))}` : '', su && su.copy ? `${esc(t('Your copy is set up'))}` : '', inst && inst.local ? `${esc(inst.tag === 'own' ? t('Added by You') : t('Local build'))}` : '', lookChip(inst), quiet ? sp : '', isAI(a) && (S.settings.ui || {}).show_ai_tag ? `${esc(t('AI-assisted'))}` : ''].join(''); + const chips = [quiet ? '' : sp, inst && setUpByYou(id) ? setUpByYouPill(id) : turnkey(a) ? `${DISC_S}${esc(t('Easy Setup'))}` : '', greatOnDeck(a) ? `${DECK_ICON(14)}${esc(t('Great on Deck'))}` : '', greatHandheld(a) ? `${HH_ICON}${esc(t('Great on Handhelds'))}` : '', su && su.copy ? `${esc(t('Your copy is set up'))}` : '', inst && inst.local ? `${esc(inst.tag === 'own' ? t('Added by You') : t('Local build'))}` : '', lookChip(inst), quiet ? sp : '', isAI(a) && (S.settings.ui || {}).show_ai_tag ? `${esc(t('AI-assisted'))}` : ''].join(''); return `${partOfLine(a)}${based(a)}${devLine(a)}${verPill(a)}${chips ? `
${chips}
` : ''}${tagsOf(a).length ? `
${tagsOf(a).map((tg) => ``).join('')}
` : ''}`; } function pageGame(id) { @@ -3066,7 +3066,7 @@ function gameStrip(a, inst) { } if (inst) { const size = gameDisk(id); - boxes.push(gsBox(GS_IC.disk, t('On Disk'), (size ? esc(fmtB(size)) : '—') + selfManagedPill(id))); + boxes.push(gsBox(GS_IC.disk, t('On Disk'), size ? esc(fmtB(size)) : '—')); } return `
${boxes.join('')}
`; } @@ -6783,9 +6783,21 @@ function selfManaged(id) { const su = setupOf(id); return !!(su && su.own_program); } -function selfManagedPill(id) { - if (!selfManaged(id)) return ''; - return `${esc(t('Self-Managed'))}`; +// The player sets this game up, not the launcher: they picked its executable, or Easy Setup is +// skipped on a game it could do (that game only, or every game in Settings). Only an installed +// game's page asks. +function setUpByYou(id) { + if (selfManaged(id)) return true; + return !!(S.easyAll && S.easy) && S.easyAll.has(id) && !S.easy.has(id); +} +// The pill that says so, on the game's page (under its name, and by Game Executable in Manage), so +// a player who skipped Easy Setup knows why the launcher doesn't ask for their copy. +function setUpByYouPill(id) { + if (!setUpByYou(id)) return ''; + const ownTip = t('You set up this game yourself, not RecompLauncher. Play starts the executable you picked, as it is. The launcher only installs its updates and backs up and syncs its saves.'); + const skipTip = t('You set up this game yourself, not RecompLauncher: Easy Setup is skipped for it. The launcher only starts it, installs its updates and backs up and syncs its saves.'); + const tip = selfManaged(id) ? ownTip : skipTip; + return `${esc(t('Set Up by You'))}`; } // The program's full path (it's kept relative to the game's folder when it's inside it). function exePath(inst) { @@ -6817,7 +6829,7 @@ function programRow(id, inst) { const box = path ? `
${esc(path)}
` : `
${esc(t('Not found. Pick it so Play knows what to start.'))}
`; const hasSwitch = easy && !(S.settings.ui || {}).easy_skip_all; const back = mine && !hasSwitch ? `` : ''; - return `
${esc(t('Game Executable'))}${selfManagedPill(id)}${esc(sub)} + return `
${esc(t('Game Executable'))}${setUpByYouPill(id)}${esc(sub)}
${box}${back}
`; } // Skip Easy Setup for one game, or Easy Setup on for it again. Installed, it's the game's mode: diff --git a/ui/i18n/ar.json b/ui/i18n/ar.json index 5716f974..0522aa4f 100644 --- a/ui/i18n/ar.json +++ b/ui/i18n/ar.json @@ -1139,7 +1139,7 @@ "Select": "تحديد", "Select a file": "تحديد ملف", "Select and back": "الاختيار والرجوع", - "Self-Managed": "تديره بنفسك", + "Set Up by You": "أعددتها بنفسك", "Send": "إرسال", "Send another": "إرسال آخر", "Send feedback": "إرسال ملاحظات", @@ -1588,7 +1588,8 @@ "You insert it after it installs, and the launcher sets the game up.": "تضع القرص بعد التثبيت، وسيعد المشغل اللعبة.", "You left the beta.": "لقد غادرت النسخة التجريبية.", "You left the beta. Going back to the release.": "لقد غادرت النسخة التجريبية. جارٍ العودة إلى الإصدار العادي.", - "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "أنت من يدير هذا التثبيت. يشغّل «تشغيل» الملف التنفيذي الذي اخترته كما هو، دون الإعداد السهل أو خطوات إعداد المشغّل.", + "You set up this game yourself, not RecompLauncher. Play starts the executable you picked, as it is. The launcher only installs its updates and backs up and syncs its saves.": "أنت من أعدّ هذه اللعبة بنفسك، لا RecompLauncher. يشغّل «تشغيل» الملف التنفيذي الذي اخترته كما هو. يقتصر دور المشغّل على تثبيت تحديثاتها ونسخ ملفات حفظها احتياطيًا ومزامنتها.", + "You set up this game yourself, not RecompLauncher: Easy Setup is skipped for it. The launcher only starts it, installs its updates and backs up and syncs its saves.": "أنت من أعدّ هذه اللعبة بنفسك، لا RecompLauncher: الإعداد السهل متخطّى لها. يقتصر دور المشغّل على تشغيلها وتثبيت تحديثاتها ونسخ ملفات حفظها احتياطيًا ومزامنتها.", "You only have one library. Add a folder on another drive to move it there.": "لديك مكتبة واحدة فقط. أضف مجلدًا على محرك أقراص آخر لنقلها إليه.", "You picked this folder": "اخترت هذا المجلد", "You said no.": "لقد رفضت.", diff --git a/ui/i18n/de.json b/ui/i18n/de.json index 0ddf3dfe..be990276 100644 --- a/ui/i18n/de.json +++ b/ui/i18n/de.json @@ -1139,7 +1139,7 @@ "Select": "Auswählen", "Select a file": "Datei auswählen", "Select and back": "Auswählen und zurück", - "Self-Managed": "Selbst verwaltet", + "Set Up by You": "Von dir eingerichtet", "Send": "Senden", "Send another": "Noch eins senden", "Send feedback": "Feedback senden", @@ -1588,7 +1588,8 @@ "You insert it after it installs, and the launcher sets the game up.": "Du legst es nach der Installation ein, und der Launcher richtet das Spiel ein.", "You left the beta.": "Du hast die Beta verlassen.", "You left the beta. Going back to the release.": "Du hast die Beta verlassen. Es geht zurück zum Release.", - "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Du verwaltest diese Installation. „Spielen“ startet die ausführbare Datei, die du gewählt hast, so wie sie ist, ohne einfache Einrichtung oder die Einrichtungsschritte des Launchers.", + "You set up this game yourself, not RecompLauncher. Play starts the executable you picked, as it is. The launcher only installs its updates and backs up and syncs its saves.": "Du hast dieses Spiel selbst eingerichtet, nicht RecompLauncher. „Spielen“ startet die ausführbare Datei, die du gewählt hast, so wie sie ist. Der Launcher installiert nur seine Updates und sichert und synchronisiert seine Spielstände.", + "You set up this game yourself, not RecompLauncher: Easy Setup is skipped for it. The launcher only starts it, installs its updates and backs up and syncs its saves.": "Du hast dieses Spiel selbst eingerichtet, nicht RecompLauncher: Die einfache Einrichtung wird dafür übersprungen. Der Launcher startet es nur, installiert seine Updates und sichert und synchronisiert seine Spielstände.", "You only have one library. Add a folder on another drive to move it there.": "Du hast nur eine Bibliothek. Füge einen Ordner auf einem anderen Laufwerk hinzu, um es dorthin zu verschieben.", "You picked this folder": "Diesen Ordner hast du ausgewählt", "You said no.": "Du hast abgelehnt.", diff --git a/ui/i18n/es-419.json b/ui/i18n/es-419.json index 13c1bac6..900a36b7 100644 --- a/ui/i18n/es-419.json +++ b/ui/i18n/es-419.json @@ -1128,7 +1128,7 @@ "Select": "Seleccionar", "Select a file": "Selecciona un archivo", "Select and back": "Elegir y volver", - "Self-Managed": "Autogestionado", + "Set Up by You": "Configurado por ti", "Send": "Enviar", "Send another": "Enviar otro", "Send feedback": "Enviar comentarios", @@ -1577,7 +1577,8 @@ "You insert it after it installs, and the launcher sets the game up.": "La insertas después de instalarlo y el lanzador configura el juego.", "You left the beta.": "Saliste de la beta.", "You left the beta. Going back to the release.": "Saliste de la beta. Volviendo a la versión normal.", - "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Tú gestionas esta instalación. Jugar inicia el ejecutable que elegiste, tal cual, sin la configuración fácil ni los pasos de configuración del launcher.", + "You set up this game yourself, not RecompLauncher. Play starts the executable you picked, as it is. The launcher only installs its updates and backs up and syncs its saves.": "Tú configuraste este juego, no RecompLauncher. Jugar inicia el ejecutable que elegiste, tal cual. El launcher solo instala sus actualizaciones y respalda y sincroniza sus partidas.", + "You set up this game yourself, not RecompLauncher: Easy Setup is skipped for it. The launcher only starts it, installs its updates and backs up and syncs its saves.": "Tú configuraste este juego, no RecompLauncher: la configuración fácil está omitida para él. El launcher solo lo inicia, instala sus actualizaciones y respalda y sincroniza sus partidas.", "You only have one library. Add a folder on another drive to move it there.": "Solo tienes una biblioteca. Agrega una carpeta en otra unidad para moverlo ahí.", "You picked this folder": "Elegiste esta carpeta", "You said no.": "Dijiste que no.", diff --git a/ui/i18n/es.json b/ui/i18n/es.json index 22a3edbf..cce3ad77 100644 --- a/ui/i18n/es.json +++ b/ui/i18n/es.json @@ -1139,7 +1139,7 @@ "Select": "Seleccionar", "Select a file": "Selecciona un archivo", "Select and back": "Elegir y volver", - "Self-Managed": "Autogestionado", + "Set Up by You": "Configurado por ti", "Send": "Enviar", "Send another": "Enviar otro", "Send feedback": "Enviar comentarios", @@ -1588,7 +1588,8 @@ "You insert it after it installs, and the launcher sets the game up.": "La insertas después de instalarlo y el lanzador configura el juego.", "You left the beta.": "Has salido de la beta.", "You left the beta. Going back to the release.": "Has salido de la beta. Volviendo a la versión normal.", - "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Tú gestionas esta instalación. Jugar inicia el ejecutable que elegiste, tal cual, sin la configuración fácil ni los pasos de configuración del launcher.", + "You set up this game yourself, not RecompLauncher. Play starts the executable you picked, as it is. The launcher only installs its updates and backs up and syncs its saves.": "Tú configuraste este juego, no RecompLauncher. Jugar inicia el ejecutable que elegiste, tal cual. El launcher solo instala sus actualizaciones y respalda y sincroniza sus partidas.", + "You set up this game yourself, not RecompLauncher: Easy Setup is skipped for it. The launcher only starts it, installs its updates and backs up and syncs its saves.": "Tú configuraste este juego, no RecompLauncher: la configuración fácil está omitida para él. El launcher solo lo inicia, instala sus actualizaciones y respalda y sincroniza sus partidas.", "You only have one library. Add a folder on another drive to move it there.": "Solo tienes una biblioteca. Añade una carpeta en otra unidad para moverlo allí.", "You picked this folder": "Elegiste esta carpeta", "You said no.": "Dijiste que no.", diff --git a/ui/i18n/fr-CA.json b/ui/i18n/fr-CA.json index 8b503087..c115c707 100644 --- a/ui/i18n/fr-CA.json +++ b/ui/i18n/fr-CA.json @@ -199,7 +199,7 @@ "See It": "Le voir", "See how you stack up against other players, game by game.": "Voyez où vous vous situez face aux autres joueurs, jeu par jeu.", "See the games in your Library": "Voir les jeux de votre bibliothèque", - "Self-Managed": "Autogéré", + "Set Up by You": "Configuré par vous", "Series": "Série", "Set Game Executable": "Définir l'exécutable du jeu", "Set Game Executable turns off Easy Setup for {name}. Play then starts just the file you pick, as it is, and you manage this install.": "Définir l'exécutable du jeu désactive la configuration facile pour {name}. Jouer lance ensuite seulement le fichier que vous choisissez, tel quel, et vous gérez cette installation.", @@ -297,7 +297,8 @@ "Wide": "Large", "Windows couldn't load a file it needs: a DLL that's missing or too old. Install the latest Microsoft Visual C++ Redistributable (x64), keep Windows up to date, then play again.": "Windows n’a pas pu charger un fichier dont il a besoin : une DLL manquante ou trop ancienne. Installez le dernier Microsoft Visual C++ Redistributable (x64), gardez Windows à jour, puis rejouez.", "You didn't allow {site}.": "Vous n'avez pas autorisé {site}.", - "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Vous gérez cette installation. Jouer lance l'exécutable que vous avez choisi, tel quel, sans la configuration facile ni les étapes de configuration du lanceur.", + "You set up this game yourself, not RecompLauncher. Play starts the executable you picked, as it is. The launcher only installs its updates and backs up and syncs its saves.": "Vous avez configuré ce jeu vous-même, pas RecompLauncher. Jouer lance l'exécutable que vous avez choisi, tel quel. Le lanceur ne fait qu'installer ses mises à jour, et copier et synchroniser ses sauvegardes.", + "You set up this game yourself, not RecompLauncher: Easy Setup is skipped for it. The launcher only starts it, installs its updates and backs up and syncs its saves.": "Vous avez configuré ce jeu vous-même, pas RecompLauncher : la configuration facile est ignorée pour lui. Le lanceur ne fait que le lancer, installer ses mises à jour, et copier et synchroniser ses sauvegardes.", "You picked this folder": "Vous avez choisi ce dossier", "You said no.": "Vous avez refusé.", "You're all set. Your achievements will be tied to your account.": "Tout est prêt. Vos succès seront liés à votre compte.", diff --git a/ui/i18n/fr.json b/ui/i18n/fr.json index 948d1556..259e3d56 100644 --- a/ui/i18n/fr.json +++ b/ui/i18n/fr.json @@ -1139,7 +1139,7 @@ "Select": "Sélectionner", "Select a file": "Sélectionner un fichier", "Select and back": "Choisir et retour", - "Self-Managed": "Autogéré", + "Set Up by You": "Configuré par vous", "Send": "Envoyer", "Send another": "En envoyer un autre", "Send feedback": "Envoyer un avis", @@ -1588,7 +1588,8 @@ "You insert it after it installs, and the launcher sets the game up.": "Vous l'insérez après l'installation, et le lanceur configure le jeu.", "You left the beta.": "Vous avez quitté la bêta.", "You left the beta. Going back to the release.": "Vous avez quitté la bêta. Retour à la version normale.", - "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Vous gérez cette installation. Jouer lance l'exécutable que vous avez choisi, tel quel, sans la configuration facile ni les étapes de configuration du lanceur.", + "You set up this game yourself, not RecompLauncher. Play starts the executable you picked, as it is. The launcher only installs its updates and backs up and syncs its saves.": "Vous avez configuré ce jeu vous-même, pas RecompLauncher. Jouer lance l'exécutable que vous avez choisi, tel quel. Le lanceur ne fait qu'installer ses mises à jour, et copier et synchroniser ses sauvegardes.", + "You set up this game yourself, not RecompLauncher: Easy Setup is skipped for it. The launcher only starts it, installs its updates and backs up and syncs its saves.": "Vous avez configuré ce jeu vous-même, pas RecompLauncher : la configuration facile est ignorée pour lui. Le lanceur ne fait que le lancer, installer ses mises à jour, et copier et synchroniser ses sauvegardes.", "You only have one library. Add a folder on another drive to move it there.": "Vous n'avez qu'une seule bibliothèque. Ajoutez un dossier sur un autre lecteur pour y déplacer le jeu.", "You picked this folder": "Vous avez choisi ce dossier", "You said no.": "Vous avez refusé.", diff --git a/ui/i18n/id.json b/ui/i18n/id.json index 7adabc86..8cbf8e5a 100644 --- a/ui/i18n/id.json +++ b/ui/i18n/id.json @@ -1139,7 +1139,7 @@ "Select": "Pilih", "Select a file": "Pilih file", "Select and back": "Pilih dan kembali", - "Self-Managed": "Dikelola sendiri", + "Set Up by You": "Disiapkan olehmu", "Send": "Kirim", "Send another": "Kirim lagi", "Send feedback": "Kirim masukan", @@ -1588,7 +1588,8 @@ "You insert it after it installs, and the launcher sets the game up.": "Kamu memasukkannya setelah terpasang, dan launcher menyiapkan game-nya.", "You left the beta.": "Kamu sudah keluar dari beta.", "You left the beta. Going back to the release.": "Kamu sudah keluar dari beta. Kembali ke rilis.", - "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Kamu yang mengelola instalasi ini. Main menjalankan file eksekusi yang kamu pilih apa adanya, tanpa penyiapan mudah atau langkah penyiapan launcher.", + "You set up this game yourself, not RecompLauncher. Play starts the executable you picked, as it is. The launcher only installs its updates and backs up and syncs its saves.": "Kamu yang menyiapkan game ini sendiri, bukan RecompLauncher. Main menjalankan file eksekusi yang kamu pilih apa adanya. Launcher hanya memasang pembaruannya serta mencadangkan dan menyinkronkan save-nya.", + "You set up this game yourself, not RecompLauncher: Easy Setup is skipped for it. The launcher only starts it, installs its updates and backs up and syncs its saves.": "Kamu yang menyiapkan game ini sendiri, bukan RecompLauncher: penyiapan mudah dilewati untuk game ini. Launcher hanya menjalankannya, memasang pembaruannya, serta mencadangkan dan menyinkronkan save-nya.", "You only have one library. Add a folder on another drive to move it there.": "Kamu hanya punya satu pustaka. Tambahkan folder di drive lain untuk memindahkannya ke sana.", "You picked this folder": "Kamu memilih folder ini", "You said no.": "Kamu menolak.", diff --git a/ui/i18n/it.json b/ui/i18n/it.json index 8a5f3c60..b4df63eb 100644 --- a/ui/i18n/it.json +++ b/ui/i18n/it.json @@ -1139,7 +1139,7 @@ "Select": "Seleziona", "Select a file": "Seleziona un file", "Select and back": "Scegli e indietro", - "Self-Managed": "Gestito da te", + "Set Up by You": "Configurato da te", "Send": "Invia", "Send another": "Invia un altro", "Send feedback": "Invia feedback", @@ -1588,7 +1588,8 @@ "You insert it after it installs, and the launcher sets the game up.": "La inserisci dopo l'installazione e il launcher configura il gioco.", "You left the beta.": "Hai lasciato la beta.", "You left the beta. Going back to the release.": "Hai lasciato la beta. Ritorno alla release.", - "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Gestisci tu questa installazione. Gioca avvia l'eseguibile che hai scelto così com'è, senza la configurazione facile né i passaggi di configurazione del launcher.", + "You set up this game yourself, not RecompLauncher. Play starts the executable you picked, as it is. The launcher only installs its updates and backs up and syncs its saves.": "Hai configurato tu questo gioco, non RecompLauncher. Gioca avvia l'eseguibile che hai scelto così com'è. Il launcher si limita a installarne gli aggiornamenti e a fare il backup e la sincronizzazione dei suoi salvataggi.", + "You set up this game yourself, not RecompLauncher: Easy Setup is skipped for it. The launcher only starts it, installs its updates and backs up and syncs its saves.": "Hai configurato tu questo gioco, non RecompLauncher: la configurazione facile è saltata. Il launcher si limita ad avviarlo, installarne gli aggiornamenti e fare il backup e la sincronizzazione dei suoi salvataggi.", "You only have one library. Add a folder on another drive to move it there.": "Hai una sola libreria. Aggiungi una cartella su un'altra unità per spostarci il gioco.", "You picked this folder": "Hai scelto questa cartella", "You said no.": "Hai rifiutato.", diff --git a/ui/i18n/ja.json b/ui/i18n/ja.json index 9a0d00ac..d43892e7 100644 --- a/ui/i18n/ja.json +++ b/ui/i18n/ja.json @@ -1139,7 +1139,7 @@ "Select": "選択", "Select a file": "ファイルを選択", "Select and back": "決定と戻る", - "Self-Managed": "自分で管理", + "Set Up by You": "自分でセットアップ", "Send": "送信", "Send another": "もう一件送信", "Send feedback": "フィードバックを送信", @@ -1588,7 +1588,8 @@ "You insert it after it installs, and the launcher sets the game up.": "インストール後に読み込むと、ランチャーがゲームをセットアップします。", "You left the beta.": "ベータ版をやめました。", "You left the beta. Going back to the release.": "ベータ版をやめました。正式リリースに戻しています。", - "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "このインストールはあなたが管理しています。「プレイ」は選んだ実行ファイルをそのまま起動し、かんたんセットアップやランチャーのセットアップ手順は行いません。", + "You set up this game yourself, not RecompLauncher. Play starts the executable you picked, as it is. The launcher only installs its updates and backs up and syncs its saves.": "このゲームはRecompLauncherではなく、あなたがセットアップしています。「プレイ」は選んだ実行ファイルをそのまま起動します。ランチャーが行うのは、アップデートのインストールとセーブデータのバックアップ・同期だけです。", + "You set up this game yourself, not RecompLauncher: Easy Setup is skipped for it. The launcher only starts it, installs its updates and backs up and syncs its saves.": "このゲームはRecompLauncherではなく、あなたがセットアップしています。かんたんセットアップはスキップされています。ランチャーが行うのは、起動、アップデートのインストール、セーブデータのバックアップ・同期だけです。", "You only have one library. Add a folder on another drive to move it there.": "ライブラリは 1 つだけです。移動するには、別のドライブにフォルダーを追加してください。", "You picked this folder": "このフォルダーを選択しました", "You said no.": "拒否しました。", diff --git a/ui/i18n/ko.json b/ui/i18n/ko.json index 00f89141..ba3011b6 100644 --- a/ui/i18n/ko.json +++ b/ui/i18n/ko.json @@ -1139,7 +1139,7 @@ "Select": "선택", "Select a file": "파일 선택", "Select and back": "선택과 뒤로", - "Self-Managed": "직접 관리", + "Set Up by You": "직접 설정함", "Send": "보내기", "Send another": "하나 더 보내기", "Send feedback": "피드백 보내기", @@ -1588,7 +1588,8 @@ "You insert it after it installs, and the launcher sets the game up.": "설치한 뒤에 넣으면 런처가 게임을 설정해 줍니다.", "You left the beta.": "베타에서 나갔습니다.", "You left the beta. Going back to the release.": "베타에서 나갔습니다. 정식 릴리스로 돌아가는 중입니다.", - "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "이 설치는 직접 관리합니다. 플레이를 누르면 고른 실행 파일을 그대로 실행하며, 간편 설정이나 런처의 설정 단계는 거치지 않습니다.", + "You set up this game yourself, not RecompLauncher. Play starts the executable you picked, as it is. The launcher only installs its updates and backs up and syncs its saves.": "이 게임은 RecompLauncher가 아니라 직접 설정했습니다. 플레이를 누르면 고른 실행 파일을 그대로 실행합니다. 런처는 업데이트 설치와 저장 데이터 백업 및 동기화만 합니다.", + "You set up this game yourself, not RecompLauncher: Easy Setup is skipped for it. The launcher only starts it, installs its updates and backs up and syncs its saves.": "이 게임은 RecompLauncher가 아니라 직접 설정했습니다. 간편 설정을 건너뛰었습니다. 런처는 게임 실행, 업데이트 설치, 저장 데이터 백업 및 동기화만 합니다.", "You only have one library. Add a folder on another drive to move it there.": "라이브러리가 하나뿐입니다. 옮기려면 다른 드라이브에 폴더를 추가하세요.", "You picked this folder": "이 폴더를 선택했습니다", "You said no.": "거부했습니다.", diff --git a/ui/i18n/nl.json b/ui/i18n/nl.json index 59e05af9..3c9ac00c 100644 --- a/ui/i18n/nl.json +++ b/ui/i18n/nl.json @@ -1139,7 +1139,7 @@ "Select": "Selecteren", "Select a file": "Selecteer een bestand", "Select and back": "Kiezen en terug", - "Self-Managed": "Zelf beheerd", + "Set Up by You": "Door jou ingesteld", "Send": "Versturen", "Send another": "Nog een versturen", "Send feedback": "Feedback versturen", @@ -1588,7 +1588,8 @@ "You insert it after it installs, and the launcher sets the game up.": "Je plaatst hem na de installatie, en de launcher stelt de game in.", "You left the beta.": "Je hebt de bèta verlaten.", "You left the beta. Going back to the release.": "Je hebt de bèta verlaten. Terug naar de release.", - "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Je beheert deze installatie zelf. Spelen start het uitvoerbare bestand dat je koos, zoals het is, zonder eenvoudig instellen of de instelstappen van de launcher.", + "You set up this game yourself, not RecompLauncher. Play starts the executable you picked, as it is. The launcher only installs its updates and backs up and syncs its saves.": "Je hebt deze game zelf ingesteld, niet RecompLauncher. Spelen start het uitvoerbare bestand dat je koos, zoals het is. De launcher installeert alleen de updates en maakt back-ups van de opgeslagen games en synchroniseert ze.", + "You set up this game yourself, not RecompLauncher: Easy Setup is skipped for it. The launcher only starts it, installs its updates and backs up and syncs its saves.": "Je hebt deze game zelf ingesteld, niet RecompLauncher: eenvoudig instellen is overgeslagen. De launcher start de game alleen, installeert de updates en maakt back-ups van de opgeslagen games en synchroniseert ze.", "You only have one library. Add a folder on another drive to move it there.": "Je hebt maar één bibliotheek. Voeg een map op een andere schijf toe om hem daarheen te verplaatsen.", "You picked this folder": "Je hebt deze map gekozen", "You said no.": "Je hebt nee gezegd.", diff --git a/ui/i18n/pl.json b/ui/i18n/pl.json index fcdb6283..648e86f2 100644 --- a/ui/i18n/pl.json +++ b/ui/i18n/pl.json @@ -1139,7 +1139,7 @@ "Select": "Wybierz", "Select a file": "Wybierz plik", "Select and back": "Wybór i powrót", - "Self-Managed": "Zarządzane samodzielnie", + "Set Up by You": "Skonfigurowane przez ciebie", "Send": "Wyślij", "Send another": "Wyślij kolejne", "Send feedback": "Wyślij opinię", @@ -1588,7 +1588,8 @@ "You insert it after it installs, and the launcher sets the game up.": "Wkładasz ją po instalacji, a launcher konfiguruje grę.", "You left the beta.": "Nie jesteś już w becie.", "You left the beta. Going back to the release.": "Nie jesteś już w becie. Powrót do zwykłego wydania.", - "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Sam zarządzasz tą instalacją. Graj uruchamia wybrany plik wykonywalny bez zmian, bez łatwej konfiguracji i kroków konfiguracji launchera.", + "You set up this game yourself, not RecompLauncher. Play starts the executable you picked, as it is. The launcher only installs its updates and backs up and syncs its saves.": "Tę grę skonfigurowałeś sam, nie RecompLauncher. Graj uruchamia wybrany plik wykonywalny bez zmian. Launcher tylko instaluje jej aktualizacje oraz tworzy kopie zapasowe i synchronizuje jej zapisy.", + "You set up this game yourself, not RecompLauncher: Easy Setup is skipped for it. The launcher only starts it, installs its updates and backs up and syncs its saves.": "Tę grę skonfigurowałeś sam, nie RecompLauncher: łatwa konfiguracja jest dla niej pominięta. Launcher tylko ją uruchamia, instaluje jej aktualizacje oraz tworzy kopie zapasowe i synchronizuje jej zapisy.", "You only have one library. Add a folder on another drive to move it there.": "Masz tylko jedną bibliotekę. Dodaj folder na innym dysku, aby ją tam przenieść.", "You picked this folder": "Ten folder został wybrany przez Ciebie", "You said no.": "Odmówiono.", diff --git a/ui/i18n/pt-BR.json b/ui/i18n/pt-BR.json index 6634b00b..6d90f0bd 100644 --- a/ui/i18n/pt-BR.json +++ b/ui/i18n/pt-BR.json @@ -1128,7 +1128,7 @@ "Select": "Selecionar", "Select a file": "Selecione um arquivo", "Select and back": "Escolher e voltar", - "Self-Managed": "Gerenciado por você", + "Set Up by You": "Configurado por você", "Send": "Enviar", "Send another": "Enviar outro", "Send feedback": "Enviar feedback", @@ -1577,7 +1577,8 @@ "You insert it after it installs, and the launcher sets the game up.": "Você insere depois da instalação, e o launcher configura o jogo.", "You left the beta.": "Você saiu do beta.", "You left the beta. Going back to the release.": "Você saiu do beta. Voltando para a versão normal.", - "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Você gerencia esta instalação. Jogar inicia o executável que você escolheu, do jeito que está, sem a configuração fácil nem as etapas de configuração do launcher.", + "You set up this game yourself, not RecompLauncher. Play starts the executable you picked, as it is. The launcher only installs its updates and backs up and syncs its saves.": "Você configurou este jogo, não o RecompLauncher. Jogar inicia o executável que você escolheu, do jeito que está. O launcher só instala as atualizações e faz backup e sincroniza os dados salvos dele.", + "You set up this game yourself, not RecompLauncher: Easy Setup is skipped for it. The launcher only starts it, installs its updates and backs up and syncs its saves.": "Você configurou este jogo, não o RecompLauncher: a configuração fácil foi pulada para ele. O launcher só o inicia, instala as atualizações e faz backup e sincroniza os dados salvos dele.", "You only have one library. Add a folder on another drive to move it there.": "Você só tem uma biblioteca. Adicione uma pasta em outra unidade para mover o jogo para lá.", "You picked this folder": "Você escolheu esta pasta", "You said no.": "Você recusou.", diff --git a/ui/i18n/pt.json b/ui/i18n/pt.json index 1242fd42..9956f53b 100644 --- a/ui/i18n/pt.json +++ b/ui/i18n/pt.json @@ -1139,7 +1139,7 @@ "Select": "Selecionar", "Select a file": "Seleciona um ficheiro", "Select and back": "Escolher e voltar", - "Self-Managed": "Gerido por ti", + "Set Up by You": "Configurado por ti", "Send": "Enviar", "Send another": "Enviar outro", "Send feedback": "Enviar feedback", @@ -1588,7 +1588,8 @@ "You insert it after it installs, and the launcher sets the game up.": "Inseres a cópia depois da instalação e o launcher configura o jogo.", "You left the beta.": "Saíste da beta.", "You left the beta. Going back to the release.": "Saíste da beta. A voltar à versão normal.", - "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "És tu que geres esta instalação. Jogar inicia o executável que escolheste, tal como está, sem a configuração fácil nem os passos de configuração do launcher.", + "You set up this game yourself, not RecompLauncher. Play starts the executable you picked, as it is. The launcher only installs its updates and backs up and syncs its saves.": "Foste tu que configuraste este jogo, não o RecompLauncher. Jogar inicia o executável que escolheste, tal como está. O launcher só instala as atualizações e faz cópia de segurança e sincroniza os dados guardados dele.", + "You set up this game yourself, not RecompLauncher: Easy Setup is skipped for it. The launcher only starts it, installs its updates and backs up and syncs its saves.": "Foste tu que configuraste este jogo, não o RecompLauncher: a configuração fácil foi ignorada para ele. O launcher só o inicia, instala as atualizações e faz cópia de segurança e sincroniza os dados guardados dele.", "You only have one library. Add a folder on another drive to move it there.": "Só tens uma biblioteca. Adiciona uma pasta noutra unidade para o mover para lá.", "You picked this folder": "Escolheste esta pasta", "You said no.": "Disseste que não.", diff --git a/ui/i18n/ru.json b/ui/i18n/ru.json index 9a5f21bf..8be474f8 100644 --- a/ui/i18n/ru.json +++ b/ui/i18n/ru.json @@ -1139,7 +1139,7 @@ "Select": "Выбрать", "Select a file": "Выберите файл", "Select and back": "Выбор и назад", - "Self-Managed": "Управляете вы", + "Set Up by You": "Настроено вами", "Send": "Отправить", "Send another": "Отправить ещё", "Send feedback": "Отправить отзыв", @@ -1588,7 +1588,8 @@ "You insert it after it installs, and the launcher sets the game up.": "Вы вставляете её после установки, и лаунчер настраивает игру.", "You left the beta.": "Вы вышли из беты.", "You left the beta. Going back to the release.": "Вы вышли из беты. Возврат к релизу.", - "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Этой установкой управляете вы. «Играть» запускает выбранный вами исполняемый файл как есть, без простой настройки и шагов настройки лаунчера.", + "You set up this game yourself, not RecompLauncher. Play starts the executable you picked, as it is. The launcher only installs its updates and backs up and syncs its saves.": "Эту игру настроили вы, а не RecompLauncher. «Играть» запускает выбранный вами исполняемый файл как есть. Лаунчер только устанавливает её обновления, а также делает резервные копии её сохранений и синхронизирует их.", + "You set up this game yourself, not RecompLauncher: Easy Setup is skipped for it. The launcher only starts it, installs its updates and backs up and syncs its saves.": "Эту игру настроили вы, а не RecompLauncher: простая настройка для неё пропущена. Лаунчер только запускает её, устанавливает её обновления, а также делает резервные копии её сохранений и синхронизирует их.", "You only have one library. Add a folder on another drive to move it there.": "У вас только одна библиотека. Добавьте папку на другом диске, чтобы перенести игру туда.", "You picked this folder": "Вы выбрали эту папку", "You said no.": "Вы отказали.", diff --git a/ui/i18n/th.json b/ui/i18n/th.json index f0ed3291..7f20e5dc 100644 --- a/ui/i18n/th.json +++ b/ui/i18n/th.json @@ -1139,7 +1139,7 @@ "Select": "เลือก", "Select a file": "เลือกไฟล์", "Select and back": "เลือกและย้อนกลับ", - "Self-Managed": "จัดการเอง", + "Set Up by You": "ตั้งค่าเอง", "Send": "ส่ง", "Send another": "ส่งอีก", "Send feedback": "ส่งความคิดเห็น", @@ -1588,7 +1588,8 @@ "You insert it after it installs, and the launcher sets the game up.": "คุณใส่แผ่นหลังติดตั้งเสร็จ แล้วตัวเปิดเกมจะตั้งค่าเกมให้", "You left the beta.": "คุณออกจากเบต้าแล้ว", "You left the beta. Going back to the release.": "คุณออกจากเบต้าแล้ว กำลังกลับไปใช้รุ่นปกติ", - "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "คุณเป็นผู้จัดการการติดตั้งนี้ ปุ่ม เล่น จะเปิดไฟล์โปรแกรมที่คุณเลือกตามที่เป็นอยู่ โดยไม่ใช้การตั้งค่าง่ายหรือขั้นตอนการตั้งค่าของตัวเปิดเกม", + "You set up this game yourself, not RecompLauncher. Play starts the executable you picked, as it is. The launcher only installs its updates and backs up and syncs its saves.": "คุณตั้งค่าเกมนี้เอง ไม่ใช่ RecompLauncher ปุ่ม เล่น จะเปิดไฟล์โปรแกรมที่คุณเลือกตามที่เป็นอยู่ ตัวเปิดเกมทำเพียงติดตั้งอัปเดต สำรองข้อมูล และซิงค์เซฟของเกมเท่านั้น", + "You set up this game yourself, not RecompLauncher: Easy Setup is skipped for it. The launcher only starts it, installs its updates and backs up and syncs its saves.": "คุณตั้งค่าเกมนี้เอง ไม่ใช่ RecompLauncher: ข้ามการตั้งค่าง่ายสำหรับเกมนี้ ตัวเปิดเกมทำเพียงเปิดเกม ติดตั้งอัปเดต สำรองข้อมูล และซิงค์เซฟของเกมเท่านั้น", "You only have one library. Add a folder on another drive to move it there.": "คุณมีคลังเดียว เพิ่มโฟลเดอร์ในไดรฟ์อื่นเพื่อย้ายเกมไปที่นั่น", "You picked this folder": "คุณเลือกโฟลเดอร์นี้", "You said no.": "คุณปฏิเสธแล้ว", diff --git a/ui/i18n/tr.json b/ui/i18n/tr.json index 7d4eac4e..3332c464 100644 --- a/ui/i18n/tr.json +++ b/ui/i18n/tr.json @@ -1139,7 +1139,7 @@ "Select": "Seç", "Select a file": "Bir dosya seçin", "Select and back": "Seç ve geri", - "Self-Managed": "Kendiniz yönetiyorsunuz", + "Set Up by You": "Sizin kurduğunuz", "Send": "Gönder", "Send another": "Bir tane daha gönder", "Send feedback": "Geri bildirim gönder", @@ -1588,7 +1588,8 @@ "You insert it after it installs, and the launcher sets the game up.": "Yüklendikten sonra takarsınız ve başlatıcı oyunu kurar.", "You left the beta.": "Betadan ayrıldınız.", "You left the beta. Going back to the release.": "Betadan ayrıldınız. Normal sürüme dönülüyor.", - "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Bu kurulumu siz yönetiyorsunuz. Oyna, seçtiğiniz çalıştırılabilir dosyayı olduğu gibi başlatır; kolay kurulum ve başlatıcının kurulum adımları atlanır.", + "You set up this game yourself, not RecompLauncher. Play starts the executable you picked, as it is. The launcher only installs its updates and backs up and syncs its saves.": "Bu oyunu RecompLauncher değil, siz kurdunuz. Oyna, seçtiğiniz çalıştırılabilir dosyayı olduğu gibi başlatır. Başlatıcı yalnızca güncellemelerini yükler, kayıtlarını yedekler ve eşitler.", + "You set up this game yourself, not RecompLauncher: Easy Setup is skipped for it. The launcher only starts it, installs its updates and backs up and syncs its saves.": "Bu oyunu RecompLauncher değil, siz kurdunuz: kolay kurulum bu oyun için atlanıyor. Başlatıcı yalnızca oyunu başlatır, güncellemelerini yükler, kayıtlarını yedekler ve eşitler.", "You only have one library. Add a folder on another drive to move it there.": "Yalnızca bir kitaplığınız var. Oraya taşımak için başka bir sürücüde klasör ekleyin.", "You picked this folder": "Bu klasörü sen seçtin", "You said no.": "Hayır dediniz.", diff --git a/ui/i18n/uk.json b/ui/i18n/uk.json index ab8c44e7..87a65df6 100644 --- a/ui/i18n/uk.json +++ b/ui/i18n/uk.json @@ -1139,7 +1139,7 @@ "Select": "Вибрати", "Select a file": "Вибери файл", "Select and back": "Вибір і назад", - "Self-Managed": "Керуєте ви", + "Set Up by You": "Налаштовано вами", "Send": "Надіслати", "Send another": "Надіслати ще", "Send feedback": "Надіслати відгук", @@ -1588,7 +1588,8 @@ "You insert it after it installs, and the launcher sets the game up.": "Ти вставляєш її після встановлення, і лаунчер налаштовує гру.", "You left the beta.": "Ти більше не в беті.", "You left the beta. Going back to the release.": "Ти більше не в беті. Повертаємося до релізу.", - "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Цією інсталяцією керуєте ви. «Грати» запускає вибраний вами виконуваний файл як є, без простого налаштування і кроків налаштування лаунчера.", + "You set up this game yourself, not RecompLauncher. Play starts the executable you picked, as it is. The launcher only installs its updates and backs up and syncs its saves.": "Цю гру налаштували ви, а не RecompLauncher. «Грати» запускає вибраний вами виконуваний файл як є. Лаунчер лише встановлює її оновлення, а також створює резервні копії її збережень і синхронізує їх.", + "You set up this game yourself, not RecompLauncher: Easy Setup is skipped for it. The launcher only starts it, installs its updates and backs up and syncs its saves.": "Цю гру налаштували ви, а не RecompLauncher: просте налаштування для неї пропущено. Лаунчер лише запускає її, встановлює її оновлення, а також створює резервні копії її збережень і синхронізує їх.", "You only have one library. Add a folder on another drive to move it there.": "У тебе лише одна бібліотека. Додай папку на іншому диску, щоб перенести гру туди.", "You picked this folder": "Ви вибрали цю папку", "You said no.": "Відмовлено.", diff --git a/ui/i18n/vi.json b/ui/i18n/vi.json index 13004c2a..df9532a8 100644 --- a/ui/i18n/vi.json +++ b/ui/i18n/vi.json @@ -1139,7 +1139,7 @@ "Select": "Chọn", "Select a file": "Chọn một tệp", "Select and back": "Chọn và quay lại", - "Self-Managed": "Tự quản lý", + "Set Up by You": "Bạn tự thiết lập", "Send": "Gửi", "Send another": "Gửi thêm", "Send feedback": "Gửi phản hồi", @@ -1588,7 +1588,8 @@ "You insert it after it installs, and the launcher sets the game up.": "Bạn đưa đĩa vào sau khi cài đặt, và trình khởi chạy sẽ thiết lập trò chơi.", "You left the beta.": "Bạn đã rời bản beta.", "You left the beta. Going back to the release.": "Bạn đã rời bản beta. Đang quay lại bản phát hành.", - "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Bạn tự quản lý bản cài đặt này. Nút Chơi khởi chạy tệp thực thi bạn đã chọn như hiện có, không dùng thiết lập dễ dàng hay các bước thiết lập của launcher.", + "You set up this game yourself, not RecompLauncher. Play starts the executable you picked, as it is. The launcher only installs its updates and backs up and syncs its saves.": "Bạn tự thiết lập trò chơi này, không phải RecompLauncher. Nút Chơi khởi chạy tệp thực thi bạn đã chọn như hiện có. Launcher chỉ cài đặt bản cập nhật, sao lưu và đồng bộ dữ liệu lưu của trò chơi.", + "You set up this game yourself, not RecompLauncher: Easy Setup is skipped for it. The launcher only starts it, installs its updates and backs up and syncs its saves.": "Bạn tự thiết lập trò chơi này, không phải RecompLauncher: thiết lập dễ dàng được bỏ qua cho trò chơi này. Launcher chỉ khởi chạy trò chơi, cài đặt bản cập nhật, sao lưu và đồng bộ dữ liệu lưu của nó.", "You only have one library. Add a folder on another drive to move it there.": "Bạn chỉ có một thư viện. Thêm thư mục trên ổ đĩa khác để chuyển trò chơi sang đó.", "You picked this folder": "Bạn đã chọn thư mục này", "You said no.": "Bạn đã từ chối.", diff --git a/ui/i18n/zh-Hans.json b/ui/i18n/zh-Hans.json index cebe1f10..834158ce 100644 --- a/ui/i18n/zh-Hans.json +++ b/ui/i18n/zh-Hans.json @@ -1139,7 +1139,7 @@ "Select": "选择", "Select a file": "选择文件", "Select and back": "选择和返回", - "Self-Managed": "自行管理", + "Set Up by You": "由你配置", "Send": "发送", "Send another": "再发一条", "Send feedback": "发送反馈", @@ -1588,7 +1588,8 @@ "You insert it after it installs, and the launcher sets the game up.": "安装后放入你的副本,启动器就会配置好游戏。", "You left the beta.": "你已退出测试版。", "You left the beta. Going back to the release.": "你已退出测试版。正在回到正式版。", - "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "此安装由你自行管理。“开始游戏”会按原样启动你选择的可执行文件,不经过轻松配置或启动器的设置步骤。", + "You set up this game yourself, not RecompLauncher. Play starts the executable you picked, as it is. The launcher only installs its updates and backs up and syncs its saves.": "此游戏由你自行配置,而非 RecompLauncher。“开始游戏”会按原样启动你选择的可执行文件。启动器只负责安装它的更新,并备份和同步它的存档。", + "You set up this game yourself, not RecompLauncher: Easy Setup is skipped for it. The launcher only starts it, installs its updates and backs up and syncs its saves.": "此游戏由你自行配置,而非 RecompLauncher:已为它跳过轻松配置。启动器只负责启动它、安装它的更新,并备份和同步它的存档。", "You only have one library. Add a folder on another drive to move it there.": "你只有一个游戏库。添加其他驱动器上的文件夹即可把游戏移过去。", "You picked this folder": "你选择了此文件夹", "You said no.": "你已拒绝。", diff --git a/ui/i18n/zh-Hant.json b/ui/i18n/zh-Hant.json index 287076ee..8503d432 100644 --- a/ui/i18n/zh-Hant.json +++ b/ui/i18n/zh-Hant.json @@ -1139,7 +1139,7 @@ "Select": "選取", "Select a file": "選取檔案", "Select and back": "選擇和返回", - "Self-Managed": "自行管理", + "Set Up by You": "由你設定", "Send": "傳送", "Send another": "再傳一則", "Send feedback": "傳送意見回饋", @@ -1588,7 +1588,8 @@ "You insert it after it installs, and the launcher sets the game up.": "安裝後放入您的副本,啟動器就會設定好遊戲。", "You left the beta.": "您已退出測試版。", "You left the beta. Going back to the release.": "您已退出測試版。正在回到正式版。", - "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "此安裝由你自行管理。「開始遊戲」會照原樣啟動你選擇的執行檔,不經過輕鬆設定或啟動器的設定步驟。", + "You set up this game yourself, not RecompLauncher. Play starts the executable you picked, as it is. The launcher only installs its updates and backs up and syncs its saves.": "此遊戲由你自行設定,而非 RecompLauncher。「開始遊戲」會照原樣啟動你選擇的執行檔。啟動器只負責安裝它的更新,並備份和同步它的存檔。", + "You set up this game yourself, not RecompLauncher: Easy Setup is skipped for it. The launcher only starts it, installs its updates and backs up and syncs its saves.": "此遊戲由你自行設定,而非 RecompLauncher:已為它略過輕鬆設定。啟動器只負責啟動它、安裝它的更新,並備份和同步它的存檔。", "You only have one library. Add a folder on another drive to move it there.": "您只有一個收藏庫。新增其他磁碟機上的資料夾,就能把遊戲移過去。", "You picked this folder": "你選擇了這個資料夾", "You said no.": "您已拒絕。", diff --git a/ui/tv.js b/ui/tv.js index 0165e7dc..ed28da73 100644 --- a/ui/tv.js +++ b/ui/tv.js @@ -1572,7 +1572,7 @@ ${titleOf(a)} ${(() => { const to = replacedBy(a.id); return to ? `

${esc(tf('This listing was replaced by {name}', { name: to.name }))}

` : ''; })()} ${a.parent ? `

${a.menuPick ? `${esc(t('Pick the game in its menu when it starts.'))}` : ''}

` : ''} - ${a.game && !a.parent ? `

${DISC_S.replace(/14/g, '24')}${htmlIn(t('Based on {game}'), { game: `${esc(a.game)}` })}${needsSetup(a) && !setupDone(id) ? `${svg('wrench', 20)}${esc(t('Setup Required'))}` : S.easy.has(id) ? `${esc(t('Easy Setup'))}` : ''}

` : ''} + ${a.game && !a.parent ? `

${DISC_S.replace(/14/g, '24')}${htmlIn(t('Based on {game}'), { game: `${esc(a.game)}` })}${needsSetup(a) && !setupDone(id) ? `${svg('wrench', 20)}${esc(t('Setup Required'))}` : S.easy.has(id) ? `${esc(t('Easy Setup'))}` : S.library[id] && setUpByYou(id) ? `${esc(t('Set Up by You'))}` : ''}

` : ''} ${byLine} ${play?.last_played ? `

${esc(tf('{time} played · last played {when}', { time: playedFor(play), when: ago(play.last_played) }))}

` : ''} ${sbLine} From 113e0c5dee523b9954c695872aa1c2ef38f9eb6e Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 19:30:02 +0200 Subject: [PATCH 22/35] Big Picture asks Set Up by You before Easy Setup, as the desktop does --- tests/choose-program.test.cjs | 10 ++++++++-- ui/tv.js | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/choose-program.test.cjs b/tests/choose-program.test.cjs index 3f6b9577..d0d9a7bd 100644 --- a/tests/choose-program.test.cjs +++ b/tests/choose-program.test.cjs @@ -112,9 +112,15 @@ test('the pill sits under the game\'s name in place of Easy Setup, and no longer assert.match(app, /gsBox\(GS_IC\.disk, t\('On Disk'\), size \? esc\(fmtB\(size\)\) : '—'\)/); }); -test('Big Picture says Set Up by You on an installed game where it would say Easy Setup', () => { +test('a picked executable counts as Set Up by You even while Easy Setup is still on for the game', () => { + const run = new Function('S', `${['setupOf', 'selfManaged', 'setUpByYou'].map((n) => fn(app, n)).join(';\n')}; return setUpByYou;`); + const S = { setup: { g: MINE }, easyAll: new Set(['g']), easy: new Set(['g']) }; + assert.equal(run(S)('g'), true); +}); + +test('Big Picture asks Set Up by You first, as the desktop does, then Easy Setup', () => { const tv = fs.readFileSync(path.join(__dirname, '../ui/tv.js'), 'utf8'); - assert.match(tv, /: S\.easy\.has\(id\) \? `\$\{esc\(t\('Easy Setup'\)\)\}<\/span>` : S\.library\[id\] && setUpByYou\(id\) \? `\$\{esc\(t\('Set Up by You'\)\)\}<\/span>` : ''/); + assert.match(tv, /: S\.library\[id\] && setUpByYou\(id\) \? `\$\{esc\(t\('Set Up by You'\)\)\}<\/span>` : S\.easy\.has\(id\) \? `\$\{esc\(t\('Easy Setup'\)\)\}<\/span>` : ''/); }); test('Use Default lets the pick go in the core', () => { diff --git a/ui/tv.js b/ui/tv.js index ed28da73..0bcbb72b 100644 --- a/ui/tv.js +++ b/ui/tv.js @@ -1572,7 +1572,7 @@ ${titleOf(a)} ${(() => { const to = replacedBy(a.id); return to ? `

${esc(tf('This listing was replaced by {name}', { name: to.name }))}

` : ''; })()} ${a.parent ? `

${a.menuPick ? `${esc(t('Pick the game in its menu when it starts.'))}` : ''}

` : ''} - ${a.game && !a.parent ? `

${DISC_S.replace(/14/g, '24')}${htmlIn(t('Based on {game}'), { game: `${esc(a.game)}` })}${needsSetup(a) && !setupDone(id) ? `${svg('wrench', 20)}${esc(t('Setup Required'))}` : S.easy.has(id) ? `${esc(t('Easy Setup'))}` : S.library[id] && setUpByYou(id) ? `${esc(t('Set Up by You'))}` : ''}

` : ''} + ${a.game && !a.parent ? `

${DISC_S.replace(/14/g, '24')}${htmlIn(t('Based on {game}'), { game: `${esc(a.game)}` })}${needsSetup(a) && !setupDone(id) ? `${svg('wrench', 20)}${esc(t('Setup Required'))}` : S.library[id] && setUpByYou(id) ? `${esc(t('Set Up by You'))}` : S.easy.has(id) ? `${esc(t('Easy Setup'))}` : ''}

` : ''} ${byLine} ${play?.last_played ? `

${esc(tf('{time} played · last played {when}', { time: playedFor(play), when: ago(play.last_played) }))}

` : ''} ${sbLine} From 47fc7c3f0ae86cbf948ad47b419f77dfdfb275c2 Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 19:47:05 +0200 Subject: [PATCH 23/35] A game installed while Skip Easy Setup is on for every game stays the player's when it goes off --- src-tauri/src/lib.rs | 32 ++++++++++++++++++++++++++++++-- ui/app.js | 3 ++- 2 files changed, 32 insertions(+), 3 deletions(-) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 3d2e9f55..03f679fe 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -905,8 +905,10 @@ async fn do_install(app: &AppHandle, st: &App, id: &str, dir: Option, t }; { let mut l = st.lib.lock().unwrap(); - // Skip Easy Setup ticked before it was installed: from now on it's the game's own mode. - if prev.is_none() && take_skip_choice(&mut l.settings.ui, id) { + // Skip Easy Setup ticked before it was installed, or on for every game in Settings: from + // now on it's the game's own mode. A game installed under the Settings switch then stays + // the player's when the switch goes off, instead of asking for their copy. + if prev.is_none() && fresh_install_skips(&mut l.settings.ui, id) { rec.mode = library::SetupMode::Own; } l.put(id, rec); @@ -4672,6 +4674,13 @@ fn take_skip_choice(ui: &mut Value, id: &str) -> bool { list.len() != before } +/// A game being installed for the first time skips Easy Setup: its own tick (taken off the list), +/// or the Settings switch for every game. +fn fresh_install_skips(ui: &mut Value, id: &str) -> bool { + let ticked = take_skip_choice(ui, id); + ticked || easy_skipped_for_all(ui) +} + /// The player sets this game up their own way (Skip Easy Setup): its own mode once installed, or /// the tick in its menu before. A game of several in one recomp follows its recomp. fn player_sets_up(st: &App, id: &str) -> bool { @@ -11861,6 +11870,25 @@ mod easy_skip_tests { rename_id(&mut ui, "hopper", "hopper-2"); assert!(easy_skipped(&ui, "hopper-2")); } + + #[test] + fn a_game_installed_under_the_settings_switch_keeps_skipping() { + let mut ui = json!({ "easy_skip_all": true }); + assert!(fresh_install_skips(&mut ui, "hopper")); + } + + #[test] + fn a_game_installed_without_a_skip_gets_easy_setup() { + let mut ui = json!({ "easy_skip_all": false, "easy_skip": ["skyracer"] }); + assert!(!fresh_install_skips(&mut ui, "hopper")); + } + + #[test] + fn a_ticked_game_skips_and_leaves_the_list() { + let mut ui = json!({ "easy_skip": ["hopper"] }); + assert!(fresh_install_skips(&mut ui, "hopper")); + assert!(!easy_skipped(&ui, "hopper")); + } } #[cfg(test)] diff --git a/ui/app.js b/ui/app.js index f2d56a15..d5304dd5 100644 --- a/ui/app.js +++ b/ui/app.js @@ -9438,7 +9438,8 @@ async function act(el, e) { } case 'ui-toggle': // (Skip Easy Setup for every game: each game keeps its own mode under it, so turning it off - // leaves every game as it was, a game whose program the player picked included.) + // leaves every game as it was, a game whose program the player picked included. A game + // installed while it's on takes it as its own mode, so it stays the player's.) return saveUi({ [el.dataset.k]: !(S.settings.ui || {})[el.dataset.k] }); // Show Game Names: the desktop shortcuts and Steam entries already made change pictures too. case 'game-names': return saveUi({ game_names: !(S.settings.ui || {}).game_names }).then(refreshShortcutArt); From 32b193450047f446947584f18d166de891f12a4a Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 19:56:22 +0200 Subject: [PATCH 24/35] Easy Setup in Settings is for new games, and asks before it goes off --- src-tauri/src/lib.rs | 11 +++---- src-tauri/src/library.rs | 18 +++++------ src-tauri/src/library_convert.rs | 54 +++++++++++++++++++++++++++++--- tests/beta53.test.cjs | 2 +- tests/choose-program.test.cjs | 41 ++++++++++++++++++------ ui/app.js | 42 +++++++++++++++---------- ui/i18n/ar.json | 3 +- ui/i18n/de.json | 3 +- ui/i18n/es-419.json | 3 +- ui/i18n/es.json | 3 +- ui/i18n/fr.json | 3 +- ui/i18n/id.json | 3 +- ui/i18n/it.json | 3 +- ui/i18n/ja.json | 3 +- ui/i18n/ko.json | 3 +- ui/i18n/nl.json | 3 +- ui/i18n/pl.json | 3 +- ui/i18n/pt-BR.json | 3 +- ui/i18n/pt.json | 3 +- ui/i18n/ru.json | 3 +- ui/i18n/th.json | 3 +- ui/i18n/tr.json | 3 +- ui/i18n/uk.json | 3 +- ui/i18n/vi.json | 3 +- ui/i18n/zh-Hans.json | 3 +- ui/i18n/zh-Hant.json | 3 +- ui/setup-steps.js | 2 +- 27 files changed, 161 insertions(+), 69 deletions(-) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 03f679fe..9dc939ec 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -4654,8 +4654,8 @@ fn run_prepare(pr: &profile::Prepare, install: &Path, copy: Option<&Path>, extra } } -/// Skip Easy Setup for every game (the Settings switch). Each game keeps its own mode under it, so -/// turning it off again leaves every game as it was. +/// Easy Setup off for new games (the Settings switch, stored as `easy_skip_all`). A game takes it as +/// its own mode when it's installed; games already installed keep theirs, whichever way it goes. fn easy_skipped_for_all(ui: &Value) -> bool { ui.get("easy_skip_all").and_then(Value::as_bool).unwrap_or(false) } @@ -4675,20 +4675,19 @@ fn take_skip_choice(ui: &mut Value, id: &str) -> bool { } /// A game being installed for the first time skips Easy Setup: its own tick (taken off the list), -/// or the Settings switch for every game. +/// or Easy Setup off for new games in Settings. fn fresh_install_skips(ui: &mut Value, id: &str) -> bool { let ticked = take_skip_choice(ui, id); ticked || easy_skipped_for_all(ui) } /// The player sets this game up their own way (Skip Easy Setup): its own mode once installed, or -/// the tick in its menu before. A game of several in one recomp follows its recomp. +/// its tick or the Settings switch before. A game of several in one recomp follows its recomp. fn player_sets_up(st: &App, id: &str) -> bool { let rid = setup_record_id(st, id); let l = st.lib.lock().unwrap(); - let all = easy_skipped_for_all(&l.settings.ui); match l.installed.get(&rid) { - Some(g) => g.player_sets_up(all), + Some(g) => g.player_sets_up(), None => easy_skipped(&l.settings.ui, id), } } diff --git a/src-tauri/src/library.rs b/src-tauri/src/library.rs index 098ae763..bf20eba7 100644 --- a/src-tauri/src/library.rs +++ b/src-tauri/src/library.rs @@ -283,10 +283,10 @@ impl Installed { !self.installer_setup.is_empty() && self.exe.is_none() && !self.path.is_dir() } - /// The player sets this game up their own way (Skip Easy Setup): for this game, or for every - /// game (`all`, the Settings switch). - pub fn player_sets_up(&self, all: bool) -> bool { - self.mode == SetupMode::Own || all + /// The player sets this game up their own way (Skip Easy Setup). Only its own mode counts: the + /// Settings switch is for new games, and a game installed under it took it as its mode then. + pub fn player_sets_up(&self) -> bool { + self.mode == SetupMode::Own } } @@ -1265,19 +1265,17 @@ mod mode_tests { fn switching_who_sets_it_up_keeps_the_players_program() { let mut g = picked(); g.mode = SetupMode::Own; - assert!(g.player_sets_up(false)); + assert!(g.player_sets_up()); // Easy Setup on: only the mode changes; the pick is still there for coming back. g.mode = SetupMode::Easy; - assert!(!g.player_sets_up(false)); + assert!(!g.player_sets_up()); assert_eq!(g.exe, Some(PathBuf::from("bin/hopper.exe"))); assert_eq!(g.exe_rules, u8::MAX); } #[test] - fn skip_for_every_game_covers_easy_games_and_leaves_their_mode() { - let g = Installed::default(); - assert!(g.player_sets_up(true)); - assert_eq!(g.mode, SetupMode::Easy); + fn an_installed_game_is_easy_setup_by_its_own_mode() { + assert!(!Installed::default().player_sets_up()); } #[test] diff --git a/src-tauri/src/library_convert.rs b/src-tauri/src/library_convert.rs index 1727ef01..229faa59 100644 --- a/src-tauri/src/library_convert.rs +++ b/src-tauri/src/library_convert.rs @@ -18,11 +18,16 @@ //! (`inputs_ready`, each game's own) and `prepare_version` go: what they said is kept in `upgrade` //! for the launcher to read once with the game's profile. An Easy Setup left open when the //! launcher last closed (`setup_before`) is put back first, as that launcher would have. +//! +//! Format 4: Skip Easy Setup in Settings (`ui.easy_skip_all`) is for new games only. Before, it +//! covered every installed game while it was on, without changing their mode. With it on, each +//! installed game takes it as its own mode, so nothing changes for the player now that installed +//! games go by their mode alone. use serde_json::Value; /// The format this launcher writes. -pub const FORMAT: u32 = 3; +pub const FORMAT: u32 = 4; /// A program the player picked (`Installed::exe_rules`): the launcher never picks again over it. const PLAYER_PICK: u64 = u8::MAX as u64; @@ -36,12 +41,29 @@ pub fn to_current(v: &mut Value) -> bool { if from < 2 { modes_from_old_fields(v); } - two_roads(v); - one_way_inputs(v); + if from < 3 { + two_roads(v); + one_way_inputs(v); + } + skip_all_is_each_games(v); v["format"] = FORMAT.into(); true } +/// Format 3 -> 4: with Skip Easy Setup on in Settings, every installed game takes it as its own +/// mode. See the top of this file. +fn skip_all_is_each_games(v: &mut Value) { + let on = v.pointer("/settings/ui/easy_skip_all").and_then(Value::as_bool).unwrap_or(false); + if !on { + return; + } + let Some(games) = v.get_mut("installed").and_then(Value::as_object_mut) else { return }; + for g in games.values_mut() { + let Some(g) = g.as_object_mut() else { continue }; + g.insert("mode".into(), "own".into()); + } +} + /// Format 2 -> 3: hand setups and the player's own builds become Skip Easy Setup. A hand setup's /// program becomes the picked Game Executable; with none recorded the release's program runs. fn two_roads(v: &mut Value) { @@ -170,6 +192,28 @@ mod tests { v["installed"][id].get("mode").and_then(Value::as_str).map(str::to_string) } + #[test] + fn skip_for_every_game_becomes_each_installed_games_mode() { + let mut v = json!({ "format": 3, "installed": { "hopper": {}, "skyracer": { "mode": "own" } }, "settings": { "ui": { "easy_skip_all": true } } }); + assert!(to_current(&mut v)); + assert_eq!(mode(&v, "hopper").as_deref(), Some("own")); + assert_eq!(mode(&v, "skyracer").as_deref(), Some("own")); + } + + #[test] + fn without_skip_for_every_game_installed_games_keep_easy_setup() { + let mut v = json!({ "format": 3, "installed": { "hopper": {} }, "settings": { "ui": { "easy_skip_all": false } } }); + assert!(to_current(&mut v)); + assert_eq!(mode(&v, "hopper"), None); + } + + #[test] + fn a_format_4_library_is_left_as_it_is() { + let mut v = json!({ "format": 4, "installed": { "hopper": {} }, "settings": { "ui": { "easy_skip_all": true } } }); + assert!(!to_current(&mut v)); + assert_eq!(mode(&v, "hopper"), None); + } + #[test] fn set_up_by_hand_becomes_skip_easy_setup() { let mut v = json!({ "installed": { "hopper": { "manual": { "how": "none" } } } }); @@ -259,8 +303,8 @@ mod tests { }); to_current(&mut v); let game = |id: &str| serde_json::from_value::(v["installed"][id].clone()).unwrap(); - assert!(game("hopper").player_sets_up(false)); - assert!(game("skyracer").player_sets_up(false)); + assert!(game("hopper").player_sets_up()); + assert!(game("skyracer").player_sets_up()); } #[test] diff --git a/tests/beta53.test.cjs b/tests/beta53.test.cjs index e28dfd2a..a405556d 100644 --- a/tests/beta53.test.cjs +++ b/tests/beta53.test.cjs @@ -28,7 +28,7 @@ test('Skip Easy Setup is on the setup window, the Manage tab and in Settings, no assert.match(fn(app, 'manageStartRows'), /const rows = \[easyRow\(id\), programRow\(id, inst\)\];/); assert.match(app, /case 'easy-skip': \{[^]*?await setEasySkip\(id, on\);/); assert.match(fn(app, 'setEasySkip'), /saveUi\(\{ easy_skip: \[\.\.\.skip\] \}, true\)/); - assert.match(app, /sw\('easy_skip_all', ui\.easy_skip_all, t\('Skip Easy Setup'\), 'ui-toggle'\)/); + assert.match(app, /sw\('easy_skip_all', !ui\.easy_skip_all, t\('Easy Setup'\), 'easy-all'\)/); }); test('a skipped game starts as its own setup leaves it, after that setup when it has one', () => { diff --git a/tests/choose-program.test.cjs b/tests/choose-program.test.cjs index d0d9a7bd..f3a3ca50 100644 --- a/tests/choose-program.test.cjs +++ b/tests/choose-program.test.cjs @@ -56,9 +56,12 @@ test('the Easy Setup switch sits above Game Executable and shows whether Easy Se assert.match(easyRowHtml(true, false), /aria-checked="false"/); }); -test('no Easy Setup switch on a game Easy Setup can\'t do, or while it\'s skipped for every game', () => { +test('no Easy Setup switch on a game Easy Setup can\'t do', () => { assert.equal(easyRowHtml(false, false), ''); - assert.equal(easyRowHtml(true, false, { easy_skip_all: true }), ''); +}); + +test('the game\'s Easy Setup switch stays while Easy Setup is off for new games in Settings', () => { + assert.match(easyRowHtml(true, false, { easy_skip_all: true }), /data-act="easy-skip"/); }); test('turning Easy Setup off says it in the switch\'s words once installed, and how it installs before', () => { @@ -70,7 +73,7 @@ test('turning Easy Setup off says it in the switch\'s words once installed, and test('the setup window offers Skip Easy Setup on its first step, for a game Easy Setup does', () => { const steps = fs.readFileSync(path.join(__dirname, '../ui/setup-steps.js'), 'utf8'); - assert.match(steps, /const skippable = m\.at === 0 && S\.easyAll && S\.easyAll\.has\(id\) && !\(S\.settings\.ui \|\| \{\}\)\.easy_skip_all;/); + assert.match(steps, /const skippable = m\.at === 0 && S\.easyAll && S\.easyAll\.has\(id\);/); assert.match(steps, /data-ss="skip-easy">\$\{esc\(t\('Skip Easy Setup'\)\)\}/); assert.match(steps, /if \(act === 'skip-easy'\) return 'skip';/); }); @@ -90,8 +93,8 @@ test('a game Easy Setup can\'t do goes back with Use Default', () => { assert.match(row(MINE, false), /data-act="forget-program"[^>]*>Use Default { - assert.match(row(MINE, true, undefined, { easy_skip_all: true }), /data-act="forget-program"[^>]*>Use Default { + assert.doesNotMatch(row(MINE, true, undefined, { easy_skip_all: true }), /forget-program/); }); test('Easy Setup skipped on a game it can do: Set Up by You, saying what the launcher still does', () => { @@ -168,8 +171,6 @@ test('who sets a game up is its own mode: nothing is worked out again at start', assert.doesNotMatch(app, /skipOwnPrograms|easyForEveryGame|own_program_games/); assert.doesNotMatch(rust, /fn own_program_games/); assert.match(fn(app, 'loadEasy'), /applyEasySkip\(\);\r?\n\s+if \(!quiet\) render\(true\);/); - // Skip Easy Setup for every game sits over each game's mode: turned off, every game is as it was. - assert.match(app, /case 'ui-toggle':\r?\n(\s+\/\/[^\n]*\n)+\s+return saveUi\(\{ \[el\.dataset\.k\]: !\(S\.settings\.ui \|\| \{\}\)\[el\.dataset\.k\] \}\);/); }); test('an installed game\'s Easy Setup switch reads its mode', () => { @@ -177,10 +178,30 @@ test('an installed game\'s Easy Setup switch reads its mode', () => { const S = { settings: { ui: { easy_skip: ['planned'] } }, easyAll: new Set(['hopper', 'skyracer', 'planned']), library: { hopper: { mode: 'own' }, skyracer: {} } }; run(S)(); assert.deepEqual([...S.easy], ['skyracer'], 'hopper is the player\'s own; planned was ticked before installing'); - S.settings.ui.easy_skip_all = true; +}); + +test('Easy Setup off in Settings is for new games: an installed Easy Setup game keeps it', () => { + const run = new Function('S', `${fn(app, 'applyEasySkip')}; return applyEasySkip;`); + const S = { settings: { ui: { easy_skip_all: true } }, easyAll: new Set(['skyracer', 'newgame']), library: { skyracer: {} } }; run(S)(); - assert.deepEqual([...S.easy], []); - assert.equal(S.library.skyracer.mode, undefined, 'the switch for every game leaves each game\'s mode as it is'); + assert.deepEqual([...S.easy], ['skyracer']); +}); + +test('Easy Setup in Settings asks before it goes off, and not before it goes back on', () => { + const sw = app.match(/case 'easy-all': \{[^]*?\n \}/)[0]; + assert.match(sw, /const off = !\(S\.settings\.ui \|\| \{\}\)\.easy_skip_all;/); + assert.match(sw, /if \(off && !\(await askEasyAllOff\(\)\)\) return;/); + assert.match(sw, /return saveUi\(\{ easy_skip_all: off \}\);/); +}); + +test('the question says what turning Easy Setup off does, with Turn Off and Not Now', async () => { + const run = new Function('t', 'esc', 'ask', `${fn(app, 'askEasyAllOff')}; return askEasyAllOff;`); + let asked; + const ask = async (title, html, buttons) => { asked = { title, html, buttons }; return 'yes'; }; + assert.equal(await run((x) => x, (x) => x, ask)(), true); + assert.equal(asked.title, 'Turn Off Easy Setup?'); + assert.match(asked.html, /New games then install as they come[^<]*Games you already have keep how they're set up\./); + assert.deepEqual(asked.buttons.map((b) => b.label), ['Turn Off', 'Not Now']); }); test('Choose Program is called Set Game Executable everywhere', () => { diff --git a/ui/app.js b/ui/app.js index d5304dd5..b53c5fc4 100644 --- a/ui/app.js +++ b/ui/app.js @@ -5231,7 +5231,7 @@ function pageSettings() { ${libs.map((l) => `
${esc(l.path)}${l.free != null ? esc(tf('{free} free', { free: fmtB(l.free) })) + ' · ' : ''}${esc(tn(l.games, '1 recomp', '{n} recomps'))}${l.default ? ' · ' + esc(t('default')) : ''}
${l.default ? '' : ``}
`).join('')}${sharedLibraryNote(libs.map((l) => l.path))}`, ``) + group(t('Installing'), row(t('Ask Where to Install'), t('Pick the folder for each new game when you install it, Easy Setup too. Off: new games go to the default library.'), sw('ask_where', ui.ask_where, t('Ask Where to Install'), 'ui-toggle')) - + row(t('Skip Easy Setup'), t('Every game installs as it comes, and its own installer or launcher sets it up. To skip it for one game only, use Skip Easy Setup on its setup window, or the Easy Setup switch in its Manage tab.'), sw('easy_skip_all', ui.easy_skip_all, t('Skip Easy Setup'), 'ui-toggle'))) + + row(t('Easy Setup'), t('The launcher sets up new games with your copy. Off: they install as they come and you set them up yourself. Games you have keep how they are; change one in its Manage tab.'), sw('easy_skip_all', !ui.easy_skip_all, t('Easy Setup'), 'easy-all'))) + group(t('Where do you keep your ROMs?'), `

${esc(t('Point the launcher at your ROMs, disc images and game backups. It shows which have recomps, sets them up with your copy, and lets you know when a new recomp comes out for one. Files are only read on this PC.'))}

${(st.rom_dirs || []).length ? (st.rom_dirs || []).map((d) => `
${esc(d)}${esc(folderCounts(d))}
`).join('') : `

${esc(t('No folders yet.'))}

`} ${nOwned ? `

${esc(tn(nOwned, '1 of your games has a recomp.', '{n} of your games have recomps.'))} ${esc(t('See them on Home'))}

` : ''}`, @@ -6210,15 +6210,16 @@ function setSection(k, fade = true) { // One save at a time, each with everything changed so far: two quick toggles both stick. let settingsSaving = Promise.resolve(); // `quiet`: the caller has already shown the change itself, so the page isn't drawn again. -// Skip Easy Setup (a game's setup window or Manage tab, or Settings for every game): those games -// install as they come and set themselves up. S.easyAll is every game Easy Setup can do; S.easy the -// ones it does. An installed game says it in its own mode ('own': the player sets it up); one not -// installed yet by ui.easy_skip (set by older versions, from the game's menu). +// Skip Easy Setup (a game's setup window or Manage tab, or Easy Setup off in Settings for new +// games): those games install as they come and set themselves up. S.easyAll is every game Easy +// Setup can do; S.easy the ones it does. An installed game says it in its own mode ('own': the +// player sets it up), whatever Settings say; one not installed yet by the Settings switch or +// ui.easy_skip (set by older versions, from the game's menu). function applyEasySkip() { const ui = S.settings.ui || {}, skip = new Set(ui.easy_skip || []), lib = S.library || {}; const record = (id) => lib[id] || (typeof parentId === 'function' ? lib[parentId(id)] : undefined); - const own = (id) => { const g = record(id); return g ? g.mode === 'own' : skip.has(id); }; - S.easy = new Set(ui.easy_skip_all ? [] : [...(S.easyAll || [])].filter((id) => !own(id))); + const own = (id) => { const g = record(id); return g ? g.mode === 'own' : !!ui.easy_skip_all || skip.has(id); }; + S.easy = new Set([...(S.easyAll || [])].filter((id) => !own(id))); } // Settings → Start with your PC (desktop and Big Picture). The system's own startup list changes // first, and the switch shows what the system took: a Flatpak's desktop can ask the player first. @@ -6808,18 +6809,16 @@ function exePath(inst) { } // Easy Setup on the game's Manage tab: the one switch for who sets the game up, the same as Skip // Easy Setup. Turning it back on keeps an executable the player picked, for switching back. Only on -// games Easy Setup can do, and not while it's skipped for every game in Settings. +// games Easy Setup can do. The Settings switch is for new games, so it never hides this one. function easyRow(id) { - const ui = S.settings.ui || {}; - if (!S.easyAll || !S.easyAll.has(id) || ui.easy_skip_all) return ''; + if (!S.easyAll || !S.easyAll.has(id)) return ''; const sub = t('The launcher sets this game up with your copy. Off: you set it up yourself.'); return `
${esc(t('Easy Setup'))}${esc(sub)}
`; } // Game Executable on the game's page: what Play starts, in a path box, with Change. On a game Easy // Setup does it says what picking the game's own executable does there, and once Play starts the // pick as it is, that the player manages the install (the pill). The way back is the Easy Setup -// switch above it; Use Default only where that switch isn't (a game Easy Setup can't do, or one -// skipped with every game). +// switch above it; Use Default only where that switch isn't (a game Easy Setup can't do). function programRow(id, inst) { const mine = selfManaged(id), easy = S.easyAll && S.easyAll.has(id); const path = exePath(inst); @@ -6827,7 +6826,7 @@ function programRow(id, inst) { : easy ? t('The file Play starts. Pick the game\'s own executable to manage it yourself: Play then starts just that file, without Easy Setup.') : t('The file Play starts.'); const box = path ? `
${esc(path)}
` : `
${esc(t('Not found. Pick it so Play knows what to start.'))}
`; - const hasSwitch = easy && !(S.settings.ui || {}).easy_skip_all; + const hasSwitch = easy; const back = mine && !hasSwitch ? `` : ''; return `
${esc(t('Game Executable'))}${setUpByYouPill(id)}${esc(sub)}
${box}${back}
`; @@ -6860,6 +6859,12 @@ async function skipEasyHere(id) { render(true); if (window.tvRefresh && document.body.classList.contains('tv-on')) window.tvRefresh(); } +// Asked before Easy Setup goes off for new games in Settings. +async function askEasyAllOff() { + const text = t('New games then install as they come, and you set each one up yourself: the launcher won\'t ask for your copy or set it up. Games you already have keep how they\'re set up.'); + const v = await ask(t('Turn Off Easy Setup?'), `

${esc(text)}

`, [{ label: t('Turn Off'), v: 'yes', main: true }, { label: t('Not Now'), v: null }]); + return v === 'yes'; +} // Asked before Set Game Executable on a game Easy Setup does: the pick turns Easy Setup off. async function askEasyOff(id) { const name = (byId(id) || S.library[id] || { name: id }).name; @@ -9437,10 +9442,15 @@ async function act(el, e) { return render(true); } case 'ui-toggle': - // (Skip Easy Setup for every game: each game keeps its own mode under it, so turning it off - // leaves every game as it was, a game whose program the player picked included. A game - // installed while it's on takes it as its own mode, so it stays the player's.) return saveUi({ [el.dataset.k]: !(S.settings.ui || {})[el.dataset.k] }); + // Easy Setup in Settings, for new games (stored the other way round, as easy_skip_all). Turning + // it off asks first: it's how the launcher sets games up. Games already installed keep their + // own mode either way, and a game installed while it's off takes it as its own. + case 'easy-all': { + const off = !(S.settings.ui || {}).easy_skip_all; + if (off && !(await askEasyAllOff())) return; + return saveUi({ easy_skip_all: off }); + } // Show Game Names: the desktop shortcuts and Steam entries already made change pictures too. case 'game-names': return saveUi({ game_names: !(S.settings.ui || {}).game_names }).then(refreshShortcutArt); case 'dl-slow': return saveUi({ dl_slow_play: (S.settings.ui || {}).dl_slow_play === false }).then(sendLimits); diff --git a/ui/i18n/ar.json b/ui/i18n/ar.json index 0522aa4f..30b99179 100644 --- a/ui/i18n/ar.json +++ b/ui/i18n/ar.json @@ -3273,7 +3273,8 @@ "{v}: no reviews yet": "{v}: لا مراجعات بعد", "A strip across the top of each cover with its console, like the band on a real game box.": "شريط أعلى كل غلاف يحمل اسم منصته، مثل الشريط على علبة لعبة حقيقية.", "Console Labels on Covers": "شارات المنصات على الأغلفة", - "Every game installs as it comes, and its own installer or launcher sets it up. To skip it for one game only, use Skip Easy Setup on its setup window, or the Easy Setup switch in its Manage tab.": "تُثبَّت كل لعبة كما هي، ويتولى مثبّتها أو مشغّلها الخاص إعدادها. لتخطيه في لعبة واحدة فقط، استخدم «تخطي الإعداد السهل» في نافذة إعدادها، أو مفتاح الإعداد السهل في تبويب الإدارة.", + "The launcher sets up new games with your copy. Off: they install as they come and you set them up yourself. Games you have keep how they are; change one in its Manage tab.": "يُعدّ المشغّل الألعاب الجديدة بنسختك. عند الإيقاف: تُثبَّت كما هي وتُعدّها أنت بنفسك. تبقى ألعابك الحالية كما هي؛ غيّر أي لعبة من علامة التبويب «إدارة» الخاصة بها.", + "New games then install as they come, and you set each one up yourself: the launcher won't ask for your copy or set it up. Games you already have keep how they're set up.": "عندها تُثبَّت الألعاب الجديدة كما هي، وتُعدّ كل واحدة بنفسك: لن يطلب المشغّل نسختك ولن يُعدّها. تبقى الألعاب التي لديك على إعدادها الحالي.", "Skip Easy Setup": "تخطي الإعداد السهل", "{name} skips Easy Setup: it installs as it comes, and its own installer or launcher sets it up.": "تتخطى {name} الإعداد السهل: تُثبَّت كما هي، ويتولى مثبّتها أو مشغّلها الخاص إعدادها.", "{name} uses Easy Setup again.": "تعود {name} إلى استخدام الإعداد السهل.", diff --git a/ui/i18n/de.json b/ui/i18n/de.json index be990276..38260926 100644 --- a/ui/i18n/de.json +++ b/ui/i18n/de.json @@ -3273,7 +3273,8 @@ "{v}: no reviews yet": "{v}: noch keine Bewertungen", "A strip across the top of each cover with its console, like the band on a real game box.": "Ein Streifen oben auf jedem Cover mit seiner Konsole, wie das Band auf einer echten Spielhülle.", "Console Labels on Covers": "Konsolen-Banner auf Covern", - "Every game installs as it comes, and its own installer or launcher sets it up. To skip it for one game only, use Skip Easy Setup on its setup window, or the Easy Setup switch in its Manage tab.": "Jedes Spiel wird so installiert, wie es kommt, und sein eigenes Installationsprogramm oder sein Launcher richtet es ein. Um sie nur für ein Spiel zu überspringen, nutze „Einfache Einrichtung überspringen“ in seinem Einrichtungsfenster oder den Schalter „Einfache Einrichtung“ in seinem Tab „Verwalten“.", + "The launcher sets up new games with your copy. Off: they install as they come and you set them up yourself. Games you have keep how they are; change one in its Manage tab.": "Der Launcher richtet neue Spiele mit deiner Kopie ein. Aus: Sie werden so installiert, wie sie kommen, und du richtest sie selbst ein. Deine vorhandenen Spiele bleiben, wie sie sind; ändere ein Spiel in seinem Tab „Verwalten“.", + "New games then install as they come, and you set each one up yourself: the launcher won't ask for your copy or set it up. Games you already have keep how they're set up.": "Neue Spiele werden dann so installiert, wie sie kommen, und du richtest jedes selbst ein: Der Launcher fragt nicht nach deiner Kopie und richtet nichts ein. Deine vorhandenen Spiele bleiben so eingerichtet, wie sie sind.", "Skip Easy Setup": "Einfache Einrichtung überspringen", "{name} skips Easy Setup: it installs as it comes, and its own installer or launcher sets it up.": "{name} überspringt die einfache Einrichtung: Es wird so installiert, wie es kommt, und sein eigenes Installationsprogramm oder sein Launcher richtet es ein.", "{name} uses Easy Setup again.": "{name} nutzt wieder die einfache Einrichtung.", diff --git a/ui/i18n/es-419.json b/ui/i18n/es-419.json index 900a36b7..d84ea6de 100644 --- a/ui/i18n/es-419.json +++ b/ui/i18n/es-419.json @@ -3262,7 +3262,8 @@ "{v}: no reviews yet": "{v}: aún no hay reseñas", "A strip across the top of each cover with its console, like the band on a real game box.": "Una franja en la parte de arriba de cada portada con su consola, como la banda de una caja de juego real.", "Console Labels on Covers": "Etiquetas de Consola en las Portadas", - "Every game installs as it comes, and its own installer or launcher sets it up. To skip it for one game only, use Skip Easy Setup on its setup window, or the Easy Setup switch in its Manage tab.": "Cada juego se instala tal como viene, y su propio instalador o launcher lo configura. Para saltarla solo en un juego, usa «Saltar configuración fácil» en su ventana de configuración, o el interruptor Configuración fácil de su pestaña Administrar.", + "The launcher sets up new games with your copy. Off: they install as they come and you set them up yourself. Games you have keep how they are; change one in its Manage tab.": "El launcher configura los juegos nuevos con tu copia. Desactivado: se instalan tal cual y tú los configuras. Los juegos que ya tienes quedan como están; cambia uno en su pestaña Administrar.", + "New games then install as they come, and you set each one up yourself: the launcher won't ask for your copy or set it up. Games you already have keep how they're set up.": "Los juegos nuevos se instalarán tal cual y tú configurarás cada uno: el launcher no pedirá tu copia ni los configurará. Los juegos que ya tienes quedan configurados como están.", "Skip Easy Setup": "Saltar configuración fácil", "{name} skips Easy Setup: it installs as it comes, and its own installer or launcher sets it up.": "{name} se salta la configuración fácil: se instala tal como viene, y su propio instalador o launcher lo configura.", "{name} uses Easy Setup again.": "{name} vuelve a usar la configuración fácil.", diff --git a/ui/i18n/es.json b/ui/i18n/es.json index cce3ad77..c0c57d64 100644 --- a/ui/i18n/es.json +++ b/ui/i18n/es.json @@ -3273,7 +3273,8 @@ "{v}: no reviews yet": "{v}: aún no hay reseñas", "A strip across the top of each cover with its console, like the band on a real game box.": "Una franja en la parte superior de cada portada con su consola, como la banda de una caja de juego real.", "Console Labels on Covers": "Etiquetas de Consola en las Portadas", - "Every game installs as it comes, and its own installer or launcher sets it up. To skip it for one game only, use Skip Easy Setup on its setup window, or the Easy Setup switch in its Manage tab.": "Cada juego se instala tal como viene, y su propio instalador o launcher lo configura. Para saltarla solo en un juego, usa «Saltar configuración fácil» en su ventana de configuración, o el interruptor Configuración fácil de su pestaña Administrar.", + "The launcher sets up new games with your copy. Off: they install as they come and you set them up yourself. Games you have keep how they are; change one in its Manage tab.": "El launcher configura los juegos nuevos con tu copia. Desactivado: se instalan tal cual y tú los configuras. Los juegos que ya tienes quedan como están; cambia uno en su pestaña Administrar.", + "New games then install as they come, and you set each one up yourself: the launcher won't ask for your copy or set it up. Games you already have keep how they're set up.": "Los juegos nuevos se instalarán tal cual y tú configurarás cada uno: el launcher no pedirá tu copia ni los configurará. Los juegos que ya tienes quedan configurados como están.", "Skip Easy Setup": "Saltar configuración fácil", "{name} skips Easy Setup: it installs as it comes, and its own installer or launcher sets it up.": "{name} se salta la configuración fácil: se instala tal como viene, y su propio instalador o launcher lo configura.", "{name} uses Easy Setup again.": "{name} vuelve a usar la configuración fácil.", diff --git a/ui/i18n/fr.json b/ui/i18n/fr.json index 259e3d56..7d5abfc4 100644 --- a/ui/i18n/fr.json +++ b/ui/i18n/fr.json @@ -3273,7 +3273,8 @@ "{v}: no reviews yet": "{v} : aucun avis pour l’instant", "A strip across the top of each cover with its console, like the band on a real game box.": "Un bandeau en haut de chaque jaquette avec sa console, comme sur une vraie boîte de jeu.", "Console Labels on Covers": "Bandeaux de console sur les jaquettes", - "Every game installs as it comes, and its own installer or launcher sets it up. To skip it for one game only, use Skip Easy Setup on its setup window, or the Easy Setup switch in its Manage tab.": "Chaque jeu s’installe tel quel, et son propre installateur ou lanceur le configure. Pour l’ignorer sur un seul jeu, utilisez « Ignorer la configuration facile » dans sa fenêtre de configuration, ou l’interrupteur Configuration facile de son onglet Gérer.", + "The launcher sets up new games with your copy. Off: they install as they come and you set them up yourself. Games you have keep how they are; change one in its Manage tab.": "Le lanceur configure les nouveaux jeux avec votre copie. Désactivé : ils s'installent tels quels et vous les configurez vous-même. Vos jeux actuels restent comme ils sont ; changez-en un dans son onglet Gérer.", + "New games then install as they come, and you set each one up yourself: the launcher won't ask for your copy or set it up. Games you already have keep how they're set up.": "Les nouveaux jeux s'installeront alors tels quels, et vous configurerez chacun vous-même : le lanceur ne demandera pas votre copie et ne les configurera pas. Vos jeux actuels restent configurés comme ils le sont.", "Skip Easy Setup": "Ignorer la configuration facile", "{name} skips Easy Setup: it installs as it comes, and its own installer or launcher sets it up.": "{name} ignore la configuration facile : il s’installe tel quel, et son propre installateur ou lanceur le configure.", "{name} uses Easy Setup again.": "{name} utilise de nouveau la configuration facile.", diff --git a/ui/i18n/id.json b/ui/i18n/id.json index 8cbf8e5a..fe9ed4a8 100644 --- a/ui/i18n/id.json +++ b/ui/i18n/id.json @@ -3273,7 +3273,8 @@ "{v}: no reviews yet": "{v}: belum ada ulasan", "A strip across the top of each cover with its console, like the band on a real game box.": "Strip di atas setiap sampul dengan konsolnya, seperti pita di kotak game asli.", "Console Labels on Covers": "Label Konsol di Sampul", - "Every game installs as it comes, and its own installer or launcher sets it up. To skip it for one game only, use Skip Easy Setup on its setup window, or the Easy Setup switch in its Manage tab.": "Setiap game dipasang apa adanya, dan penginstal atau launcher miliknya sendiri yang menyiapkannya. Untuk melewatinya hanya pada satu game, gunakan “Lewati penyiapan mudah” di jendela penyiapannya, atau sakelar Penyiapan mudah di tab Kelola.", + "The launcher sets up new games with your copy. Off: they install as they come and you set them up yourself. Games you have keep how they are; change one in its Manage tab.": "Launcher menyiapkan game baru dengan salinanmu. Mati: game dipasang apa adanya dan kamu yang menyiapkannya sendiri. Game yang sudah kamu punya tetap seperti sekarang; ubah satu game di tab Kelola-nya.", + "New games then install as they come, and you set each one up yourself: the launcher won't ask for your copy or set it up. Games you already have keep how they're set up.": "Game baru lalu dipasang apa adanya, dan kamu menyiapkan masing-masing sendiri: launcher tidak akan meminta salinanmu atau menyiapkannya. Game yang sudah kamu punya tetap disiapkan seperti sekarang.", "Skip Easy Setup": "Lewati penyiapan mudah", "{name} skips Easy Setup: it installs as it comes, and its own installer or launcher sets it up.": "{name} melewati penyiapan mudah: dipasang apa adanya, dan penginstal atau launcher miliknya sendiri yang menyiapkannya.", "{name} uses Easy Setup again.": "{name} kembali memakai penyiapan mudah.", diff --git a/ui/i18n/it.json b/ui/i18n/it.json index b4df63eb..2ba6496e 100644 --- a/ui/i18n/it.json +++ b/ui/i18n/it.json @@ -3273,7 +3273,8 @@ "{v}: no reviews yet": "{v}: ancora nessuna recensione", "A strip across the top of each cover with its console, like the band on a real game box.": "Una striscia in cima a ogni copertina con la sua console, come la fascia di una vera custodia.", "Console Labels on Covers": "Etichette della console sulle copertine", - "Every game installs as it comes, and its own installer or launcher sets it up. To skip it for one game only, use Skip Easy Setup on its setup window, or the Easy Setup switch in its Manage tab.": "Ogni gioco si installa così com’è, e il suo programma di installazione o launcher lo configura. Per saltarla in un solo gioco, usa «Salta configurazione facile» nella sua finestra di configurazione, o l’interruttore Configurazione facile nella sua scheda Gestisci.", + "The launcher sets up new games with your copy. Off: they install as they come and you set them up yourself. Games you have keep how they are; change one in its Manage tab.": "Il launcher configura i nuovi giochi con la tua copia. Disattivato: si installano così come sono e li configuri tu. I giochi che hai restano come sono; cambiane uno nella sua scheda Gestisci.", + "New games then install as they come, and you set each one up yourself: the launcher won't ask for your copy or set it up. Games you already have keep how they're set up.": "I nuovi giochi si installeranno così come sono e configurerai tu ciascuno: il launcher non chiederà la tua copia né li configurerà. I giochi che hai già restano configurati come sono.", "Skip Easy Setup": "Salta configurazione facile", "{name} skips Easy Setup: it installs as it comes, and its own installer or launcher sets it up.": "{name} salta la configurazione facile: si installa così com’è, e il suo programma di installazione o launcher lo configura.", "{name} uses Easy Setup again.": "{name} usa di nuovo la configurazione facile.", diff --git a/ui/i18n/ja.json b/ui/i18n/ja.json index d43892e7..c5975850 100644 --- a/ui/i18n/ja.json +++ b/ui/i18n/ja.json @@ -3273,7 +3273,8 @@ "{v}: no reviews yet": "{v}: まだレビューはありません", "A strip across the top of each cover with its console, like the band on a real game box.": "実際のゲームのパッケージの帯のように、各カバーの上部にゲーム機名の帯を表示します。", "Console Labels on Covers": "カバーにゲーム機ラベルを表示", - "Every game installs as it comes, and its own installer or launcher sets it up. To skip it for one game only, use Skip Easy Setup on its setup window, or the Easy Setup switch in its Manage tab.": "どのゲームもそのままインストールされ、ゲーム自身のインストーラーやランチャーがセットアップします。1 つのゲームだけスキップするには、そのゲームのセットアップ画面の「かんたんセットアップをスキップ」か、「管理」タブの「かんたんセットアップ」スイッチを使ってください。", + "The launcher sets up new games with your copy. Off: they install as they come and you set them up yourself. Games you have keep how they are; change one in its Manage tab.": "新しいゲームはランチャーがあなたのコピーでセットアップします。オフ:そのままインストールされ、セットアップはあなたが行います。今あるゲームはそのままです。ゲームごとの変更は「管理」タブで行えます。", + "New games then install as they come, and you set each one up yourself: the launcher won't ask for your copy or set it up. Games you already have keep how they're set up.": "新しいゲームはそのままインストールされ、セットアップはそれぞれあなたが行います。ランチャーはコピーを求めず、セットアップもしません。今あるゲームのセットアップはそのままです。", "Skip Easy Setup": "かんたんセットアップをスキップ", "{name} skips Easy Setup: it installs as it comes, and its own installer or launcher sets it up.": "{name} はかんたんセットアップをスキップします。そのままインストールされ、ゲーム自身のインストーラーやランチャーがセットアップします。", "{name} uses Easy Setup again.": "{name} は再びかんたんセットアップを使います。", diff --git a/ui/i18n/ko.json b/ui/i18n/ko.json index ba3011b6..ff3684e4 100644 --- a/ui/i18n/ko.json +++ b/ui/i18n/ko.json @@ -3273,7 +3273,8 @@ "{v}: no reviews yet": "{v}: 아직 리뷰 없음", "A strip across the top of each cover with its console, like the band on a real game box.": "실제 게임 케이스의 띠처럼 각 커버 위쪽에 콘솔 이름이 적힌 띠를 표시합니다.", "Console Labels on Covers": "커버에 콘솔 라벨 표시", - "Every game installs as it comes, and its own installer or launcher sets it up. To skip it for one game only, use Skip Easy Setup on its setup window, or the Easy Setup switch in its Manage tab.": "모든 게임이 받은 그대로 설치되고, 게임 자체의 설치 프로그램이나 런처가 설정합니다. 한 게임만 건너뛰려면 그 게임 설정 창의 '간편 설정 건너뛰기'나 관리 탭의 간편 설정 스위치를 사용하세요.", + "The launcher sets up new games with your copy. Off: they install as they come and you set them up yourself. Games you have keep how they are; change one in its Manage tab.": "런처가 새 게임을 내 사본으로 설정합니다. 끄면: 그대로 설치되고 직접 설정합니다. 이미 있는 게임은 그대로 유지되며, 게임별로 관리 탭에서 바꿀 수 있습니다.", + "New games then install as they come, and you set each one up yourself: the launcher won't ask for your copy or set it up. Games you already have keep how they're set up.": "이제 새 게임은 그대로 설치되고 각각 직접 설정합니다. 런처는 사본을 요청하거나 설정하지 않습니다. 이미 있는 게임의 설정은 그대로 유지됩니다.", "Skip Easy Setup": "간편 설정 건너뛰기", "{name} skips Easy Setup: it installs as it comes, and its own installer or launcher sets it up.": "{name}은(는) 간편 설정을 건너뜁니다. 받은 그대로 설치되고, 게임 자체의 설치 프로그램이나 런처가 설정합니다.", "{name} uses Easy Setup again.": "{name}이(가) 다시 간편 설정을 사용합니다.", diff --git a/ui/i18n/nl.json b/ui/i18n/nl.json index 3c9ac00c..b991a770 100644 --- a/ui/i18n/nl.json +++ b/ui/i18n/nl.json @@ -3273,7 +3273,8 @@ "{v}: no reviews yet": "{v}: nog geen beoordelingen", "A strip across the top of each cover with its console, like the band on a real game box.": "Een strook bovenaan elke cover met de console, zoals de band op een echt spelhoesje.", "Console Labels on Covers": "Consolelabels op covers", - "Every game installs as it comes, and its own installer or launcher sets it up. To skip it for one game only, use Skip Easy Setup on its setup window, or the Easy Setup switch in its Manage tab.": "Elk spel wordt geïnstalleerd zoals het is, en het eigen installatieprogramma of de eigen launcher stelt het in. Om het voor één spel over te slaan, gebruik je ‘Eenvoudig instellen overslaan’ in het instelvenster van dat spel, of de schakelaar Eenvoudig instellen op het tabblad Beheren.", + "The launcher sets up new games with your copy. Off: they install as they come and you set them up yourself. Games you have keep how they are; change one in its Manage tab.": "De launcher stelt nieuwe games in met je kopie. Uit: ze worden geïnstalleerd zoals ze zijn en je stelt ze zelf in. Games die je al hebt blijven zoals ze zijn; wijzig er een op het tabblad Beheren.", + "New games then install as they come, and you set each one up yourself: the launcher won't ask for your copy or set it up. Games you already have keep how they're set up.": "Nieuwe games worden dan geïnstalleerd zoals ze zijn, en je stelt ze elk zelf in: de launcher vraagt niet om je kopie en stelt ze niet in. Games die je al hebt blijven ingesteld zoals ze zijn.", "Skip Easy Setup": "Eenvoudig instellen overslaan", "{name} skips Easy Setup: it installs as it comes, and its own installer or launcher sets it up.": "{name} slaat eenvoudig instellen over: het wordt geïnstalleerd zoals het is, en het eigen installatieprogramma of de eigen launcher stelt het in.", "{name} uses Easy Setup again.": "{name} gebruikt weer eenvoudig instellen.", diff --git a/ui/i18n/pl.json b/ui/i18n/pl.json index 648e86f2..522e77e0 100644 --- a/ui/i18n/pl.json +++ b/ui/i18n/pl.json @@ -3273,7 +3273,8 @@ "{v}: no reviews yet": "{v}: brak recenzji", "A strip across the top of each cover with its console, like the band on a real game box.": "Pasek u góry każdej okładki z jej konsolą, jak na prawdziwym pudełku z grą.", "Console Labels on Covers": "Etykiety konsol na okładkach", - "Every game installs as it comes, and its own installer or launcher sets it up. To skip it for one game only, use Skip Easy Setup on its setup window, or the Easy Setup switch in its Manage tab.": "Każda gra instaluje się taka, jaka jest, a konfiguruje ją jej własny instalator lub launcher. Aby pominąć ją tylko w jednej grze, użyj opcji „Pomiń łatwą konfigurację” w jej oknie konfiguracji albo przełącznika Łatwa konfiguracja na karcie Zarządzaj.", + "The launcher sets up new games with your copy. Off: they install as they come and you set them up yourself. Games you have keep how they are; change one in its Manage tab.": "Launcher konfiguruje nowe gry z twoją kopią. Wyłączone: instalują się bez zmian, a konfigurujesz je sam. Gry, które już masz, zostają bez zmian; zmień grę na jej karcie Zarządzaj.", + "New games then install as they come, and you set each one up yourself: the launcher won't ask for your copy or set it up. Games you already have keep how they're set up.": "Nowe gry będą się wtedy instalować bez zmian, a każdą skonfigurujesz sam: launcher nie poprosi o twoją kopię ani ich nie skonfiguruje. Gry, które już masz, zostają skonfigurowane tak jak teraz.", "Skip Easy Setup": "Pomiń łatwą konfigurację", "{name} skips Easy Setup: it installs as it comes, and its own installer or launcher sets it up.": "{name} pomija łatwą konfigurację: instaluje się taka, jaka jest, a konfiguruje ją jej własny instalator lub launcher.", "{name} uses Easy Setup again.": "{name} znów używa łatwej konfiguracji.", diff --git a/ui/i18n/pt-BR.json b/ui/i18n/pt-BR.json index 6d90f0bd..b6ad37d0 100644 --- a/ui/i18n/pt-BR.json +++ b/ui/i18n/pt-BR.json @@ -3262,7 +3262,8 @@ "{v}: no reviews yet": "{v}: ainda não há avaliações", "A strip across the top of each cover with its console, like the band on a real game box.": "Uma faixa no topo de cada capa com o console dela, como a faixa de uma caixa de jogo de verdade.", "Console Labels on Covers": "Etiquetas de Console nas Capas", - "Every game installs as it comes, and its own installer or launcher sets it up. To skip it for one game only, use Skip Easy Setup on its setup window, or the Easy Setup switch in its Manage tab.": "Cada jogo é instalado do jeito que vem, e o próprio instalador ou launcher dele faz a configuração. Para pular só em um jogo, use “Pular configuração fácil” na janela de configuração dele, ou a chave Configuração fácil na aba Gerenciar.", + "The launcher sets up new games with your copy. Off: they install as they come and you set them up yourself. Games you have keep how they are; change one in its Manage tab.": "O launcher configura os jogos novos com a sua cópia. Desligado: eles são instalados do jeito que vêm e você mesmo os configura. Os jogos que você já tem ficam como estão; mude um na aba Gerenciar dele.", + "New games then install as they come, and you set each one up yourself: the launcher won't ask for your copy or set it up. Games you already have keep how they're set up.": "Os jogos novos passam a ser instalados do jeito que vêm, e você configura cada um: o launcher não vai pedir sua cópia nem configurá-los. Os jogos que você já tem continuam configurados como estão.", "Skip Easy Setup": "Pular configuração fácil", "{name} skips Easy Setup: it installs as it comes, and its own installer or launcher sets it up.": "{name} pula a configuração fácil: é instalado do jeito que vem, e o próprio instalador ou launcher dele faz a configuração.", "{name} uses Easy Setup again.": "{name} volta a usar a configuração fácil.", diff --git a/ui/i18n/pt.json b/ui/i18n/pt.json index 9956f53b..5862f261 100644 --- a/ui/i18n/pt.json +++ b/ui/i18n/pt.json @@ -3273,7 +3273,8 @@ "{v}: no reviews yet": "{v}: ainda não há avaliações", "A strip across the top of each cover with its console, like the band on a real game box.": "Uma faixa no topo de cada capa com a sua consola, como a banda de uma caixa de jogo real.", "Console Labels on Covers": "Etiquetas de Consola nas Capas", - "Every game installs as it comes, and its own installer or launcher sets it up. To skip it for one game only, use Skip Easy Setup on its setup window, or the Easy Setup switch in its Manage tab.": "Cada jogo instala-se tal como vem, e o seu próprio instalador ou launcher configura-o. Para a saltar só num jogo, usa «Saltar configuração fácil» na janela de configuração dele, ou o interruptor Configuração fácil no separador Gerir.", + "The launcher sets up new games with your copy. Off: they install as they come and you set them up yourself. Games you have keep how they are; change one in its Manage tab.": "O launcher configura os jogos novos com a tua cópia. Desligado: são instalados tal como vêm e és tu que os configuras. Os jogos que já tens ficam como estão; muda um no separador Gerir dele.", + "New games then install as they come, and you set each one up yourself: the launcher won't ask for your copy or set it up. Games you already have keep how they're set up.": "Os jogos novos passam a ser instalados tal como vêm, e és tu que configuras cada um: o launcher não vai pedir a tua cópia nem configurá-los. Os jogos que já tens continuam configurados como estão.", "Skip Easy Setup": "Saltar configuração fácil", "{name} skips Easy Setup: it installs as it comes, and its own installer or launcher sets it up.": "{name} salta a configuração fácil: instala-se tal como vem, e o seu próprio instalador ou launcher configura-o.", "{name} uses Easy Setup again.": "{name} volta a usar a configuração fácil.", diff --git a/ui/i18n/ru.json b/ui/i18n/ru.json index 8be474f8..b3272cdf 100644 --- a/ui/i18n/ru.json +++ b/ui/i18n/ru.json @@ -3273,7 +3273,8 @@ "{v}: no reviews yet": "{v}: отзывов пока нет", "A strip across the top of each cover with its console, like the band on a real game box.": "Полоса вверху каждой обложки с её консолью, как на настоящей коробке с игрой.", "Console Labels on Covers": "Метки консолей на обложках", - "Every game installs as it comes, and its own installer or launcher sets it up. To skip it for one game only, use Skip Easy Setup on its setup window, or the Easy Setup switch in its Manage tab.": "Каждая игра устанавливается как есть, а настраивает её собственный установщик или лаунчер. Чтобы пропустить её только для одной игры, используйте «Пропустить простую настройку» в её окне настройки или переключатель «Простая настройка» на вкладке «Управление».", + "The launcher sets up new games with your copy. Off: they install as they come and you set them up yourself. Games you have keep how they are; change one in its Manage tab.": "Лаунчер настраивает новые игры с вашей копией. Выкл.: они устанавливаются как есть, а настраиваете их вы. Уже установленные игры остаются как есть; измените игру на её вкладке «Управление».", + "New games then install as they come, and you set each one up yourself: the launcher won't ask for your copy or set it up. Games you already have keep how they're set up.": "Тогда новые игры будут устанавливаться как есть, а каждую вы настроите сами: лаунчер не будет просить вашу копию и настраивать их. Уже установленные игры останутся настроены как сейчас.", "Skip Easy Setup": "Пропустить простую настройку", "{name} skips Easy Setup: it installs as it comes, and its own installer or launcher sets it up.": "{name} пропускает простую настройку: игра устанавливается как есть, а настраивает её собственный установщик или лаунчер.", "{name} uses Easy Setup again.": "{name} снова использует простую настройку.", diff --git a/ui/i18n/th.json b/ui/i18n/th.json index 7f20e5dc..21451f0a 100644 --- a/ui/i18n/th.json +++ b/ui/i18n/th.json @@ -3273,7 +3273,8 @@ "{v}: no reviews yet": "{v}: ยังไม่มีรีวิว", "A strip across the top of each cover with its console, like the band on a real game box.": "แถบด้านบนของปกแต่ละเกมที่บอกเครื่องเล่น เหมือนแถบบนกล่องเกมจริง", "Console Labels on Covers": "ป้ายเครื่องเล่นบนปก", - "Every game installs as it comes, and its own installer or launcher sets it up. To skip it for one game only, use Skip Easy Setup on its setup window, or the Easy Setup switch in its Manage tab.": "ทุกเกมจะติดตั้งตามที่มา และตัวติดตั้งหรือลันเชอร์ของเกมเองจะตั้งค่าให้ หากต้องการข้ามเฉพาะเกมเดียว ให้ใช้ “ข้ามการตั้งค่าง่าย” ในหน้าต่างตั้งค่าของเกมนั้น หรือสวิตช์ตั้งค่าง่ายในแท็บจัดการ", + "The launcher sets up new games with your copy. Off: they install as they come and you set them up yourself. Games you have keep how they are; change one in its Manage tab.": "ตัวเปิดเกมจะตั้งค่าเกมใหม่ด้วยสำเนาของคุณ ปิด: เกมจะติดตั้งตามที่เป็นอยู่และคุณตั้งค่าเอง เกมที่คุณมีอยู่แล้วจะคงเดิม เปลี่ยนทีละเกมได้ที่แท็บ จัดการ", + "New games then install as they come, and you set each one up yourself: the launcher won't ask for your copy or set it up. Games you already have keep how they're set up.": "เกมใหม่จะติดตั้งตามที่เป็นอยู่ และคุณตั้งค่าแต่ละเกมเอง: ตัวเปิดเกมจะไม่ขอสำเนาของคุณหรือตั้งค่าให้ เกมที่คุณมีอยู่แล้วจะคงการตั้งค่าเดิม", "Skip Easy Setup": "ข้ามการตั้งค่าง่าย", "{name} skips Easy Setup: it installs as it comes, and its own installer or launcher sets it up.": "{name} ข้ามการตั้งค่าง่าย: ติดตั้งตามที่มา และตัวติดตั้งหรือลันเชอร์ของเกมเองจะตั้งค่าให้", "{name} uses Easy Setup again.": "{name} กลับมาใช้การตั้งค่าง่ายแล้ว", diff --git a/ui/i18n/tr.json b/ui/i18n/tr.json index 3332c464..8d763373 100644 --- a/ui/i18n/tr.json +++ b/ui/i18n/tr.json @@ -3273,7 +3273,8 @@ "{v}: no reviews yet": "{v}: henüz değerlendirme yok", "A strip across the top of each cover with its console, like the band on a real game box.": "Her kapağın üstünde, gerçek bir oyun kutusundaki gibi konsolunu gösteren bir şerit.", "Console Labels on Covers": "Kapaklarda Konsol Etiketleri", - "Every game installs as it comes, and its own installer or launcher sets it up. To skip it for one game only, use Skip Easy Setup on its setup window, or the Easy Setup switch in its Manage tab.": "Her oyun olduğu gibi kurulur ve kendi yükleyicisi ya da başlatıcısı onu ayarlar. Yalnızca bir oyunda atlamak için o oyunun kurulum penceresindeki “Kolay kurulumu atla”yı ya da Yönet sekmesindeki Kolay kurulum anahtarını kullan.", + "The launcher sets up new games with your copy. Off: they install as they come and you set them up yourself. Games you have keep how they are; change one in its Manage tab.": "Başlatıcı yeni oyunları kopyanızla kurar. Kapalı: olduğu gibi yüklenir ve onları siz kurarsınız. Sahip olduğunuz oyunlar olduğu gibi kalır; bir oyunu Yönet sekmesinden değiştirin.", + "New games then install as they come, and you set each one up yourself: the launcher won't ask for your copy or set it up. Games you already have keep how they're set up.": "Yeni oyunlar bundan sonra olduğu gibi yüklenir ve her birini siz kurarsınız: başlatıcı kopyanızı istemez ve kurulum yapmaz. Sahip olduğunuz oyunlar şu anki kurulumlarıyla kalır.", "Skip Easy Setup": "Kolay kurulumu atla", "{name} skips Easy Setup: it installs as it comes, and its own installer or launcher sets it up.": "{name} kolay kurulumu atlıyor: olduğu gibi kurulur ve kendi yükleyicisi ya da başlatıcısı onu ayarlar.", "{name} uses Easy Setup again.": "{name} yeniden kolay kurulumu kullanıyor.", diff --git a/ui/i18n/uk.json b/ui/i18n/uk.json index 87a65df6..8ddbc67a 100644 --- a/ui/i18n/uk.json +++ b/ui/i18n/uk.json @@ -3273,7 +3273,8 @@ "{v}: no reviews yet": "{v}: відгуків поки немає", "A strip across the top of each cover with its console, like the band on a real game box.": "Смуга вгорі кожної обкладинки з її консоллю, як на справжній коробці з грою.", "Console Labels on Covers": "Мітки консолей на обкладинках", - "Every game installs as it comes, and its own installer or launcher sets it up. To skip it for one game only, use Skip Easy Setup on its setup window, or the Easy Setup switch in its Manage tab.": "Кожна гра встановлюється як є, а налаштовує її власний інсталятор або лаунчер. Щоб пропустити його лише для однієї гри, скористайтеся «Пропустити просте налаштування» в її вікні налаштування або перемикачем «Просте налаштування» на вкладці «Керування».", + "The launcher sets up new games with your copy. Off: they install as they come and you set them up yourself. Games you have keep how they are; change one in its Manage tab.": "Лаунчер налаштовує нові ігри з вашою копією. Вимк.: вони встановлюються як є, а налаштовуєте їх ви. Ігри, що вже є, лишаються як є; змініть гру на її вкладці «Керування».", + "New games then install as they come, and you set each one up yourself: the launcher won't ask for your copy or set it up. Games you already have keep how they're set up.": "Тоді нові ігри встановлюватимуться як є, а кожну ви налаштуєте самі: лаунчер не проситиме вашу копію й не налаштовуватиме їх. Ігри, що вже є, лишаться налаштовані як зараз.", "Skip Easy Setup": "Пропустити просте налаштування", "{name} skips Easy Setup: it installs as it comes, and its own installer or launcher sets it up.": "{name} пропускає просте налаштування: гра встановлюється як є, а налаштовує її власний інсталятор або лаунчер.", "{name} uses Easy Setup again.": "{name} знову використовує просте налаштування.", diff --git a/ui/i18n/vi.json b/ui/i18n/vi.json index df9532a8..9db2db91 100644 --- a/ui/i18n/vi.json +++ b/ui/i18n/vi.json @@ -3273,7 +3273,8 @@ "{v}: no reviews yet": "{v}: chưa có đánh giá", "A strip across the top of each cover with its console, like the band on a real game box.": "Một dải trên đầu mỗi bìa ghi hệ máy của nó, như dải trên hộp game thật.", "Console Labels on Covers": "Nhãn hệ máy trên bìa", - "Every game installs as it comes, and its own installer or launcher sets it up. To skip it for one game only, use Skip Easy Setup on its setup window, or the Easy Setup switch in its Manage tab.": "Mọi trò chơi được cài nguyên bản, và trình cài đặt hoặc launcher riêng của nó sẽ thiết lập. Để bỏ qua chỉ cho một trò chơi, dùng “Bỏ qua thiết lập dễ dàng” trong cửa sổ thiết lập của trò đó, hoặc công tắc Thiết lập dễ dàng trong thẻ Quản lý.", + "The launcher sets up new games with your copy. Off: they install as they come and you set them up yourself. Games you have keep how they are; change one in its Manage tab.": "Launcher thiết lập trò chơi mới bằng bản sao của bạn. Tắt: trò chơi được cài như vốn có và bạn tự thiết lập. Các trò chơi bạn đã có giữ nguyên; đổi từng trò chơi trong thẻ Quản lý của nó.", + "New games then install as they come, and you set each one up yourself: the launcher won't ask for your copy or set it up. Games you already have keep how they're set up.": "Trò chơi mới khi đó sẽ được cài như vốn có, và bạn tự thiết lập từng trò: launcher sẽ không hỏi bản sao của bạn hay thiết lập chúng. Các trò chơi bạn đã có vẫn giữ cách thiết lập hiện tại.", "Skip Easy Setup": "Bỏ qua thiết lập dễ dàng", "{name} skips Easy Setup: it installs as it comes, and its own installer or launcher sets it up.": "{name} bỏ qua thiết lập dễ dàng: trò chơi được cài nguyên bản, và trình cài đặt hoặc launcher riêng của nó sẽ thiết lập.", "{name} uses Easy Setup again.": "{name} lại dùng thiết lập dễ dàng.", diff --git a/ui/i18n/zh-Hans.json b/ui/i18n/zh-Hans.json index 834158ce..7646e3b7 100644 --- a/ui/i18n/zh-Hans.json +++ b/ui/i18n/zh-Hans.json @@ -3273,7 +3273,8 @@ "{v}: no reviews yet": "{v}:还没有评价", "A strip across the top of each cover with its console, like the band on a real game box.": "在每个封面顶部显示其主机的横条,就像真实游戏盒上的那条色带。", "Console Labels on Covers": "封面主机标签", - "Every game installs as it comes, and its own installer or launcher sets it up. To skip it for one game only, use Skip Easy Setup on its setup window, or the Easy Setup switch in its Manage tab.": "每个游戏都按原样安装,由它自己的安装程序或启动器来配置。如只想对某个游戏跳过,请在它的设置窗口中使用“跳过轻松配置”,或在它的“管理”标签页中使用“轻松配置”开关。", + "The launcher sets up new games with your copy. Off: they install as they come and you set them up yourself. Games you have keep how they are; change one in its Manage tab.": "启动器会用你的副本配置新游戏。关闭:新游戏按原样安装,由你自行配置。已有的游戏保持不变;可在各游戏的“管理”标签页中更改。", + "New games then install as they come, and you set each one up yourself: the launcher won't ask for your copy or set it up. Games you already have keep how they're set up.": "之后新游戏会按原样安装,每个都由你自行配置:启动器不会要求你的副本,也不会进行配置。你已有的游戏保持现有配置。", "Skip Easy Setup": "跳过轻松配置", "{name} skips Easy Setup: it installs as it comes, and its own installer or launcher sets it up.": "{name} 跳过轻松配置:按原样安装,由它自己的安装程序或启动器来配置。", "{name} uses Easy Setup again.": "{name} 重新使用轻松配置。", diff --git a/ui/i18n/zh-Hant.json b/ui/i18n/zh-Hant.json index 8503d432..b4a793a0 100644 --- a/ui/i18n/zh-Hant.json +++ b/ui/i18n/zh-Hant.json @@ -3273,7 +3273,8 @@ "{v}: no reviews yet": "{v}:還沒有評價", "A strip across the top of each cover with its console, like the band on a real game box.": "在每個封面頂端顯示其主機的橫條,就像真實遊戲盒上的那條色帶。", "Console Labels on Covers": "封面主機標籤", - "Every game installs as it comes, and its own installer or launcher sets it up. To skip it for one game only, use Skip Easy Setup on its setup window, or the Easy Setup switch in its Manage tab.": "每個遊戲都照原樣安裝,由它自己的安裝程式或啟動器來設定。若只想對某個遊戲略過,請在它的設定視窗中使用「略過輕鬆設定」,或在它的「管理」分頁中使用「輕鬆設定」開關。", + "The launcher sets up new games with your copy. Off: they install as they come and you set them up yourself. Games you have keep how they are; change one in its Manage tab.": "啟動器會用你的副本設定新遊戲。關閉:新遊戲照原樣安裝,由你自行設定。已有的遊戲維持不變;可在各遊戲的「管理」分頁中變更。", + "New games then install as they come, and you set each one up yourself: the launcher won't ask for your copy or set it up. Games you already have keep how they're set up.": "之後新遊戲會照原樣安裝,每個都由你自行設定:啟動器不會要求你的副本,也不會進行設定。你已有的遊戲維持現有設定。", "Skip Easy Setup": "略過輕鬆設定", "{name} skips Easy Setup: it installs as it comes, and its own installer or launcher sets it up.": "{name} 略過輕鬆設定:照原樣安裝,由它自己的安裝程式或啟動器來設定。", "{name} uses Easy Setup again.": "{name} 重新使用輕鬆設定。", diff --git a/ui/setup-steps.js b/ui/setup-steps.js index fcd5617e..2b635239 100644 --- a/ui/setup-steps.js +++ b/ui/setup-steps.js @@ -170,7 +170,7 @@ function stepsView(id, su, ns, game) { } // Rather set it up yourself: Easy Setup off for this game, from its first step. Its Manage tab // has the switch to turn it back on. - const skippable = m.at === 0 && S.easyAll && S.easyAll.has(id) && !(S.settings.ui || {}).easy_skip_all; + const skippable = m.at === 0 && S.easyAll && S.easyAll.has(id); if (skippable) body += `

${esc(t('Rather set it up yourself?'))}

`; // The check mark only on the lines that say it's ready. const ok = [t('Everything it needs is here.'), t('Ready to set up.')].includes(status); From afceec432216fbb615f291510365bed26f3cb725 Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 20:42:05 +0200 Subject: [PATCH 25/35] Cloud saves: don't restore while the game runs from its folder A game opened straight from its .exe isn't one the launcher started, so the running-game guard missed it and a cloud save could be put in place under it. Check for a program running from the game's folder before Play/Sync Now restores, after the download, and before a manual restore. Related to #425. --- src-tauri/src/cloud.rs | 25 ++++++++++++++++++++++++- src-tauri/src/lib.rs | 2 +- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/cloud.rs b/src-tauri/src/cloud.rs index 0dee9b74..b428dd3a 100644 --- a/src-tauri/src/cloud.rs +++ b/src-tauri/src/cloud.rs @@ -670,6 +670,17 @@ const NOT_RESTORED: &str = "Your cloud save couldn't be put in place."; /// The cloud save downloaded, but it couldn't be kept in the folder of the game's save copies. const CLOUD_NOT_KEPT: &str = "The cloud save couldn't be kept on this PC."; +/// Already translated: the same words the launcher says for a game it started itself. +const CLOSE_GAME_FIRST: &str = "Close the game first."; + +/// A game started outside the launcher (its program opened straight from its folder) isn't in +/// `running`, but it writes saves all the same: a save put in place under it could replace what +/// it just saved. Not seen on macOS, or under Wine where the program is Wine's own. +async fn open_outside(g: &Installed) -> Res { + let dir = g.path.clone(); + blocking(move || crate::still_running_in(&dir)).await +} + /// Before Play, when a save place was too big to look through. A fixed text without the game's /// name, so the window can translate it: the player just pressed Play on that game. const SYNC_PAUSED: &str = "Cloud saves for this game are paused: its save folder is too big to look through. Pick its save folder under Where it saves to turn them back on."; @@ -1082,12 +1093,17 @@ async fn take_cloud(app: &AppHandle, id: &str, c: &CloudCopy) -> Res { return Err(Error::Msg("That cloud save couldn't be downloaded.".into())); } let bytes = r.bytes().await.map_err(net)?; + let g = game(&st, id)?; + // Checked after the download too: a big save takes a while, and the game can be opened + // from its folder meanwhile. + if open_outside(&g).await? { + return Err(Error::Msg(CLOSE_GAME_FIRST.into())); + } let d = copies_dir(&st, id); let not_kept = |path: &Path, e: std::io::Error| Error::Msg(format!("{CLOUD_NOT_KEPT}\n{}: {e}", path.display())); tokio::fs::create_dir_all(&d).await.map_err(|e| not_kept(&d, e))?; let tmp = d.join(format!("cloud-{}.download", c.v.chars().filter(|x| x.is_ascii_alphanumeric()).collect::())); tokio::fs::write(&tmp, &bytes).await.map_err(|e| not_kept(&tmp, e))?; - let g = game(&st, id)?; let spots = spots_of(&st, id, &g); let (dir, id2, t2) = (st.dir.clone(), id.to_string(), tmp.clone()); let n = blocking(move || saves::restore(&dir, &id2, &t2, &spots, &g)).await; @@ -1248,6 +1264,10 @@ async fn check_saves(app: AppHandle, id: String, manual: bool) -> Res { return Ok(json!({"action": "play"})); } if should_restore(&local, &s.synced_hash, &top.hash, entries.is_empty()) { + // Before Play too: the game is open already, so starting it again isn't what's needed. + if open_outside(&g).await? { + return Err(Error::Msg(CLOSE_GAME_FIRST.into())); + } let taken = take_cloud(&app, &id, top).await; // Sync Now says why. Before Play the player is asked whether to play with this PC's save // instead (saves_play_without_cloud); nothing about the sync changes until they say so. @@ -1754,6 +1774,9 @@ pub async fn saves_restore(app: AppHandle, id: String, name: Option, v: return Err(Error::Msg("That isn't one of its save copies.".into())); } let g = game(&st, &id)?; + if open_outside(&g).await? { + return Err(Error::Msg(CLOSE_GAME_FIRST.into())); + } let spots = spots_of(&st, &id, &g); let (dir, id2) = (st.dir.clone(), id.clone()); let file = saves::dir_of(&st.dir, &id, &g).join(&name); diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 3d2e9f55..a7b5b1d0 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -7691,7 +7691,7 @@ fn leftover_helper(name: &str) -> bool { /// A program from this folder (or deeper) is running, other than RecompLauncher itself. Only for a /// game's own folder: a drive or a folder near the top is too broad to tell anything. -fn still_running_in(dir: &Path) -> bool { +pub(crate) fn still_running_in(dir: &Path) -> bool { if dir.components().count() < 3 { return false; } From 78bd5048c63c58d5b25735e7d160748c46af35a8 Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 20:46:12 +0200 Subject: [PATCH 26/35] Cloud saves: check the saves again before a cloud save replaces them Play, Sync Now and the conflict pick hash the local saves, then download the cloud save. A game opened outside the launcher could save during the download, and that newer save was replaced without asking. The restore now goes in only over the saves that were checked; otherwise it stops and the next sync sees the local change. Related to #425. --- src-tauri/src/cloud.rs | 20 +++++++++++----- src-tauri/src/saves.rs | 54 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+), 6 deletions(-) diff --git a/src-tauri/src/cloud.rs b/src-tauri/src/cloud.rs index b428dd3a..c0d3456f 100644 --- a/src-tauri/src/cloud.rs +++ b/src-tauri/src/cloud.rs @@ -675,7 +675,8 @@ const CLOSE_GAME_FIRST: &str = "Close the game first."; /// A game started outside the launcher (its program opened straight from its folder) isn't in /// `running`, but it writes saves all the same: a save put in place under it could replace what -/// it just saved. Not seen on macOS, or under Wine where the program is Wine's own. +/// it just saved. Not seen on macOS, or under Wine where the program is Wine's own; the saves are +/// checked again just before anything replaces them (`saves::restore_if_unchanged`) for those. async fn open_outside(g: &Installed) -> Res { let dir = g.path.clone(); blocking(move || crate::still_running_in(&dir)).await @@ -1076,7 +1077,10 @@ fn open_sessions(saves_dir: &Path) -> Vec { } /// Gets a cloud copy and puts it in place (what's there now is kept as a local copy first). -async fn take_cloud(app: &AppHandle, id: &str, c: &CloudCopy) -> Res { +/// `checked`: the checksum of the saves the caller looked at before deciding. Then the copy goes +/// in only over those saves, not over ones made while it downloaded. None: the player picked +/// this cloud save themselves, over whatever is there. +async fn take_cloud(app: &AppHandle, id: &str, c: &CloudCopy, checked: Option<&str>) -> Res { let st = app.state::(); let a = load(&st.dir).ok_or_else(|| Error::Msg("Sign in first.".into()))?; let _working = working(app, id, "down"); @@ -1106,7 +1110,11 @@ async fn take_cloud(app: &AppHandle, id: &str, c: &CloudCopy) -> Res { tokio::fs::write(&tmp, &bytes).await.map_err(|e| not_kept(&tmp, e))?; let spots = spots_of(&st, id, &g); let (dir, id2, t2) = (st.dir.clone(), id.to_string(), tmp.clone()); - let n = blocking(move || saves::restore(&dir, &id2, &t2, &spots, &g)).await; + let checked = checked.map(String::from); + let n = blocking(move || match checked { + Some(h) => saves::restore_if_unchanged(&dir, &id2, &t2, &spots, &g, &h), + None => saves::restore(&dir, &id2, &t2, &spots, &g), + }).await; let _ = tokio::fs::remove_file(&tmp).await; let n = n??; let mut s = saves::state(&st.dir, id); @@ -1268,7 +1276,7 @@ async fn check_saves(app: AppHandle, id: String, manual: bool) -> Res { if open_outside(&g).await? { return Err(Error::Msg(CLOSE_GAME_FIRST.into())); } - let taken = take_cloud(&app, &id, top).await; + let taken = take_cloud(&app, &id, top, Some(&local)).await; // Sync Now says why. Before Play the player is asked whether to play with this PC's save // instead (saves_play_without_cloud); nothing about the sync changes until they say so. if let (Err(e), false) = (&taken, manual) { @@ -1363,7 +1371,7 @@ pub async fn saves_pick(app: AppHandle, id: String, keep: String, local_hash: St return Err(changed()); } match keep.as_str() { - "cloud" => take_cloud(&app, &id, top).await.map(|_| ()), + "cloud" => take_cloud(&app, &id, top, Some(&hash)).await.map(|_| ()), "local" => upload_current(&app, &id, g, spots, hash, top.made).await, _ => Err(Error::Msg("Choose this PC or the cloud.".into())), } @@ -1767,7 +1775,7 @@ pub async fn saves_restore(app: AppHandle, id: String, name: Option, v: if let Some(v) = v { let (list, _) = cloud_list(&app, &id).await?; let c = list.into_iter().find(|c| c.v == v).ok_or_else(|| Error::Msg("That cloud save is gone.".into()))?; - return take_cloud(&app, &id, &c).await; + return take_cloud(&app, &id, &c, None).await; } let name = name.unwrap_or_default(); if name.contains('/') || name.contains('\\') || !name.ends_with(".zip") { diff --git a/src-tauri/src/saves.rs b/src-tauri/src/saves.rs index ec35a920..6869043c 100644 --- a/src-tauri/src/saves.rs +++ b/src-tauri/src/saves.rs @@ -1062,6 +1062,20 @@ pub fn restore(app_dir: &Path, id: &str, zip_file: &Path, spots_now: &[Spot], g: Ok(n) } +/// Said when the saves here changed after they were checked, so a cloud save wasn't put over them. +pub const CHANGED_SINCE_CHECK: &str = "Your saves on this PC changed while the cloud save was downloading, so they weren't replaced. Sync again to choose which one to keep."; + +/// `restore`, but only over the saves that were checked: `checked` is their set's checksum as +/// `current` gave it. A game opened outside the launcher can save while a cloud save downloads, +/// and that newer save would be replaced without the player being asked. +pub fn restore_if_unchanged(app_dir: &Path, id: &str, zip_file: &Path, spots_now: &[Spot], g: &Installed, checked: &str) -> Result { + let (_, _, now, _) = current(spots_now, g); + if now != checked { + return Err(Error::Msg(CHANGED_SINCE_CHECK.into())); + } + restore(app_dir, id, zip_file, spots_now, g) +} + pub fn manifest(zip_file: &Path) -> Option { read_manifest(zip_file) } @@ -1959,6 +1973,46 @@ mod tests { fs::remove_dir_all(d).unwrap(); } + // A copy of the saves holding `text`, as a cloud save would bring it; the save is put back to + // "one" afterwards. + fn copy_holding(app: &Path, g: &Installed, s: &[Spot], save: &Path, text: &str) -> PathBuf { + fs::write(save, text).unwrap(); + let copy = backup(app, "g", s, g).unwrap().unwrap(); + fs::write(save, "one").unwrap(); + dir_of(app, "g", g).join(copy.name) + } + + #[test] + fn restore_if_unchanged_leaves_a_save_made_after_the_check() { + let d = tmp("restore-changed-after-check"); + let (g, s, app) = game_with_a_save(&d); + let save = d.join("lib/Game/save/slot.sav"); + let cloud = copy_holding(&app, &g, &s, &save, "cloud"); + let checked = current(&s, &g).2; + // The game, opened outside the launcher, saves while the cloud save downloads. + fs::write(&save, "newer").unwrap(); + + let err = restore_if_unchanged(&app, "g", &cloud, &s, &g, &checked).unwrap_err(); + + assert_eq!(err.to_string(), CHANGED_SINCE_CHECK); + assert_eq!(fs::read_to_string(&save).unwrap(), "newer"); + let _ = fs::remove_dir_all(&d); + } + + #[test] + fn restore_if_unchanged_puts_the_copy_over_the_checked_save() { + let d = tmp("restore-unchanged-since-check"); + let (g, s, app) = game_with_a_save(&d); + let save = d.join("lib/Game/save/slot.sav"); + let cloud = copy_holding(&app, &g, &s, &save, "cloud"); + let checked = current(&s, &g).2; + + assert_eq!(restore_if_unchanged(&app, "g", &cloud, &s, &g, &checked).unwrap(), 1); + + assert_eq!(fs::read_to_string(&save).unwrap(), "cloud"); + let _ = fs::remove_dir_all(&d); + } + #[test] fn restore_uses_this_devices_selected_folder_and_keeps_previous_saves() { let d = tmp("restore-selected"); From 22015d91bf50f3a6885ac676242e16ff957a66f2 Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 20:52:46 +0200 Subject: [PATCH 27/35] Cloud saves: name the program running from the game's folder Before Play, a program running from the game's folder no longer stops the game: it may be a mod tool, not the game. The player is asked whether to play with this PC's save, as when a restore fails, and the message names the program. Sync Now and restores say what to close. Skipped while the launcher's own setup step runs from that folder. --- src-tauri/src/cloud.rs | 45 +++++++++++++++++++++++++++--------------- src-tauri/src/lib.rs | 31 +++++++++++++++++++---------- src-tauri/src/saves.rs | 4 +++- 3 files changed, 53 insertions(+), 27 deletions(-) diff --git a/src-tauri/src/cloud.rs b/src-tauri/src/cloud.rs index c0d3456f..827f8047 100644 --- a/src-tauri/src/cloud.rs +++ b/src-tauri/src/cloud.rs @@ -670,16 +670,23 @@ const NOT_RESTORED: &str = "Your cloud save couldn't be put in place."; /// The cloud save downloaded, but it couldn't be kept in the folder of the game's save copies. const CLOUD_NOT_KEPT: &str = "The cloud save couldn't be kept on this PC."; -/// Already translated: the same words the launcher says for a game it started itself. -const CLOSE_GAME_FIRST: &str = "Close the game first."; - -/// A game started outside the launcher (its program opened straight from its folder) isn't in -/// `running`, but it writes saves all the same: a save put in place under it could replace what -/// it just saved. Not seen on macOS, or under Wine where the program is Wine's own; the saves are -/// checked again just before anything replaces them (`saves::restore_if_unchanged`) for those. -async fn open_outside(g: &Installed) -> Res { +/// The file name of a program running from the game's folder that this launcher didn't start: the +/// game opened straight from its .exe, or a mod tool kept beside it. A save put in place under the +/// game could replace what it just saved. Named, because it isn't always the game. Not while the +/// launcher's own setup step runs: its tools run from the game's folder too. Not seen on macOS, or +/// under Wine where the program is Wine's own; the saves are checked again just before anything +/// replaces them (`saves::restore_if_unchanged`) for those. +async fn open_outside(id: &str, g: &Installed) -> Res> { + if crate::setup_busy(id) { + return Ok(None); + } let dir = g.path.clone(); - blocking(move || crate::still_running_in(&dir)).await + blocking(move || crate::program_running_in(&dir)).await +} + +/// Sync Now and restores: what to close before trying again. +fn still_open(program: &str) -> Error { + Error::Msg(format!("A program from this game's folder is still running ({program}). Close it, then try again.")) } /// Before Play, when a save place was too big to look through. A fixed text without the game's @@ -1100,8 +1107,8 @@ async fn take_cloud(app: &AppHandle, id: &str, c: &CloudCopy, checked: Option<&s let g = game(&st, id)?; // Checked after the download too: a big save takes a while, and the game can be opened // from its folder meanwhile. - if open_outside(&g).await? { - return Err(Error::Msg(CLOSE_GAME_FIRST.into())); + if let Some(program) = open_outside(id, &g).await? { + return Err(still_open(&program)); } let d = copies_dir(&st, id); let not_kept = |path: &Path, e: std::io::Error| Error::Msg(format!("{CLOUD_NOT_KEPT}\n{}: {e}", path.display())); @@ -1272,9 +1279,15 @@ async fn check_saves(app: AppHandle, id: String, manual: bool) -> Res { return Ok(json!({"action": "play"})); } if should_restore(&local, &s.synced_hash, &top.hash, entries.is_empty()) { - // Before Play too: the game is open already, so starting it again isn't what's needed. - if open_outside(&g).await? { - return Err(Error::Msg(CLOSE_GAME_FIRST.into())); + // Before Play it doesn't stop the game: the program may be a mod tool, not the game. The + // player is asked whether to play with this PC's save, as when a restore fails. + if let Some(program) = open_outside(&id, &g).await? { + if manual { + return Err(still_open(&program)); + } + crate::trail::note(format!("Cloud saves: {id}'s cloud save wasn't put in place: {program} runs from its folder")); + let why = format!("A program from this game's folder is already running ({program}). Close it to get your cloud save."); + return Ok(json!({"action": "not-restored", "why": why, "cloud": top})); } let taken = take_cloud(&app, &id, top, Some(&local)).await; // Sync Now says why. Before Play the player is asked whether to play with this PC's save @@ -1782,8 +1795,8 @@ pub async fn saves_restore(app: AppHandle, id: String, name: Option, v: return Err(Error::Msg("That isn't one of its save copies.".into())); } let g = game(&st, &id)?; - if open_outside(&g).await? { - return Err(Error::Msg(CLOSE_GAME_FIRST.into())); + if let Some(program) = open_outside(&id, &g).await? { + return Err(still_open(&program)); } let spots = spots_of(&st, &id, &g); let (dir, id2) = (st.dir.clone(), id.clone()); diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index a7b5b1d0..62e80c48 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -3669,7 +3669,7 @@ static SETUP_NEXT: std::sync::atomic::AtomicU64 = std::sync::atomic::AtomicU64:: static INPUT_WORKERS: Mutex> = Mutex::new(Vec::new()); static SETUP_STATUS: Mutex>> = Mutex::new(None); -fn setup_busy(id: &str) -> bool { +pub(crate) fn setup_busy(id: &str) -> bool { SETUP_RUN.lock().unwrap().as_ref().is_some_and(|m| m.contains_key(id)) || INPUT_WORKERS.lock().unwrap().iter().any(|x| x == id) } @@ -7692,28 +7692,39 @@ fn leftover_helper(name: &str) -> bool { /// A program from this folder (or deeper) is running, other than RecompLauncher itself. Only for a /// game's own folder: a drive or a folder near the top is too broad to tell anything. pub(crate) fn still_running_in(dir: &Path) -> bool { + program_running_in(dir).is_some() +} + +/// The file name of a program running from this folder (or deeper), as `still_running_in` finds +/// it: so a message can say what to close, when it isn't the game itself (a mod tool, say). +pub(crate) fn program_running_in(dir: &Path) -> Option { if dir.components().count() < 3 { - return false; + return None; } let me = std::process::id(); #[cfg(windows)] { let d = dir.to_string_lossy().trim_end_matches('\\').to_lowercase() + "\\"; - return win::processes().into_iter().any(|(pid, name)| pid != me && pid != 0 && !leftover_helper(&name) && win::process_file(pid).map(|f| f.to_string_lossy().to_lowercase().starts_with(&d)).unwrap_or(false)); + let inside = |pid: u32| win::process_file(pid).map(|f| f.to_string_lossy().to_lowercase().starts_with(&d)).unwrap_or(false); + return win::processes().into_iter().find(|(pid, name)| *pid != me && *pid != 0 && !leftover_helper(name) && inside(*pid)).map(|(_, name)| name); } #[cfg(target_os = "linux")] { - let Ok(rd) = std::fs::read_dir("/proc") else { return false }; - return rd - .flatten() - .filter_map(|e| e.file_name().to_str().and_then(|n| n.parse::().ok())) - .filter(|&p| p != me) - .any(|p| std::fs::read_link(format!("/proc/{p}/exe")).map(|f| f.starts_with(dir) && !leftover_helper(&f.file_name().map(|n| n.to_string_lossy().to_string()).unwrap_or_default())).unwrap_or(false)); + let rd = std::fs::read_dir("/proc").ok()?; + let pids = rd.flatten().filter_map(|e| e.file_name().to_str().and_then(|n| n.parse::().ok())).filter(|&p| p != me); + for p in pids { + let Ok(exe) = std::fs::read_link(format!("/proc/{p}/exe")) else { continue }; + let name = exe.file_name().map(|n| n.to_string_lossy().to_string()).unwrap_or_default(); + if exe.starts_with(dir) && !leftover_helper(&name) { + return Some(name); + } + } + return None; } #[allow(unreachable_code)] { let _ = me; - false + None } } diff --git a/src-tauri/src/saves.rs b/src-tauri/src/saves.rs index 6869043c..fed5ce31 100644 --- a/src-tauri/src/saves.rs +++ b/src-tauri/src/saves.rs @@ -1067,7 +1067,9 @@ pub const CHANGED_SINCE_CHECK: &str = "Your saves on this PC changed while the c /// `restore`, but only over the saves that were checked: `checked` is their set's checksum as /// `current` gave it. A game opened outside the launcher can save while a cloud save downloads, -/// and that newer save would be replaced without the player being asked. +/// and that newer save would be replaced without the player being asked. A save made in the +/// milliseconds between this check and `restore`'s own backup isn't seen: accepted, as that +/// backup still keeps what was there. pub fn restore_if_unchanged(app_dir: &Path, id: &str, zip_file: &Path, spots_now: &[Spot], g: &Installed, checked: &str) -> Result { let (_, _, now, _) = current(spots_now, g); if now != checked { From 2042154fe5f644e821d021632fd181e91bb0b9da Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 20:57:35 +0200 Subject: [PATCH 28/35] Cloud saves: translate the new messages The new texts are fixed lines the window translates, with the program's name on the line under them (the way t() already keeps a program's own words as they are). Their translations are added to the language files. --- src-tauri/src/cloud.rs | 12 +++++++++--- ui/i18n/ar.json | 5 ++++- ui/i18n/de.json | 5 ++++- ui/i18n/es-419.json | 5 ++++- ui/i18n/es.json | 5 ++++- ui/i18n/fr.json | 5 ++++- ui/i18n/id.json | 5 ++++- ui/i18n/it.json | 5 ++++- ui/i18n/ja.json | 5 ++++- ui/i18n/ko.json | 5 ++++- ui/i18n/nl.json | 5 ++++- ui/i18n/pl.json | 5 ++++- ui/i18n/pt-BR.json | 5 ++++- ui/i18n/pt.json | 5 ++++- ui/i18n/ru.json | 5 ++++- ui/i18n/th.json | 5 ++++- ui/i18n/tr.json | 5 ++++- ui/i18n/uk.json | 5 ++++- ui/i18n/vi.json | 5 ++++- ui/i18n/zh-Hans.json | 5 ++++- ui/i18n/zh-Hant.json | 5 ++++- 21 files changed, 89 insertions(+), 23 deletions(-) diff --git a/src-tauri/src/cloud.rs b/src-tauri/src/cloud.rs index 827f8047..ed52d3dd 100644 --- a/src-tauri/src/cloud.rs +++ b/src-tauri/src/cloud.rs @@ -684,9 +684,15 @@ async fn open_outside(id: &str, g: &Installed) -> Res> { blocking(move || crate::program_running_in(&dir)).await } -/// Sync Now and restores: what to close before trying again. +/// Sync Now and restores, when a program runs from the game's folder. Fixed texts so the window +/// can translate them; the program's name goes on the line under it, as it is. +const PROGRAM_OPEN: &str = "A program from this game's folder is still running. Close it, then try again."; + +/// Before Play, said in the prompt that offers to play with this PC's save instead. +const PROGRAM_OPEN_PLAY: &str = "A program from this game's folder is already running. Close it to get your cloud save."; + fn still_open(program: &str) -> Error { - Error::Msg(format!("A program from this game's folder is still running ({program}). Close it, then try again.")) + Error::Msg(format!("{PROGRAM_OPEN}\n{program}")) } /// Before Play, when a save place was too big to look through. A fixed text without the game's @@ -1286,7 +1292,7 @@ async fn check_saves(app: AppHandle, id: String, manual: bool) -> Res { return Err(still_open(&program)); } crate::trail::note(format!("Cloud saves: {id}'s cloud save wasn't put in place: {program} runs from its folder")); - let why = format!("A program from this game's folder is already running ({program}). Close it to get your cloud save."); + let why = format!("{PROGRAM_OPEN_PLAY}\n{program}"); return Ok(json!({"action": "not-restored", "why": why, "cloud": top})); } let taken = take_cloud(&app, &id, top, Some(&local)).await; diff --git a/ui/i18n/ar.json b/ui/i18n/ar.json index 5716f974..7feb1038 100644 --- a/ui/i18n/ar.json +++ b/ui/i18n/ar.json @@ -3390,5 +3390,8 @@ "Syncs when you press Play": "يُزامَن عند الضغط على تشغيل", "syncs when you press Play": "يُزامَن عند الضغط على تشغيل", "Saved {time}. What's there now is kept as a backup first.": "حُفظ {time}. يُحتفظ بما هو موجود الآن كنسخة احتياطية أولًا.", - "A newer save is in the cloud": "يوجد ملف حفظ أحدث في السحابة" + "A newer save is in the cloud": "يوجد ملف حفظ أحدث في السحابة", + "A program from this game's folder is still running. Close it, then try again.": "لا يزال برنامج من مجلد هذه اللعبة يعمل. أغلقه، ثم حاول مرة أخرى.", + "A program from this game's folder is already running. Close it to get your cloud save.": "يعمل برنامج من مجلد هذه اللعبة بالفعل. أغلقه للحصول على ملف الحفظ السحابي.", + "Your saves on this PC changed while the cloud save was downloading, so they weren't replaced. Sync again to choose which one to keep.": "تغيّرت ملفات الحفظ على هذا الكمبيوتر أثناء تنزيل ملف الحفظ السحابي، لذا لم يتم استبدالها. زامن مرة أخرى لتختار أيهما تحتفظ به." } diff --git a/ui/i18n/de.json b/ui/i18n/de.json index 0ddf3dfe..539c1339 100644 --- a/ui/i18n/de.json +++ b/ui/i18n/de.json @@ -3390,5 +3390,8 @@ "Syncs when you press Play": "Wird beim Drücken auf Spielen synchronisiert", "syncs when you press Play": "wird beim Drücken auf Spielen synchronisiert", "Saved {time}. What's there now is kept as a backup first.": "Gespeichert {time}. Der jetzige Spielstand wird vorher als Sicherung behalten.", - "A newer save is in the cloud": "In der Cloud liegt ein neuerer Spielstand" + "A newer save is in the cloud": "In der Cloud liegt ein neuerer Spielstand", + "A program from this game's folder is still running. Close it, then try again.": "Ein Programm aus dem Ordner dieses Spiels läuft noch. Schließe es und versuche es dann erneut.", + "A program from this game's folder is already running. Close it to get your cloud save.": "Ein Programm aus dem Ordner dieses Spiels läuft bereits. Schließe es, um deinen Cloud-Spielstand zu bekommen.", + "Your saves on this PC changed while the cloud save was downloading, so they weren't replaced. Sync again to choose which one to keep.": "Deine Spielstände auf diesem PC haben sich geändert, während der Cloud-Spielstand heruntergeladen wurde, deshalb wurden sie nicht ersetzt. Synchronisiere erneut, um auszuwählen, welchen du behältst." } diff --git a/ui/i18n/es-419.json b/ui/i18n/es-419.json index 13c1bac6..42d52eb5 100644 --- a/ui/i18n/es-419.json +++ b/ui/i18n/es-419.json @@ -3379,5 +3379,8 @@ "Syncs when you press Play": "Se sincroniza al presionar Jugar", "syncs when you press Play": "se sincroniza al presionar Jugar", "Saved {time}. What's there now is kept as a backup first.": "Guardada {time}. Lo que hay ahora se guarda antes como copia.", - "A newer save is in the cloud": "Hay una partida más reciente en la nube" + "A newer save is in the cloud": "Hay una partida más reciente en la nube", + "A program from this game's folder is still running. Close it, then try again.": "Un programa de la carpeta de este juego sigue abierto. Ciérralo y vuelve a intentarlo.", + "A program from this game's folder is already running. Close it to get your cloud save.": "Ya hay un programa de la carpeta de este juego abierto. Ciérralo para recibir tu partida en la nube.", + "Your saves on this PC changed while the cloud save was downloading, so they weren't replaced. Sync again to choose which one to keep.": "Tus partidas en esta PC cambiaron mientras se descargaba la partida en la nube, así que no se reemplazaron. Sincroniza de nuevo para elegir cuál conservar." } diff --git a/ui/i18n/es.json b/ui/i18n/es.json index 22a3edbf..fc152a06 100644 --- a/ui/i18n/es.json +++ b/ui/i18n/es.json @@ -3390,5 +3390,8 @@ "Syncs when you press Play": "Se sincroniza al pulsar Jugar", "syncs when you press Play": "se sincroniza al pulsar Jugar", "Saved {time}. What's there now is kept as a backup first.": "Guardada {time}. Lo que hay ahora se guarda antes como copia.", - "A newer save is in the cloud": "Hay una partida más reciente en la nube" + "A newer save is in the cloud": "Hay una partida más reciente en la nube", + "A program from this game's folder is still running. Close it, then try again.": "Un programa de la carpeta de este juego sigue abierto. Ciérralo y vuelve a intentarlo.", + "A program from this game's folder is already running. Close it to get your cloud save.": "Ya hay un programa de la carpeta de este juego abierto. Ciérralo para recibir tu partida en la nube.", + "Your saves on this PC changed while the cloud save was downloading, so they weren't replaced. Sync again to choose which one to keep.": "Tus partidas en este PC cambiaron mientras se descargaba la partida en la nube, así que no se han reemplazado. Sincroniza de nuevo para elegir cuál conservar." } diff --git a/ui/i18n/fr.json b/ui/i18n/fr.json index 948d1556..4b087f08 100644 --- a/ui/i18n/fr.json +++ b/ui/i18n/fr.json @@ -3390,5 +3390,8 @@ "Syncs when you press Play": "Se synchronise quand vous appuyez sur Jouer", "syncs when you press Play": "se synchronise quand vous appuyez sur Jouer", "Saved {time}. What's there now is kept as a backup first.": "Enregistrée {time}. Celle qui est là maintenant est d'abord gardée en copie.", - "A newer save is in the cloud": "Une sauvegarde plus récente est dans le cloud" + "A newer save is in the cloud": "Une sauvegarde plus récente est dans le cloud", + "A program from this game's folder is still running. Close it, then try again.": "Un programme du dossier de ce jeu est toujours en cours d'exécution. Fermez-le, puis réessayez.", + "A program from this game's folder is already running. Close it to get your cloud save.": "Un programme du dossier de ce jeu est déjà en cours d'exécution. Fermez-le pour récupérer votre sauvegarde dans le cloud.", + "Your saves on this PC changed while the cloud save was downloading, so they weren't replaced. Sync again to choose which one to keep.": "Vos sauvegardes sur ce PC ont changé pendant le téléchargement de la sauvegarde dans le cloud : elles n'ont donc pas été remplacées. Synchronisez à nouveau pour choisir celle à garder." } diff --git a/ui/i18n/id.json b/ui/i18n/id.json index 7adabc86..943b06ba 100644 --- a/ui/i18n/id.json +++ b/ui/i18n/id.json @@ -3390,5 +3390,8 @@ "Syncs when you press Play": "Disinkronkan saat kamu menekan Main", "syncs when you press Play": "disinkronkan saat kamu menekan Main", "Saved {time}. What's there now is kept as a backup first.": "Disimpan {time}. Yang ada sekarang disimpan dulu sebagai cadangan.", - "A newer save is in the cloud": "Ada save lebih baru di cloud" + "A newer save is in the cloud": "Ada save lebih baru di cloud", + "A program from this game's folder is still running. Close it, then try again.": "Sebuah program dari folder game ini masih berjalan. Tutup program itu, lalu coba lagi.", + "A program from this game's folder is already running. Close it to get your cloud save.": "Sebuah program dari folder game ini sudah berjalan. Tutup program itu untuk mendapatkan save cloud kamu.", + "Your saves on this PC changed while the cloud save was downloading, so they weren't replaced. Sync again to choose which one to keep.": "Save kamu di PC ini berubah saat save cloud sedang diunduh, jadi tidak diganti. Sinkronkan lagi untuk memilih mana yang disimpan." } diff --git a/ui/i18n/it.json b/ui/i18n/it.json index 8a5f3c60..d4e25757 100644 --- a/ui/i18n/it.json +++ b/ui/i18n/it.json @@ -3390,5 +3390,8 @@ "Syncs when you press Play": "Si sincronizza quando premi Gioca", "syncs when you press Play": "si sincronizza quando premi Gioca", "Saved {time}. What's there now is kept as a backup first.": "Salvato {time}. Quello attuale viene prima conservato come backup.", - "A newer save is in the cloud": "C'è un salvataggio più recente nel cloud" + "A newer save is in the cloud": "C'è un salvataggio più recente nel cloud", + "A program from this game's folder is still running. Close it, then try again.": "Un programma della cartella di questo gioco è ancora in esecuzione. Chiudilo, poi riprova.", + "A program from this game's folder is already running. Close it to get your cloud save.": "Un programma della cartella di questo gioco è già in esecuzione. Chiudilo per avere il tuo salvataggio nel cloud.", + "Your saves on this PC changed while the cloud save was downloading, so they weren't replaced. Sync again to choose which one to keep.": "I tuoi salvataggi su questo PC sono cambiati mentre si scaricava il salvataggio nel cloud, quindi non sono stati sostituiti. Sincronizza di nuovo per scegliere quale tenere." } diff --git a/ui/i18n/ja.json b/ui/i18n/ja.json index 9a0d00ac..99785042 100644 --- a/ui/i18n/ja.json +++ b/ui/i18n/ja.json @@ -3390,5 +3390,8 @@ "Syncs when you press Play": "プレイを押すと同期されます", "syncs when you press Play": "プレイを押すと同期", "Saved {time}. What's there now is kept as a backup first.": "{time}に保存。今のセーブデータは先にバックアップとして残ります。", - "A newer save is in the cloud": "クラウドに新しいセーブデータがあります" + "A newer save is in the cloud": "クラウドに新しいセーブデータがあります", + "A program from this game's folder is still running. Close it, then try again.": "このゲームのフォルダーにあるプログラムがまだ実行中です。終了してから、もう一度お試しください。", + "A program from this game's folder is already running. Close it to get your cloud save.": "このゲームのフォルダーにあるプログラムがすでに実行中です。クラウドセーブを受け取るには、終了してください。", + "Your saves on this PC changed while the cloud save was downloading, so they weren't replaced. Sync again to choose which one to keep.": "クラウドセーブのダウンロード中にこの PC のセーブが変更されたため、置き換えませんでした。もう一度同期して、どちらを残すか選んでください。" } diff --git a/ui/i18n/ko.json b/ui/i18n/ko.json index 00f89141..ea8a495e 100644 --- a/ui/i18n/ko.json +++ b/ui/i18n/ko.json @@ -3390,5 +3390,8 @@ "Syncs when you press Play": "플레이를 누르면 동기화됩니다", "syncs when you press Play": "플레이를 누르면 동기화", "Saved {time}. What's there now is kept as a backup first.": "{time} 저장됨. 지금 있는 데이터는 먼저 백업으로 남겨 둡니다.", - "A newer save is in the cloud": "클라우드에 최신 저장 데이터가 있습니다" + "A newer save is in the cloud": "클라우드에 최신 저장 데이터가 있습니다", + "A program from this game's folder is still running. Close it, then try again.": "이 게임 폴더의 프로그램이 아직 실행 중입니다. 종료한 뒤 다시 시도하세요.", + "A program from this game's folder is already running. Close it to get your cloud save.": "이 게임 폴더의 프로그램이 이미 실행 중입니다. 클라우드 저장 데이터를 받으려면 종료하세요.", + "Your saves on this PC changed while the cloud save was downloading, so they weren't replaced. Sync again to choose which one to keep.": "클라우드 저장 데이터를 내려받는 동안 이 PC의 저장 데이터가 바뀌어서 덮어쓰지 않았습니다. 다시 동기화해서 어느 쪽을 남길지 고르세요." } diff --git a/ui/i18n/nl.json b/ui/i18n/nl.json index 59e05af9..d3f7ec52 100644 --- a/ui/i18n/nl.json +++ b/ui/i18n/nl.json @@ -3390,5 +3390,8 @@ "Syncs when you press Play": "Wordt gesynchroniseerd als je op Spelen drukt", "syncs when you press Play": "wordt gesynchroniseerd als je op Spelen drukt", "Saved {time}. What's there now is kept as a backup first.": "Opgeslagen {time}. Wat er nu staat, wordt eerst als back-up bewaard.", - "A newer save is in the cloud": "Er staat een nieuwere save in de cloud" + "A newer save is in the cloud": "Er staat een nieuwere save in de cloud", + "A program from this game's folder is still running. Close it, then try again.": "Er draait nog een programma uit de map van deze game. Sluit het en probeer het opnieuw.", + "A program from this game's folder is already running. Close it to get your cloud save.": "Er draait al een programma uit de map van deze game. Sluit het om je opgeslagen game uit de cloud te krijgen.", + "Your saves on this PC changed while the cloud save was downloading, so they weren't replaced. Sync again to choose which one to keep.": "Je opgeslagen games op deze pc zijn veranderd terwijl de opgeslagen game uit de cloud werd gedownload, dus ze zijn niet vervangen. Synchroniseer opnieuw om te kiezen welke je houdt." } diff --git a/ui/i18n/pl.json b/ui/i18n/pl.json index fcdb6283..6cd30cc8 100644 --- a/ui/i18n/pl.json +++ b/ui/i18n/pl.json @@ -3390,5 +3390,8 @@ "Syncs when you press Play": "Zsynchronizuje się po naciśnięciu Graj", "syncs when you press Play": "zsynchronizuje się po naciśnięciu Graj", "Saved {time}. What's there now is kept as a backup first.": "Zapisano {time}. To, co jest teraz, zostanie najpierw zachowane jako kopia.", - "A newer save is in the cloud": "W chmurze jest nowszy zapis" + "A newer save is in the cloud": "W chmurze jest nowszy zapis", + "A program from this game's folder is still running. Close it, then try again.": "Program z folderu tej gry nadal działa. Zamknij go i spróbuj ponownie.", + "A program from this game's folder is already running. Close it to get your cloud save.": "Program z folderu tej gry już działa. Zamknij go, aby dostać zapis z chmury.", + "Your saves on this PC changed while the cloud save was downloading, so they weren't replaced. Sync again to choose which one to keep.": "Twoje zapisy na tym komputerze zmieniły się podczas pobierania zapisu z chmury, więc nie zostały zastąpione. Zsynchronizuj ponownie, aby wybrać, który zachować." } diff --git a/ui/i18n/pt-BR.json b/ui/i18n/pt-BR.json index 6634b00b..b8f71cca 100644 --- a/ui/i18n/pt-BR.json +++ b/ui/i18n/pt-BR.json @@ -3379,5 +3379,8 @@ "Syncs when you press Play": "Sincroniza quando você aperta Jogar", "syncs when you press Play": "sincroniza quando você aperta Jogar", "Saved {time}. What's there now is kept as a backup first.": "Salvo {time}. O que está lá agora é guardado antes como backup.", - "A newer save is in the cloud": "Há um save mais recente na nuvem" + "A newer save is in the cloud": "Há um save mais recente na nuvem", + "A program from this game's folder is still running. Close it, then try again.": "Um programa da pasta deste jogo ainda está aberto. Feche-o e tente de novo.", + "A program from this game's folder is already running. Close it to get your cloud save.": "Um programa da pasta deste jogo já está aberto. Feche-o para receber seus dados salvos na nuvem.", + "Your saves on this PC changed while the cloud save was downloading, so they weren't replaced. Sync again to choose which one to keep.": "Seus dados salvos neste PC mudaram enquanto os dados salvos na nuvem eram baixados, então não foram substituídos. Sincronize de novo para escolher qual manter." } diff --git a/ui/i18n/pt.json b/ui/i18n/pt.json index 1242fd42..44e3c63b 100644 --- a/ui/i18n/pt.json +++ b/ui/i18n/pt.json @@ -3390,5 +3390,8 @@ "Syncs when you press Play": "Sincroniza quando carregas em Jogar", "syncs when you press Play": "sincroniza quando carregas em Jogar", "Saved {time}. What's there now is kept as a backup first.": "Gravada {time}. A que está lá agora é guardada primeiro como cópia.", - "A newer save is in the cloud": "Há uma gravação mais recente na nuvem" + "A newer save is in the cloud": "Há uma gravação mais recente na nuvem", + "A program from this game's folder is still running. Close it, then try again.": "Um programa da pasta deste jogo ainda está aberto. Fecha-o e tenta outra vez.", + "A program from this game's folder is already running. Close it to get your cloud save.": "Um programa da pasta deste jogo já está aberto. Fecha-o para receberes os teus dados guardados na nuvem.", + "Your saves on this PC changed while the cloud save was downloading, so they weren't replaced. Sync again to choose which one to keep.": "Os teus dados guardados neste PC mudaram enquanto os dados guardados na nuvem eram transferidos, por isso não foram substituídos. Sincroniza outra vez para escolheres qual manter." } diff --git a/ui/i18n/ru.json b/ui/i18n/ru.json index 9a5f21bf..e3d3561a 100644 --- a/ui/i18n/ru.json +++ b/ui/i18n/ru.json @@ -3390,5 +3390,8 @@ "Syncs when you press Play": "Синхронизируется, когда вы нажмёте «Играть»", "syncs when you press Play": "синхронизируется при нажатии «Играть»", "Saved {time}. What's there now is kept as a backup first.": "Сохранено {time}. Текущее сначала сохранится как копия.", - "A newer save is in the cloud": "В облаке есть более новое сохранение" + "A newer save is in the cloud": "В облаке есть более новое сохранение", + "A program from this game's folder is still running. Close it, then try again.": "Программа из папки этой игры всё ещё запущена. Закройте её и попробуйте снова.", + "A program from this game's folder is already running. Close it to get your cloud save.": "Программа из папки этой игры уже запущена. Закройте её, чтобы получить облачное сохранение.", + "Your saves on this PC changed while the cloud save was downloading, so they weren't replaced. Sync again to choose which one to keep.": "Ваши сохранения на этом ПК изменились, пока загружалось облачное сохранение, поэтому они не были заменены. Синхронизируйте снова, чтобы выбрать, какое оставить." } diff --git a/ui/i18n/th.json b/ui/i18n/th.json index f0ed3291..ac8760d4 100644 --- a/ui/i18n/th.json +++ b/ui/i18n/th.json @@ -3390,5 +3390,8 @@ "Syncs when you press Play": "ซิงก์เมื่อคุณกดเล่น", "syncs when you press Play": "ซิงก์เมื่อคุณกดเล่น", "Saved {time}. What's there now is kept as a backup first.": "บันทึกเมื่อ {time} เซฟที่มีอยู่ตอนนี้จะถูกเก็บเป็นข้อมูลสำรองก่อน", - "A newer save is in the cloud": "มีเซฟที่ใหม่กว่าบนคลาวด์" + "A newer save is in the cloud": "มีเซฟที่ใหม่กว่าบนคลาวด์", + "A program from this game's folder is still running. Close it, then try again.": "ยังมีโปรแกรมจากโฟลเดอร์ของเกมนี้ทำงานอยู่ ปิดโปรแกรมนั้นแล้วลองอีกครั้ง", + "A program from this game's folder is already running. Close it to get your cloud save.": "มีโปรแกรมจากโฟลเดอร์ของเกมนี้ทำงานอยู่แล้ว ปิดโปรแกรมนั้นเพื่อรับเซฟบนคลาวด์ของคุณ", + "Your saves on this PC changed while the cloud save was downloading, so they weren't replaced. Sync again to choose which one to keep.": "เซฟบนพีซีเครื่องนี้เปลี่ยนไประหว่างที่กำลังดาวน์โหลดเซฟบนคลาวด์ จึงไม่ได้ถูกแทนที่ ซิงค์อีกครั้งเพื่อเลือกว่าจะเก็บอันไหน" } diff --git a/ui/i18n/tr.json b/ui/i18n/tr.json index 7d4eac4e..a1b0e789 100644 --- a/ui/i18n/tr.json +++ b/ui/i18n/tr.json @@ -3390,5 +3390,8 @@ "Syncs when you press Play": "Oyna'ya basınca eşitlenir", "syncs when you press Play": "Oyna'ya basınca eşitlenir", "Saved {time}. What's there now is kept as a backup first.": "{time} kaydedildi. Şu anki kayıt önce yedek olarak saklanır.", - "A newer save is in the cloud": "Bulutta daha yeni bir kayıt var" + "A newer save is in the cloud": "Bulutta daha yeni bir kayıt var", + "A program from this game's folder is still running. Close it, then try again.": "Bu oyunun klasöründen bir program hâlâ çalışıyor. Onu kapatın, sonra tekrar deneyin.", + "A program from this game's folder is already running. Close it to get your cloud save.": "Bu oyunun klasöründen bir program zaten çalışıyor. Bulut kaydını almak için onu kapatın.", + "Your saves on this PC changed while the cloud save was downloading, so they weren't replaced. Sync again to choose which one to keep.": "Bulut kaydı indirilirken bu bilgisayardaki kayıtların değişti, bu yüzden üzerlerine yazılmadı. Hangisini tutacağını seçmek için yeniden eşitle." } diff --git a/ui/i18n/uk.json b/ui/i18n/uk.json index ab8c44e7..b2b97cf0 100644 --- a/ui/i18n/uk.json +++ b/ui/i18n/uk.json @@ -3390,5 +3390,8 @@ "Syncs when you press Play": "Синхронізується, коли ви натиснете «Грати»", "syncs when you press Play": "синхронізується після натискання «Грати»", "Saved {time}. What's there now is kept as a backup first.": "Збережено {time}. Поточне спершу збережеться як копія.", - "A newer save is in the cloud": "У хмарі є новіше збереження" + "A newer save is in the cloud": "У хмарі є новіше збереження", + "A program from this game's folder is still running. Close it, then try again.": "Програма з папки цієї гри досі запущена. Закрий її, а потім спробуй ще раз.", + "A program from this game's folder is already running. Close it to get your cloud save.": "Програма з папки цієї гри вже запущена. Закрий її, щоб отримати хмарне збереження.", + "Your saves on this PC changed while the cloud save was downloading, so they weren't replaced. Sync again to choose which one to keep.": "Твої збереження на цьому ПК змінилися, поки завантажувалося хмарне збереження, тож їх не замінено. Синхронізуй ще раз, щоб вибрати, яке залишити." } diff --git a/ui/i18n/vi.json b/ui/i18n/vi.json index 13004c2a..32ddc0b3 100644 --- a/ui/i18n/vi.json +++ b/ui/i18n/vi.json @@ -3390,5 +3390,8 @@ "Syncs when you press Play": "Đồng bộ khi bạn nhấn Chơi", "syncs when you press Play": "đồng bộ khi bạn nhấn Chơi", "Saved {time}. What's there now is kept as a backup first.": "Đã lưu {time}. Bản hiện có sẽ được giữ lại làm bản sao lưu trước.", - "A newer save is in the cloud": "Có bản lưu mới hơn trên đám mây" + "A newer save is in the cloud": "Có bản lưu mới hơn trên đám mây", + "A program from this game's folder is still running. Close it, then try again.": "Một chương trình trong thư mục của trò chơi này vẫn đang chạy. Hãy đóng nó rồi thử lại.", + "A program from this game's folder is already running. Close it to get your cloud save.": "Một chương trình trong thư mục của trò chơi này đang chạy. Hãy đóng nó để nhận dữ liệu lưu đám mây.", + "Your saves on this PC changed while the cloud save was downloading, so they weren't replaced. Sync again to choose which one to keep.": "Dữ liệu lưu trên PC này đã thay đổi trong lúc đang tải dữ liệu lưu đám mây, nên chúng không bị thay thế. Hãy đồng bộ lại để chọn giữ bản nào." } diff --git a/ui/i18n/zh-Hans.json b/ui/i18n/zh-Hans.json index cebe1f10..f561387c 100644 --- a/ui/i18n/zh-Hans.json +++ b/ui/i18n/zh-Hans.json @@ -3390,5 +3390,8 @@ "Syncs when you press Play": "按“开始游戏”时同步", "syncs when you press Play": "按“开始游戏”时同步", "Saved {time}. What's there now is kept as a backup first.": "保存于{time}。当前存档会先保留为备份。", - "A newer save is in the cloud": "云端有较新的存档" + "A newer save is in the cloud": "云端有较新的存档", + "A program from this game's folder is still running. Close it, then try again.": "这个游戏文件夹中的某个程序仍在运行。请关闭它,然后重试。", + "A program from this game's folder is already running. Close it to get your cloud save.": "这个游戏文件夹中的某个程序已在运行。关闭它即可获取你的云存档。", + "Your saves on this PC changed while the cloud save was downloading, so they weren't replaced. Sync again to choose which one to keep.": "下载云存档期间,此电脑上的存档发生了变化,因此没有替换它们。请再次同步,选择要保留的那一份。" } diff --git a/ui/i18n/zh-Hant.json b/ui/i18n/zh-Hant.json index 287076ee..6716b7ce 100644 --- a/ui/i18n/zh-Hant.json +++ b/ui/i18n/zh-Hant.json @@ -3390,5 +3390,8 @@ "Syncs when you press Play": "按「開始遊戲」時同步", "syncs when you press Play": "按「開始遊戲」時同步", "Saved {time}. What's there now is kept as a backup first.": "儲存於{time}。目前的存檔會先保留為備份。", - "A newer save is in the cloud": "雲端有較新的存檔" + "A newer save is in the cloud": "雲端有較新的存檔", + "A program from this game's folder is still running. Close it, then try again.": "這個遊戲資料夾中的某個程式仍在執行。請關閉它,然後再試一次。", + "A program from this game's folder is already running. Close it to get your cloud save.": "這個遊戲資料夾中的某個程式已在執行。關閉它即可取得你的雲端存檔。", + "Your saves on this PC changed while the cloud save was downloading, so they weren't replaced. Sync again to choose which one to keep.": "下載雲端存檔期間,這台電腦上的存檔有所變動,因此沒有取代它們。請再次同步,選擇要保留哪一份。" } From df9d622e562f551eb77b287d8a5f54ec18201950 Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 22:42:39 +0200 Subject: [PATCH 29/35] Launcher Support: a game block without a program to start is not Easy Setup The box on an installed game counted any `game` block as Easy Setup, while Install only offers Easy Setup when the file also names a program to start. The folder check now goes through support_in, with tests for a file the launcher can't read (Mario Tennis Fever's, whose config.file is one path instead of a list: nothing counts) and for a complete file (everything counts). --- src-tauri/src/lib.rs | 58 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 56 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 2e732ce3..5623d6c0 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -1769,7 +1769,13 @@ async fn copy_files(st: State<'_, App>, id: String, picked: Option, drop #[tauri::command] fn support_local(st: State<'_, App>, id: String) -> Option { let dir = st.lib.lock().unwrap().installed.get(&id).map(|g| g.path.clone())?; - let p = profile::release_profile(&dir)?.profile; + support_in(&dir) +} + +/// What the recomplauncher.json in a game's folder covers. Null when there is none, and also when +/// the launcher can't read it: Play and Easy Setup skip such a file, so it sets up nothing. +fn support_in(dir: &Path) -> Option { + let p = profile::release_profile(dir)?.profile; Some(profile_covers(&p)) } @@ -1780,7 +1786,9 @@ fn profile_covers(p: &profile::Profile) -> Value { // required input of role game or disc that isn't a shared key. The site counts it the same way // (rs_sdk_easy), so the card agrees with the catalog. let copy_input = p.inputs.iter().any(|i| !i.optional && i.shared.is_empty() && (i.role == "game" || i.role == "disc")); - let easy_setup = game.is_some() || copy_input; + // A `game` block alone sets nothing up: Easy Setup (Profile::easy_setup) also needs a program + // to start, so without one the box would tick what Install doesn't offer. + let easy_setup = (p.start.is_some() && game.is_some()) || copy_input; json!({ "easy_setup": easy_setup, "settings": !p.settings.is_empty(), @@ -10502,6 +10510,52 @@ mod tests { assert_eq!(super::profile_covers(&p)["easy_setup"], false); } + #[test] + fn launcher_support_does_not_count_a_game_block_without_a_program_as_easy_setup() { + let p: crate::profile::Profile = serde_json::from_value(serde_json::json!({ "format": 1, "game": { "kind": "folder" } })).unwrap(); + assert_eq!(super::profile_covers(&p)["easy_setup"], false); + } + + // A game folder holding this recomplauncher.json, for support_in. + fn folder_with_file(name: &str, file: serde_json::Value) -> std::path::PathBuf { + let dir = std::env::temp_dir().join(format!("rl-support-{name}-{}", std::process::id())); + std::fs::create_dir_all(&dir).unwrap(); + std::fs::write(dir.join("recomplauncher.json"), file.to_string()).unwrap(); + dir + } + + // Mario Tennis Fever's file as released (v0.1.2): `config.file` is one path, not a list, so + // the launcher can't read the file at all, though every section is there. + fn unreadable_like_mtf() -> serde_json::Value { + serde_json::json!({ + "format": 1, + "game": { "kind": "folder", "check": { "file": "exefs/main" } }, + "start": { "program": ["mtf-recomp.exe"] }, + "saves": ["{install}/profile"], + "config": [{ "id": "main", "format": "ini", "file": "{install}/mtf.ini" }], + "settings": [{ "id": "fps", "label": "FPS", "choices": [{ "label": "60", "set": { "FPS_LIMIT": "60" } }] }], + "prepare": { "program": ["Setup.exe"], "args": ["--prepare", "--game", "{game}"], "done": ["{install}/mtf-recomp.exe"] } + }) + } + + #[test] + fn launcher_support_gives_nothing_for_a_file_the_launcher_cant_read() { + let dir = folder_with_file("unreadable", unreadable_like_mtf()); + assert!(super::support_in(&dir).is_none()); + let _ = std::fs::remove_dir_all(dir); + } + + #[test] + fn launcher_support_counts_every_feature_of_a_complete_file() { + let mut file = unreadable_like_mtf(); + file["config"][0]["file"] = serde_json::json!([{ "path": "{install}/mtf.ini" }]); + file["game"]["dumps"] = serde_json::json!([{ "name": "USA", "crc32": "1234abcd" }]); + let dir = folder_with_file("complete", file); + let all = serde_json::json!({ "easy_setup": true, "settings": true, "prepare": true, "verified": true, "saves": true }); + assert_eq!(super::support_in(&dir), Some(all)); + let _ = std::fs::remove_dir_all(dir); + } + #[test] fn the_catalogs_xbox_360_title_id_is_used_first_and_in_capitals() { use super::catalog_title; From 3292a283ac2011628b3efc9c920c72574a19f2b4 Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 22:46:46 +0200 Subject: [PATCH 30/35] Launcher Support counts only a file the launcher can read Mario Tennis Fever's page said Full Support / From the project with Easy Setup ticked, while its button was a plain Install and Before You Play asked the player to choose their copy by hand. Its release ships a recomplauncher.json with every section, so the catalog's labels call them all the project's, but the launcher can't read the file (config.file is one path, not a list): the catalog carries no copy of it, Install offers no Easy Setup and Play skips it. The box trusted those labels whenever it had no file of its own. Now each feature is the project's only when the file the launcher reads has it: the installed release's, or the copy of a checked release the catalog carries. A release file the launcher can't read shows as such ("In the release, but the launcher can't read it"), ticks nothing and asks the developer to check it with Developer tools. Before install, Easy Setup is the project's only when Install offers it (the easy_setup command), so the box and the button agree. Verified Copies needs known dumps or ids, as on an installed game, not only a check file. --- tests/integration-ownership.test.cjs | 69 ++++++++++++++++++++++++++-- ui/app.js | 31 +++++++++---- 2 files changed, 87 insertions(+), 13 deletions(-) diff --git a/tests/integration-ownership.test.cjs b/tests/integration-ownership.test.cjs index 25ddb49d..be1e3e2b 100644 --- a/tests/integration-ownership.test.cjs +++ b/tests/integration-ownership.test.cjs @@ -12,11 +12,12 @@ const block = source.match(/^\/\/ The part of recomplauncher\.json that adds eac const INSTALLED = { path: '/games/game', tag: 'v1.0.0', updated_at: 1 }; // The Launcher Support box on Overview, for a catalog entry and (installed) its own release file. -// `dev` is the developer's account, when they have one: { name, verified }. -function render(entry, local = null, dev = null) { +// `dev` is the developer's account, when they have one: { name, verified }. `offered`: the games +// Install offers Easy Setup for (the easy_setup command). +function render(entry, local = null, dev = null, offered = ['game']) { const fill = (s, args) => s.replace(/\{(\w+)\}/g, (m, k) => (k in args ? String(args[k]) : m)); const ctx = vm.createContext({ - S: { library: local ? { game: INSTALLED } : {}, easy: new Set(), supLocal: {} }, + S: { library: local ? { game: INSTALLED } : {}, easy: new Set(), easyAll: new Set(offered), supLocal: {} }, invoke: async () => local, builtinBoot: () => ({}), TURNKEY_HOW: [], t: (s) => s, N_: (s) => s, tf: fill, curLocale: () => 'en', esc: (s) => String(s).replaceAll('&', '&').replaceAll('<', '<').replaceAll('"', '"'), @@ -48,11 +49,71 @@ test("the installed release's own file makes the setup the project's", () => { }); test("with the project's own file, a setup feature is never ours", () => { - const row = rowOf(render({ support: { sdk: 'release', easy_setup: 'dev', settings: 'launcher' } }), 'Game Settings'); + const launcher = { format: 1, game: {}, start: { program: ['game.exe'] } }; + const row = rowOf(render({ launcher, support: { sdk: 'release', easy_setup: 'dev', settings: 'launcher' } }), 'Game Settings'); assert.doesNotMatch(row, /mark\.svg/); assert.match(row, /sup-no/); }); +// A checked release's file as the catalog carries it, setting up everything a project can. +const COMPLETE = { + format: 1, + game: { kind: 'folder', dumps: [{ name: 'USA', crc32: '1234abcd' }] }, + start: { program: ['game.exe'] }, + config: [{ id: 'main', format: 'ini', file: [{ path: '{install}/game.ini' }] }], + settings: [{ id: 'fps', label: 'FPS', choices: [{ label: '60', set: { FPS: '60' } }] }], + prepare: { program: ['Setup.exe'], args: ['--game', '{game}'] }, + saves: ['{install}/profile'], +}; +// The catalog's labels for a release whose file has every section, as the store counts them. +const ALL_DEV = { sdk: 'release', easy_setup: 'dev', settings: 'dev', prepare: 'dev', verified: 'dev', saves: 'dev' }; + +test('a release file the launcher reads, with everything in it, is Full Support', () => { + const html = render({ launcher: COMPLETE, support: ALL_DEV }, null, { name: 'Dev', verified: true }); + assert.match(html, /sup-full[^]*Full Support/); + assert.match(rowOf(html, 'Easy Setup'), /sup-p/); +}); + +// Mario Tennis Fever: its release ships a file with every section, so the store labels them all +// the project's, but the launcher can't read it (config.file is one path, not a list). The +// catalog then carries no copy of it, Install offers no Easy Setup and Play skips the file. +test("a release file the launcher can't read is not Full Support", () => { + const html = render({ support: ALL_DEV }, null, { name: 'Dev', verified: true }, []); + assert.doesNotMatch(html, /Full Support<\/span>/); + assert.doesNotMatch(html, /From the project/); +}); + +test("a release file the launcher can't read ticks none of its features", () => { + const html = render({ support: ALL_DEV }, null, { name: 'Dev', verified: true }, []); + for (const name of ['Easy Setup', 'Game Settings', 'Full Setup Step', 'Verified Copies', 'Cloud Saves']) assert.match(rowOf(html, name), /sup-no/, name); +}); + +test("a release file the launcher can't read says so and asks for it to be checked", () => { + const html = render({ support: ALL_DEV }, null, { name: 'Dev', verified: true }, []); + assert.match(html, /In the release, but the launcher can't read it/); + assert.match(html, /can't read it, so it sets nothing up yet/); + assert.match(issueOf(html), /RecompLauncher can't read it/); +}); + +test('Easy Setup is not the project\'s when Install does not offer it', () => { + const html = render({ launcher: COMPLETE, support: ALL_DEV }, null, { name: 'Dev', verified: true }, []); + assert.match(rowOf(html, 'Easy Setup'), /sup-no/); + assert.doesNotMatch(html, /Full Support<\/span>/); +}); + +test("the store's Verified Copies label doesn't count when the file has no known dumps", () => { + const launcher = { ...COMPLETE, game: { kind: 'folder', check: { file: 'exefs/main' } } }; + const html = render({ launcher, support: ALL_DEV }, null, { name: 'Dev', verified: true }); + assert.match(rowOf(html, 'Verified Copies'), /sup-no/); + assert.doesNotMatch(html, /Full Support<\/span>/); +}); + +test('a game block with no program to start is not Easy Setup', () => { + const launcher = { ...COMPLETE, start: undefined }; + const html = render({ launcher, support: ALL_DEV }, null, { name: 'Dev', verified: true }); + assert.match(rowOf(html, 'Easy Setup'), /sup-no/); +}); + test("a setup step the project's own file leaves out is not shown", () => { const html = render({}, { easy_setup: true, settings: true }); assert.doesNotMatch(html, /Full Setup Step/); diff --git a/ui/app.js b/ui/app.js index 95c4c505..ff00a56f 100644 --- a/ui/app.js +++ b/ui/app.js @@ -1355,6 +1355,7 @@ const SUP_KEYS = { easy_setup: '`game` and `start`', settings: '`config` and `se function supportIssue(ask) { const lines = ['Hi! I play this through RecompLauncher.', '']; if (ask.kind === 'repo') lines.push('Your repo has a `recomplauncher.json`, but your releases don\'t include it yet, so players don\'t get it. Could you put it at the top of your next release zip, next to the executable?'); + if (ask.kind === 'unread') lines.push('Your releases include a `recomplauncher.json`, but RecompLauncher can\'t read it, so it skips the whole file: no Easy Setup, settings or save backups yet. To see which part doesn\'t fit the format, turn on Developer tools in RecompLauncher (Settings → Developers) and add your build: its Developer tab marks it in red.'); if (ask.kind === 'none') lines.push('Could you add a `recomplauncher.json` to your releases? Then RecompLauncher sets the game up from the player\'s copy, shows its settings and backs up its saves.'); if (ask.kind === 'gaps' || ask.kind === 'ours') { lines.push('Your `recomplauncher.json` already does a lot. These would finish it:'); @@ -1379,7 +1380,7 @@ function askSupportUrl(a, ask) { return `${repoIssues(a.repo)}/new?title=${encodeURIComponent(title)}&body=${encodeURIComponent(body)}`; } // What a recomplauncher.json covers, the way support_local counts it, for a file the catalog -// carries as the project's own (a Forgejo project's repo file). +// carries as the project's own (a release the store checked, or a Forgejo project's repo file). function fileCovers(p) { const list = (v) => Array.isArray(v) && v.length > 0; const game = p && p.game && typeof p.game === 'object' ? p.game : null; @@ -1387,21 +1388,25 @@ function fileCovers(p) { // required input of role game or disc that isn't a shared key, as the site counts it. const inputs = Array.isArray(p && p.inputs) ? p.inputs : []; const copyInput = inputs.some((i) => i && !i.optional && !i.shared && ['game', 'disc'].includes(i.role || 'game')); + // A `game` block needs a program to start, as in Profile::easy_setup. + const started = !!(p && p.start); return { - easy_setup: !!game || copyInput, + easy_setup: (started && !!game) || copyInput, settings: list(p && p.settings), prepare: !!(p && p.prepare), verified: !!game && (list(game.dumps) || list(game.check && game.check.ids)), saves: list(p && p.saves), }; } -// Where a game's setup comes from. 'own': the project's own file reaches players (in the installed -// release, a release the store checked, or a Forgejo repo the launcher reads itself). 'repo': only +// Where a game's setup comes from. 'own': the launcher has the project's own file (in the +// installed release, the copy of a checked release the catalog carries, or a Forgejo repo the +// launcher reads itself). 'unread': the release has one but the launcher can't read it (the store +// leaves such a file out of the catalog, and Play skips it), so it sets nothing up. 'repo': only // its repo has one, which the launcher never reads for GitHub or GitLab. '' otherwise. function supportSource(a, local, sup) { if (local || a.launcher_from === 'repo') return 'own'; const sdk = sup ? sup.sdk : ''; - if (sdk === 'release') return 'own'; + if (sdk === 'release') return a.launcher ? 'own' : 'unread'; if (sdk === 'repo') return 'repo'; return ''; } @@ -1411,8 +1416,13 @@ function supportSource(a, local, sup) { // own file they're the project's or nothing. Copy checks and save folders can come from us too. function supportStates(a, local, sup, source) { const own = source === 'own'; - const file = local || (a.launcher_from === 'repo' ? fileCovers(a.launcher) : null); - const theirs = (k) => own && (file ? !!file[k] : !!sup && sup[k] === 'dev'); + // Only the file the launcher reads counts, never the catalog's labels alone: they were counted + // from the file as the store found it, even one the launcher can't read. + const file = local || (own ? fileCovers(a.launcher) : null); + // Before it's installed, Easy Setup is the project's only when Install offers it (the + // easy_setup command, from the same file), so the box and the button agree. + const easyOffered = !!local || !!(S.easyAll && S.easyAll.has(a.parent || a.id)); + const theirs = (k) => own && !!file && !!file[k] && (k !== 'easy_setup' || easyOffered); const boot = a.boot || builtinBoot()[a.id] || {}; const files = boot.files && typeof boot.files === 'object' ? boot.files : null; // Offline, without the catalog's labels: what our boot profile does. @@ -1422,7 +1432,9 @@ function supportStates(a, local, sup, source) { prepare: !!(boot.setup || boot.prepare), verified: !!(files && files.sha256), }; - const ours = (k) => (sup ? sup[k] === 'launcher' : !!guess[k]); + // With a release file the launcher can't read, the catalog's labels describe that file, while + // Play falls back to our boot profile: what it does is the guess. + const ours = (k) => (sup && source !== 'unread' ? sup[k] === 'launcher' : !!guess[k]); const setup = (k) => { if (theirs(k)) return 'p'; if (own) return k === 'prepare' ? 'na' : ''; @@ -1467,6 +1479,7 @@ function supportAsk(a, source, rows) { const filled = asked.filter((r) => r.s === 'l'); const base = { verified, todo: [...gaps, ...filled] }; if (source === 'repo') return { ...base, kind: 'repo', text: verified ? tf('{who}\'s repo has a setup file, but their releases don\'t include it yet. Ask them to add it to their next release.', { who }) : tf('{who}\'s repo has a setup file, but their releases don\'t include it yet. Ask them to add it to their next release, and to sign up as a developer and verify.', { who }) }; + if (source === 'unread') return { ...base, kind: 'unread', text: verified ? tf('{who}\'s release has a setup file, but RecompLauncher can\'t read it, so it sets nothing up yet. Ask them to check it with the launcher\'s Developer tools.', { who }) : tf('{who}\'s release has a setup file, but RecompLauncher can\'t read it, so it sets nothing up yet. Ask them to check it with the launcher\'s Developer tools, and to sign up as a developer and verify.', { who }) }; if (source !== 'own') return { ...base, kind: 'none', text: verified ? t('Ask the developer to add RecompLauncher support.') : t('Ask the developer to add RecompLauncher support, and to sign up as a developer and verify.') }; if (gaps.length) return { ...base, kind: 'gaps', text: verified ? t('Is a feature missing? Ask the developer to add it.') : t('Is a feature missing? Ask the developer to add it, and to sign up as a developer and verify.') }; const features = listOf(filled.map((r) => t(r.name))); @@ -1536,7 +1549,7 @@ function supportCard(a) { const row = (r) => `
${svg(r.icon, 'sup-i')}${esc(t(r.name))}${esc(r.line)}${markOf(r)}
`; // Where the setup comes from, and who made the game (with the tick when they're verified). const ourSetup = ['easy_setup', 'settings', 'prepare', 'verified'].some((k) => st[k] === 'l'); - const chip = source === 'own' ? ['own', svg(SUP_GIT, 'sup-ci'), t('From the project')] : source === 'repo' ? ['repo', svg(SUP_GIT, 'sup-ci'), t('In the repo, not in a release yet')] : ourSetup ? ['ours', '', t('From RecompLauncher')] : ['none', svg('', 'sup-ci'), t('No support yet')]; + const chip = source === 'own' ? ['own', svg(SUP_GIT, 'sup-ci'), t('From the project')] : source === 'repo' ? ['repo', svg(SUP_GIT, 'sup-ci'), t('In the repo, not in a release yet')] : source === 'unread' ? ['repo', svg(SUP_GIT, 'sup-ci'), t('In the release, but the launcher can\'t read it')] : ourSetup ? ['ours', '', t('From RecompLauncher')] : ['none', svg('', 'sup-ci'), t('No support yet')]; const badge = full ? `${svg('', 'sup-star')}${esc(t('Full Support'))}` : `${esc(tf('{n} of {total}', { n, total: shown.length }))}`; const askBox = ask ? `

${esc(ask.text)}

` : ''; return `

${esc(t('Launcher Support'))}

${badge}
From b2c7fb1fa5acbdf47b623c35407c6b1ab2ba5b66 Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 22:53:30 +0200 Subject: [PATCH 31/35] Docs: what Launcher Support counts as the project's own Only what the launcher can use: a file that doesn't fit the format counts for nothing, Easy Setup needs start with game (or a required game input), and Verified Copies needs game.dumps or game.check.ids. --- docs/DEVELOPERS.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/DEVELOPERS.md b/docs/DEVELOPERS.md index cf468552..e756cd6c 100644 --- a/docs/DEVELOPERS.md +++ b/docs/DEVELOPERS.md @@ -36,7 +36,10 @@ dump. Verification works with either. Game pages have a Launcher Support box. Each feature in it is marked as coming from your own `recomplauncher.json`, from RecompLauncher, or not there yet. A file that is only in your repo doesn't reach players, except on a Forgejo or Gitea server (see -[Where the file goes](#where-the-file-goes)). When everything you can control comes from +[Where the file goes](#where-the-file-goes)). Only what the launcher can use counts: a file that +doesn't fit the format is skipped whole (the box says the launcher can't read it), Easy Setup +needs `start` with `game` (or a required game input), and Verified Copies needs `game.dumps` or +`game.check.ids`, not only a `check.file`. When everything you can control comes from your own file, the box says Full Support. A free [developer account](https://recomplauncher.com/developers?signup=1) puts the verified tick next to your name there. From f5614e1ddf3b379f6095d43466baa4edb21f8923 Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 23:03:48 +0200 Subject: [PATCH 32/35] Launcher Support: no file is called unreadable before it's read Before install, a release the store says has a recomplauncher.json but that the catalog has no copy of was shown as "the launcher can't read it", with an Ask box blaming the file. The missing copy isn't proof: of the 21 such games in the catalog, the launcher reads 17 release files fine, 2 assets have no file, and only Mario Tennis Fever's and SuperWonders' fail. Such a game now shows "In the release, read once it's installed": it claims nothing from that file, asks nobody anything, and is never Full Support. Once installed, the launcher reads the file itself. --- tests/integration-ownership.test.cjs | 18 +++++++++--------- ui/app.js | 21 +++++++++++---------- 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/tests/integration-ownership.test.cjs b/tests/integration-ownership.test.cjs index be1e3e2b..926ef4af 100644 --- a/tests/integration-ownership.test.cjs +++ b/tests/integration-ownership.test.cjs @@ -74,25 +74,25 @@ test('a release file the launcher reads, with everything in it, is Full Support' assert.match(rowOf(html, 'Easy Setup'), /sup-p/); }); -// Mario Tennis Fever: its release ships a file with every section, so the store labels them all -// the project's, but the launcher can't read it (config.file is one path, not a list). The -// catalog then carries no copy of it, Install offers no Easy Setup and Play skips the file. -test("a release file the launcher can't read is not Full Support", () => { +// Mario Tennis Fever before install: its release ships a file with every section, so the store +// labels them all the project's, but the catalog carries no copy (the launcher can't read the +// file: config.file is one path, not a list). Install offers no Easy Setup. +test('a release file the catalog has no copy of is not Full Support before install', () => { const html = render({ support: ALL_DEV }, null, { name: 'Dev', verified: true }, []); assert.doesNotMatch(html, /Full Support<\/span>/); assert.doesNotMatch(html, /From the project/); }); -test("a release file the launcher can't read ticks none of its features", () => { +test('a release file the catalog has no copy of ticks none of its features before install', () => { const html = render({ support: ALL_DEV }, null, { name: 'Dev', verified: true }, []); for (const name of ['Easy Setup', 'Game Settings', 'Full Setup Step', 'Verified Copies', 'Cloud Saves']) assert.match(rowOf(html, name), /sup-no/, name); }); -test("a release file the launcher can't read says so and asks for it to be checked", () => { +test('a release file the catalog has no copy of is read once installed, and nobody is asked anything', () => { + // The copy can be missing for a reason other than a broken file, so the developer isn't blamed. const html = render({ support: ALL_DEV }, null, { name: 'Dev', verified: true }, []); - assert.match(html, /In the release, but the launcher can't read it/); - assert.match(html, /can't read it, so it sets nothing up yet/); - assert.match(issueOf(html), /RecompLauncher can't read it/); + assert.match(html, /In the release, read once it's installed/); + assert.doesNotMatch(html, /sup-ask/); }); test('Easy Setup is not the project\'s when Install does not offer it', () => { diff --git a/ui/app.js b/ui/app.js index ff00a56f..373f2b50 100644 --- a/ui/app.js +++ b/ui/app.js @@ -1355,7 +1355,6 @@ const SUP_KEYS = { easy_setup: '`game` and `start`', settings: '`config` and `se function supportIssue(ask) { const lines = ['Hi! I play this through RecompLauncher.', '']; if (ask.kind === 'repo') lines.push('Your repo has a `recomplauncher.json`, but your releases don\'t include it yet, so players don\'t get it. Could you put it at the top of your next release zip, next to the executable?'); - if (ask.kind === 'unread') lines.push('Your releases include a `recomplauncher.json`, but RecompLauncher can\'t read it, so it skips the whole file: no Easy Setup, settings or save backups yet. To see which part doesn\'t fit the format, turn on Developer tools in RecompLauncher (Settings → Developers) and add your build: its Developer tab marks it in red.'); if (ask.kind === 'none') lines.push('Could you add a `recomplauncher.json` to your releases? Then RecompLauncher sets the game up from the player\'s copy, shows its settings and backs up its saves.'); if (ask.kind === 'gaps' || ask.kind === 'ours') { lines.push('Your `recomplauncher.json` already does a lot. These would finish it:'); @@ -1400,13 +1399,14 @@ function fileCovers(p) { } // Where a game's setup comes from. 'own': the launcher has the project's own file (in the // installed release, the copy of a checked release the catalog carries, or a Forgejo repo the -// launcher reads itself). 'unread': the release has one but the launcher can't read it (the store -// leaves such a file out of the catalog, and Play skips it), so it sets nothing up. 'repo': only -// its repo has one, which the launcher never reads for GitHub or GitLab. '' otherwise. +// launcher reads itself). 'unchecked': the store says the release has one, but the catalog +// carries no copy, so the launcher hasn't read it and claims nothing from it until it's +// installed (the copy can be missing because the file is broken, or for another reason). 'repo': +// only its repo has one, which the launcher never reads for GitHub or GitLab. '' otherwise. function supportSource(a, local, sup) { if (local || a.launcher_from === 'repo') return 'own'; const sdk = sup ? sup.sdk : ''; - if (sdk === 'release') return a.launcher ? 'own' : 'unread'; + if (sdk === 'release') return a.launcher ? 'own' : 'unchecked'; if (sdk === 'repo') return 'repo'; return ''; } @@ -1432,9 +1432,9 @@ function supportStates(a, local, sup, source) { prepare: !!(boot.setup || boot.prepare), verified: !!(files && files.sha256), }; - // With a release file the launcher can't read, the catalog's labels describe that file, while - // Play falls back to our boot profile: what it does is the guess. - const ours = (k) => (sup && source !== 'unread' ? sup[k] === 'launcher' : !!guess[k]); + // With a release file the launcher hasn't read, the catalog's labels describe that file, while + // Install uses our boot profile: what it does is the guess. + const ours = (k) => (sup && source !== 'unchecked' ? sup[k] === 'launcher' : !!guess[k]); const setup = (k) => { if (theirs(k)) return 'p'; if (own) return k === 'prepare' ? 'na' : ''; @@ -1479,7 +1479,8 @@ function supportAsk(a, source, rows) { const filled = asked.filter((r) => r.s === 'l'); const base = { verified, todo: [...gaps, ...filled] }; if (source === 'repo') return { ...base, kind: 'repo', text: verified ? tf('{who}\'s repo has a setup file, but their releases don\'t include it yet. Ask them to add it to their next release.', { who }) : tf('{who}\'s repo has a setup file, but their releases don\'t include it yet. Ask them to add it to their next release, and to sign up as a developer and verify.', { who }) }; - if (source === 'unread') return { ...base, kind: 'unread', text: verified ? tf('{who}\'s release has a setup file, but RecompLauncher can\'t read it, so it sets nothing up yet. Ask them to check it with the launcher\'s Developer tools.', { who }) : tf('{who}\'s release has a setup file, but RecompLauncher can\'t read it, so it sets nothing up yet. Ask them to check it with the launcher\'s Developer tools, and to sign up as a developer and verify.', { who }) }; + // Not read yet: nothing is known to be missing, so there's nothing to ask for. + if (source === 'unchecked') return null; if (source !== 'own') return { ...base, kind: 'none', text: verified ? t('Ask the developer to add RecompLauncher support.') : t('Ask the developer to add RecompLauncher support, and to sign up as a developer and verify.') }; if (gaps.length) return { ...base, kind: 'gaps', text: verified ? t('Is a feature missing? Ask the developer to add it.') : t('Is a feature missing? Ask the developer to add it, and to sign up as a developer and verify.') }; const features = listOf(filled.map((r) => t(r.name))); @@ -1549,7 +1550,7 @@ function supportCard(a) { const row = (r) => `
${svg(r.icon, 'sup-i')}${esc(t(r.name))}${esc(r.line)}${markOf(r)}
`; // Where the setup comes from, and who made the game (with the tick when they're verified). const ourSetup = ['easy_setup', 'settings', 'prepare', 'verified'].some((k) => st[k] === 'l'); - const chip = source === 'own' ? ['own', svg(SUP_GIT, 'sup-ci'), t('From the project')] : source === 'repo' ? ['repo', svg(SUP_GIT, 'sup-ci'), t('In the repo, not in a release yet')] : source === 'unread' ? ['repo', svg(SUP_GIT, 'sup-ci'), t('In the release, but the launcher can\'t read it')] : ourSetup ? ['ours', '', t('From RecompLauncher')] : ['none', svg('', 'sup-ci'), t('No support yet')]; + const chip = source === 'own' ? ['own', svg(SUP_GIT, 'sup-ci'), t('From the project')] : source === 'repo' ? ['repo', svg(SUP_GIT, 'sup-ci'), t('In the repo, not in a release yet')] : source === 'unchecked' ? ['repo', svg(SUP_GIT, 'sup-ci'), t('In the release, read once it\'s installed')] : ourSetup ? ['ours', '', t('From RecompLauncher')] : ['none', svg('', 'sup-ci'), t('No support yet')]; const badge = full ? `${svg('', 'sup-star')}${esc(t('Full Support'))}` : `${esc(tf('{n} of {total}', { n, total: shown.length }))}`; const askBox = ask ? `

${esc(ask.text)}

` : ''; return `

${esc(t('Launcher Support'))}

${badge}
From a9016069661d8507e00237ea4d75739d36000741 Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 23:07:54 +0200 Subject: [PATCH 33/35] Launcher Support: a release file the launcher can't read shows what's wrong When an installed release has a recomplauncher.json the launcher can't read, Play and Easy Setup skip it and the box fell back to the catalog's labels. support_local now says why instead ({"problem": "\"config[0].file\" should be a list."}): the field where reading stopped and what it should be, a missing field, broken JSON with its line, or a format other than 1. The box then shows that problem in place of the features, with a File Problem tag (never Full Support) and Tell the Developer, which opens an issue on the game's repo with the game, its release and the problem. The game still installs and plays as a plain install. A release with no recomplauncher.json at all is not a problem and keeps the catalog fallback. --- src-tauri/src/lib.rs | 26 +++-- src-tauri/src/profile.rs | 152 +++++++++++++++++++++++++++ tests/integration-ownership.test.cjs | 38 +++++++ ui/app.css | 1 + ui/app.js | 24 ++++- 5 files changed, 233 insertions(+), 8 deletions(-) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 5623d6c0..3de008b7 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -1772,11 +1772,15 @@ fn support_local(st: State<'_, App>, id: String) -> Option { support_in(&dir) } -/// What the recomplauncher.json in a game's folder covers. Null when there is none, and also when -/// the launcher can't read it: Play and Easy Setup skip such a file, so it sets up nothing. +/// What the recomplauncher.json in a game's folder covers. Null when there is none. A file the +/// launcher can't read sets nothing up (Play and Easy Setup skip it): `{"problem": …}` says why, +/// for the box to show instead of the catalog's labels. fn support_in(dir: &Path) -> Option { - let p = profile::release_profile(dir)?.profile; - Some(profile_covers(&p)) + if let Some(owned) = profile::release_profile(dir) { + return Some(profile_covers(&owned.profile)); + } + let problem = profile::release_file_problem(dir)?; + Some(json!({ "problem": problem })) } /// Each Launcher Support feature a recomplauncher.json sets up itself. @@ -10539,10 +10543,20 @@ mod tests { } #[test] - fn launcher_support_gives_nothing_for_a_file_the_launcher_cant_read() { + fn launcher_support_gives_only_the_problem_for_a_file_the_launcher_cant_read() { let dir = folder_with_file("unreadable", unreadable_like_mtf()); - assert!(super::support_in(&dir).is_none()); + let found = super::support_in(&dir); + let _ = std::fs::remove_dir_all(dir); + assert_eq!(found, Some(serde_json::json!({ "problem": "\"config[0].file\" should be a list." }))); + } + + #[test] + fn launcher_support_gives_nothing_for_a_folder_without_a_file() { + let dir = std::env::temp_dir().join(format!("rl-support-none-{}", std::process::id())); + std::fs::create_dir_all(&dir).unwrap(); + let found = super::support_in(&dir); let _ = std::fs::remove_dir_all(dir); + assert_eq!(found, None); } #[test] diff --git a/src-tauri/src/profile.rs b/src-tauri/src/profile.rs index d29dcdae..6fa6ebb7 100644 --- a/src-tauri/src/profile.rs +++ b/src-tauri/src/profile.rs @@ -1170,6 +1170,125 @@ pub(crate) fn release_profile(dir: &Path) -> Option { parse(&bytes, None) } +/// Why the launcher skips the release's recomplauncher.json in this folder, in plain words, for a +/// folder where release_profile found nothing to use. None when there is no file at all: that +/// isn't a problem, the launcher just sets the game up without one. +pub(crate) fn release_file_problem(dir: &Path) -> Option { + if dir.as_os_str().is_empty() { + return None; + } + let embedded = crate::appimage::installed_image(dir).and_then(|image| crate::appimage::manifest(&image).ok()); + let bytes = embedded.or_else(|| std::fs::read(dir.join(crate::appimage::MANIFEST)).ok())?; + Some(file_problem(without_bom(&bytes))) +} + +/// What's wrong with a recomplauncher.json the launcher can't use: the first thing, as the +/// developer would fix it ("config[0].file" should be a list). +fn file_problem(bytes: &[u8]) -> String { + let text = String::from_utf8_lossy(bytes); + let v = match serde_json::from_str::(&text) { + Ok(v) => v, + Err(e) => return format!("It isn't valid JSON (line {}, column {}).", e.line(), e.column()), + }; + if v.get("format").and_then(Value::as_u64) != Some(1) { + return "\"format\" has to be 1.".into(); + } + let Err(e) = serde_json::from_str::(&text) else { + return "The launcher can't read it.".into(); + }; + let at = json_path_at(&text, e.line(), e.column()); + // serde_json ends its message with where it stopped; the path says that better. + let full = e.to_string(); + let said = full.split(" at line ").next().unwrap_or(&full); + let what = plain_type_error(said); + if at.is_empty() { + return format!("The file {what}."); + } + format!("\"{at}\" {what}.") +} + +/// A serde message in the words of the format guide. +fn plain_type_error(said: &str) -> String { + if let Some(field) = said.strip_prefix("missing field `").and_then(|s| s.split('`').next()) { + return format!("needs \"{field}\""); + } + if let Some(value) = said.strip_prefix("unknown variant `").and_then(|s| s.split('`').next()) { + return format!("can't be \"{value}\""); + } + let expected = said.rsplit("expected ").next().unwrap_or(""); + let kind = match expected { + "a sequence" => "a list", + "a string" => "text", + "a boolean" => "true or false", + "a map" => "an object, in { }", + _ if expected.starts_with("struct ") => "an object, in { }", + _ if expected.starts_with('u') || expected.starts_with('i') || expected.starts_with('f') => "a number", + _ => return said.to_string(), + }; + format!("should be {kind}") +} + +/// The place in a JSON text where a parse stopped (serde_json's line and column), as a path like +/// config[0].file: the keys and list positions around it. +fn json_path_at(text: &str, line: usize, column: usize) -> String { + enum Frame { + Object { key: Option, wants_key: bool }, + List { at: usize }, + } + let start: usize = text.split('\n').take(line.saturating_sub(1)).map(|l| l.len() + 1).sum(); + let last = (start + column).saturating_sub(1).min(text.len()); + let bytes = text.as_bytes(); + let mut stack: Vec = vec![]; + let mut i = 0; + while i < last { + match bytes[i] { + b'"' => { + let from = i + 1; + i = from; + while i < bytes.len() && bytes[i] != b'"' { + i += if bytes[i] == b'\\' { 2 } else { 1 }; + } + if let Some(Frame::Object { key, wants_key: wants @ true }) = stack.last_mut() { + *key = Some(text[from..i.min(text.len())].to_string()); + *wants = false; + } + } + b'{' => stack.push(Frame::Object { key: None, wants_key: true }), + b'[' => stack.push(Frame::List { at: 0 }), + b'}' | b']' => { + stack.pop(); + } + b',' => match stack.last_mut() { + Some(Frame::Object { key, wants_key }) => { + *key = None; + *wants_key = true; + } + Some(Frame::List { at }) => *at += 1, + None => {} + }, + _ => {} + } + i += 1; + } + // Stopped on an object's closing brace (a missing field): the error is about the whole object, + // not its last key. + if bytes.get(last) == Some(&b'}') { + if let Some(Frame::Object { key, .. }) = stack.last_mut() { + *key = None; + } + } + let mut path = String::new(); + for frame in &stack { + match frame { + Frame::Object { key: Some(k), .. } if path.is_empty() => path.push_str(k), + Frame::Object { key: Some(k), .. } => path.push_str(&format!(".{k}")), + Frame::Object { key: None, .. } => {} + Frame::List { at } => path.push_str(&format!("[{at}]")), + } + } + path +} + fn find_own(game_dir: &Path, repo: &str, entry: &Value) -> Option { let ok = |p: Profile| (p.format == 1).then_some(p); if let Some(owned) = release_profile(game_dir) { @@ -2764,6 +2883,39 @@ mod tests { assert_eq!(found.map(|p| p.profile.format), Some(1)); } + // Mario Tennis Fever's mistake (v0.1.2): config.file as one path instead of a list. + const ONE_PATH: &str = "{\n \"format\": 1,\n \"start\": { \"program\": [\"game.exe\"] },\n \"config\": [\n { \"id\": \"main\", \"format\": \"ini\", \"file\": \"{install}/game.ini\" }\n ]\n}"; + + #[test] + fn a_file_problem_names_the_field_and_what_it_should_be() { + assert_eq!(super::file_problem(ONE_PATH.as_bytes()), "\"config[0].file\" should be a list."); + } + + #[test] + fn a_file_problem_names_a_missing_field() { + let text = r#"{"format":1,"settings":[{"id":"a","label":"A","choices":[]},{"label":"B"}]}"#; + assert_eq!(super::file_problem(text.as_bytes()), "\"settings[1]\" needs \"id\"."); + } + + #[test] + fn a_file_problem_gives_the_line_of_broken_json() { + assert_eq!(super::file_problem(b"{\n \"format\": 1,\n}"), "It isn't valid JSON (line 3, column 1)."); + } + + #[test] + fn a_file_problem_asks_for_format_1() { + assert_eq!(super::file_problem(br#"{"format":2}"#), "\"format\" has to be 1."); + } + + #[test] + fn a_folder_without_a_file_has_no_file_problem() { + let dir = std::env::temp_dir().join(format!("rl-no-file-{}", std::process::id())); + std::fs::create_dir_all(&dir).unwrap(); + let problem = super::release_file_problem(&dir); + std::fs::remove_dir_all(&dir).unwrap(); + assert_eq!(problem, None); + } + #[test] fn system_reads_each_part_and_a_profile_without_it_writes_none() { let p: super::Profile = serde_json::from_str(r#"{"format":1,"system":{"linux":{"glibc":"2.35","graphics":{"vulkan":"1.3"}},"windows":{"version":"11"}}}"#).unwrap(); diff --git a/tests/integration-ownership.test.cjs b/tests/integration-ownership.test.cjs index 926ef4af..f2688881 100644 --- a/tests/integration-ownership.test.cjs +++ b/tests/integration-ownership.test.cjs @@ -95,6 +95,44 @@ test('a release file the catalog has no copy of is read once installed, and nobo assert.doesNotMatch(html, /sup-ask/); }); +// Installed: support_local read the release's file and says what's wrong with it. +const PROBLEM = { problem: '"config[0].file" should be a list.' }; + +test("an installed release file the launcher can't read shows the problem, not Full Support", () => { + const html = render({ support: ALL_DEV, launcher: COMPLETE }, PROBLEM, { name: 'Dev', verified: true }); + assert.match(html, /recomplauncher\.json has a problem/); + assert.match(html, /"config\[0\]\.file" should be a list\./); + assert.doesNotMatch(html, /Full Support<\/span>/); +}); + +test("an installed release file the launcher can't read shows no feature", () => { + const html = render({ support: ALL_DEV, launcher: COMPLETE }, PROBLEM, { name: 'Dev', verified: true }); + assert.doesNotMatch(html, /sup-row/); + assert.doesNotMatch(html, /From the project/); +}); + +test('Tell the Developer opens an issue with the game, its release and the problem', () => { + const html = render({ name: 'MTF Recomp', support: ALL_DEV }, PROBLEM, { name: 'Dev', verified: true }); + assert.match(html, /Tell the Developer/); + const issue = issueOf(html); + assert.match(issue, /recomplauncher\.json` in MTF Recomp v1\.0\.0/); + assert.match(issue, /The problem: "config\[0\]\.file" should be a list\./); + assert.match(decodeURIComponent(html.match(/title=([^"&]*)/)[1]), /can't read recomplauncher\.json in v1\.0\.0/); +}); + +test('an installed release without a file of its own keeps the catalog fallback', () => { + // support_local gives null for a folder with no recomplauncher.json: that isn't a problem. + const html = render({ launcher: COMPLETE, support: ALL_DEV }, null, { name: 'Dev', verified: true }); + assert.doesNotMatch(html, /has a problem/); + assert.match(html, /sup-full[^]*Full Support/); +}); + +test('an installed release file the launcher reads, with everything in it, is Full Support', () => { + const html = render({ support: ALL_DEV }, EVERYTHING, { name: 'Dev', verified: true }); + assert.doesNotMatch(html, /has a problem/); + assert.match(html, /sup-full[^]*Full Support/); +}); + test('Easy Setup is not the project\'s when Install does not offer it', () => { const html = render({ launcher: COMPLETE, support: ALL_DEV }, null, { name: 'Dev', verified: true }, []); assert.match(rowOf(html, 'Easy Setup'), /sup-no/); diff --git a/ui/app.css b/ui/app.css index e0737512..a70042c7 100644 --- a/ui/app.css +++ b/ui/app.css @@ -2479,6 +2479,7 @@ body.mac .tile .glow{display:none} .sup-star{width:13px;height:13px} .sup-ask{display:flex;flex-direction:column;gap:10px;margin-top:12px;padding:14px;border-radius:14px;background:var(--card2)} .sup-ask p{margin:0;font-size:13px;color:var(--muted)} +.sup-ask .sup-err{color:var(--ink);font-family:ui-monospace,Consolas,monospace;overflow-wrap:anywhere} /* The crash window: the game's own last error line */ .modal .fatal-line{display:flex;flex-direction:column;gap:4px;margin:0} .modal .fatal-line code{font-size:12.5px;padding:8px 10px;border-radius:10px;background:var(--card2);color:var(--text);overflow-wrap:anywhere;white-space:pre-wrap} diff --git a/ui/app.js b/ui/app.js index 373f2b50..572dccc5 100644 --- a/ui/app.js +++ b/ui/app.js @@ -1355,6 +1355,11 @@ const SUP_KEYS = { easy_setup: '`game` and `start`', settings: '`config` and `se function supportIssue(ask) { const lines = ['Hi! I play this through RecompLauncher.', '']; if (ask.kind === 'repo') lines.push('Your repo has a `recomplauncher.json`, but your releases don\'t include it yet, so players don\'t get it. Could you put it at the top of your next release zip, next to the executable?'); + if (ask.kind === 'broken') { + lines.push(`RecompLauncher can't read the \`recomplauncher.json\` in ${ask.game} ${ask.version}, so it skips the whole file: no Easy Setup, settings or save backups from it. The game still installs and plays as it is.`, ''); + lines.push(`The problem: ${ask.error}`, ''); + lines.push('To check a fix before you release it, turn on Developer tools in RecompLauncher (Settings → Developers) and add your build: its Developer tab reads the file and marks problems in red.'); + } if (ask.kind === 'none') lines.push('Could you add a `recomplauncher.json` to your releases? Then RecompLauncher sets the game up from the player\'s copy, shows its settings and backs up its saves.'); if (ask.kind === 'gaps' || ask.kind === 'ours') { lines.push('Your `recomplauncher.json` already does a lot. These would finish it:'); @@ -1362,7 +1367,7 @@ function supportIssue(ask) { } if (ask.kind === 'verify') lines.push('Your game already gets its setup from your own `recomplauncher.json`. Thank you!'); lines.push(''); - if (ask.kind !== 'verify') { + if (ask.kind !== 'verify' && ask.kind !== 'broken') { lines.push('The quickest way: ask your AI coding agent to read this and follow it. It writes the file and adds it to your release:', 'https://recomplauncher.com/sdk-files/recomplauncher-agent.md', ''); lines.push('The guide, if you\'d rather do it yourself: https://recomplauncher.com/sdk', ''); } @@ -1372,7 +1377,8 @@ function supportIssue(ask) { // A new issue on the recomp's own page, asking for what Launcher Support says is missing. Opened for // the player to send themselves; nothing is sent from here. function askSupportUrl(a, ask) { - const title = ask.kind === 'verify' ? 'RecompLauncher: verify as the developer' : 'RecompLauncher support'; + const titles = { verify: 'RecompLauncher: verify as the developer', broken: `RecompLauncher can't read recomplauncher.json in ${ask.version}` }; + const title = titles[ask.kind] || 'RecompLauncher support'; const body = supportIssue(ask); if (isSF(a.repo)) return repoIssues(a.repo); if (isLab(a.repo)) return `${repoHome(a.repo)}/-/issues/new?issue[title]=${encodeURIComponent(title)}&issue[description]=${encodeURIComponent(body)}`; @@ -1512,10 +1518,24 @@ function supLocalFor(id) { }).catch(() => {}); return null; } +// The release's recomplauncher.json is there, but the launcher can't read it, so Play and Easy +// Setup skip it. The box says why instead of showing features, and the player can pass the +// problem on to the developer. The game still installs and plays as a plain install. +function supportProblemCard(a, problem) { + const d = devOf(a); + const g = S.library[a.id]; + const version = (g && g.tag) || a.tag || a.version || ''; + const ask = { kind: 'broken', verified: !!(d && d.verified), todo: [], game: a.name || a.id, version, error: problem }; + const tell = a.repo ? `` : ''; + return `

${esc(t('Launcher Support'))}

${esc(t('File Problem'))}
+
${byDev(a)}
+

${esc(t('This game\'s recomplauncher.json has a problem, so the launcher can\'t use it and sets nothing up from it. It still installs and plays; set it up the way its project explains.'))}

${esc(problem)}

${tell}
`; +} function supportCard(a) { if (!a || a.soon) return ''; const id = a.id; const local = supLocalFor(id); + if (local && local.problem) return supportProblemCard(a, String(local.problem)); const sup = a.support && typeof a.support === 'object' ? a.support : null; const source = supportSource(a, local, sup); const st = supportStates(a, local, sup, source); From dda091530d82874ff79d7d82487d22bb1f7bda70 Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Tue, 24 Nov 2026 23:07:46 +0200 Subject: [PATCH 34/35] Launcher Support: the new texts in every language File Problem, Tell the Developer, the sentence about a file the launcher can't use, and "In the release, read once it's installed", added mid-file in each full language file. The problem line itself stays in English: it's for the developer and goes into the issue as it is. --- ui/i18n/ar.json | 4 ++++ ui/i18n/de.json | 4 ++++ ui/i18n/es-419.json | 4 ++++ ui/i18n/es.json | 4 ++++ ui/i18n/fr.json | 4 ++++ ui/i18n/id.json | 4 ++++ ui/i18n/it.json | 4 ++++ ui/i18n/ja.json | 4 ++++ ui/i18n/ko.json | 4 ++++ ui/i18n/nl.json | 4 ++++ ui/i18n/pl.json | 4 ++++ ui/i18n/pt-BR.json | 4 ++++ ui/i18n/pt.json | 4 ++++ ui/i18n/ru.json | 4 ++++ ui/i18n/th.json | 4 ++++ ui/i18n/tr.json | 4 ++++ ui/i18n/uk.json | 4 ++++ ui/i18n/vi.json | 4 ++++ ui/i18n/zh-Hans.json | 4 ++++ ui/i18n/zh-Hant.json | 4 ++++ 20 files changed, 80 insertions(+) diff --git a/ui/i18n/ar.json b/ui/i18n/ar.json index a6ce2e7e..8de4c424 100644 --- a/ui/i18n/ar.json +++ b/ui/i18n/ar.json @@ -2416,6 +2416,10 @@ "Full Support": "دعم كامل", "Full Support: everything RecompLauncher can do here is set up by the project's own file. The handheld rating comes from players, so it doesn't count.": "دعم كامل: كل ما يمكن لـ RecompLauncher فعله هنا يُعدّه ملف المشروع نفسه. تقييم الأجهزة المحمولة يأتي من اللاعبين، لذا لا يُحتسب.", "In the repo, not in a release yet": "في المستودع، وليس في إصدار بعد", + "File Problem": "مشكلة في الملف", + "Tell the Developer": "أخبر المطوّر", + "This game's recomplauncher.json has a problem, so the launcher can't use it and sets nothing up from it. It still installs and plays; set it up the way its project explains.": "في ملف recomplauncher.json لهذه اللعبة مشكلة، لذا لا يستطيع المشغّل استخدامه ولا يُعدّ منه شيئًا. لا تزال اللعبة تُثبَّت وتعمل؛ أعدّها كما يشرح مشروعها.", + "In the release, read once it's installed": "في الإصدار، يُقرأ بعد التثبيت", "No support yet": "لا يوجد دعم بعد", "Not yet: neither the project nor RecompLauncher does this.": "ليس بعد: لا يقوم المشروع ولا RecompLauncher بهذا.", "Not yet: no handheld player has rated it.": "ليس بعد: لم يقيّمها أي لاعب على جهاز محمول.", diff --git a/ui/i18n/de.json b/ui/i18n/de.json index 0297eee6..1a60e1a0 100644 --- a/ui/i18n/de.json +++ b/ui/i18n/de.json @@ -2416,6 +2416,10 @@ "Full Support": "Volle Unterstützung", "Full Support: everything RecompLauncher can do here is set up by the project's own file. The handheld rating comes from players, so it doesn't count.": "Volle Unterstützung: Alles, was RecompLauncher hier kann, richtet die eigene Datei des Projekts ein. Die Handheld-Bewertung kommt von Spielern und zählt deshalb nicht.", "In the repo, not in a release yet": "Im Repo, noch in keinem Release", + "File Problem": "Dateiproblem", + "Tell the Developer": "Entwickler informieren", + "This game's recomplauncher.json has a problem, so the launcher can't use it and sets nothing up from it. It still installs and plays; set it up the way its project explains.": "Die recomplauncher.json dieses Spiels hat ein Problem, daher kann der Launcher sie nicht nutzen und richtet nichts daraus ein. Es lässt sich trotzdem installieren und spielen; richte es so ein, wie sein Projekt es erklärt.", + "In the release, read once it's installed": "Im Release, wird nach der Installation gelesen", "No support yet": "Noch keine Unterstützung", "Not yet: neither the project nor RecompLauncher does this.": "Noch nicht: Weder das Projekt noch RecompLauncher übernimmt das.", "Not yet: no handheld player has rated it.": "Noch nicht: Kein Handheld-Spieler hat es bewertet.", diff --git a/ui/i18n/es-419.json b/ui/i18n/es-419.json index 6dc972d2..f8136369 100644 --- a/ui/i18n/es-419.json +++ b/ui/i18n/es-419.json @@ -2405,6 +2405,10 @@ "Full Support": "Compatibilidad total", "Full Support: everything RecompLauncher can do here is set up by the project's own file. The handheld rating comes from players, so it doesn't count.": "Compatibilidad total: todo lo que RecompLauncher puede hacer aquí lo configura el propio archivo del proyecto. La calificación en portátiles viene de los jugadores, así que no cuenta.", "In the repo, not in a release yet": "En el repositorio, todavía no en una versión", + "File Problem": "Problema con el archivo", + "Tell the Developer": "Avisar al desarrollador", + "This game's recomplauncher.json has a problem, so the launcher can't use it and sets nothing up from it. It still installs and plays; set it up the way its project explains.": "El recomplauncher.json de este juego tiene un problema, así que el lanzador no puede usarlo y no configura nada con él. Igual se instala y se juega; configúralo como explica su proyecto.", + "In the release, read once it's installed": "En la versión, se lee al instalarlo", "No support yet": "Todavía sin compatibilidad", "Not yet: neither the project nor RecompLauncher does this.": "Todavía no: ni el proyecto ni RecompLauncher se encargan de esto.", "Not yet: no handheld player has rated it.": "Todavía no: ningún jugador de portátil lo calificó.", diff --git a/ui/i18n/es.json b/ui/i18n/es.json index a9771860..0a7f1b55 100644 --- a/ui/i18n/es.json +++ b/ui/i18n/es.json @@ -2416,6 +2416,10 @@ "Full Support": "Compatibilidad total", "Full Support: everything RecompLauncher can do here is set up by the project's own file. The handheld rating comes from players, so it doesn't count.": "Compatibilidad total: todo lo que RecompLauncher puede hacer aquí lo configura el propio archivo del proyecto. La valoración en portátiles viene de los jugadores, así que no cuenta.", "In the repo, not in a release yet": "En el repositorio, aún no en una versión", + "File Problem": "Problema con el archivo", + "Tell the Developer": "Avisar al desarrollador", + "This game's recomplauncher.json has a problem, so the launcher can't use it and sets nothing up from it. It still installs and plays; set it up the way its project explains.": "El recomplauncher.json de este juego tiene un problema, así que el lanzador no puede usarlo y no configura nada con él. Aun así se instala y se juega; configúralo como explica su proyecto.", + "In the release, read once it's installed": "En la versión, se lee al instalarlo", "No support yet": "Aún sin compatibilidad", "Not yet: neither the project nor RecompLauncher does this.": "Aún no: ni el proyecto ni RecompLauncher se encargan de esto.", "Not yet: no handheld player has rated it.": "Aún no: ningún jugador de portátil lo ha valorado.", diff --git a/ui/i18n/fr.json b/ui/i18n/fr.json index 488b9fe4..d49c135f 100644 --- a/ui/i18n/fr.json +++ b/ui/i18n/fr.json @@ -2416,6 +2416,10 @@ "Full Support": "Prise en charge complète", "Full Support: everything RecompLauncher can do here is set up by the project's own file. The handheld rating comes from players, so it doesn't count.": "Prise en charge complète : tout ce que RecompLauncher peut faire ici est configuré par le fichier du projet lui-même. La note sur console portable vient des joueurs, elle ne compte donc pas.", "In the repo, not in a release yet": "Dans le dépôt, pas encore dans une version", + "File Problem": "Problème de fichier", + "Tell the Developer": "Prévenir le développeur", + "This game's recomplauncher.json has a problem, so the launcher can't use it and sets nothing up from it. It still installs and plays; set it up the way its project explains.": "Le recomplauncher.json de ce jeu a un problème : le lanceur ne peut pas l'utiliser et n'en configure rien. Le jeu s'installe et se lance quand même ; configurez-le comme l'explique son projet.", + "In the release, read once it's installed": "Dans la version, lu une fois installé", "No support yet": "Pas encore de prise en charge", "Not yet: neither the project nor RecompLauncher does this.": "Pas encore : ni le projet ni RecompLauncher ne s'en charge.", "Not yet: no handheld player has rated it.": "Pas encore : aucun joueur sur console portable ne l'a noté.", diff --git a/ui/i18n/id.json b/ui/i18n/id.json index ef1789bb..22586ddd 100644 --- a/ui/i18n/id.json +++ b/ui/i18n/id.json @@ -2416,6 +2416,10 @@ "Full Support": "Dukungan Penuh", "Full Support: everything RecompLauncher can do here is set up by the project's own file. The handheld rating comes from players, so it doesn't count.": "Dukungan Penuh: semua yang bisa dilakukan RecompLauncher di sini disiapkan oleh file milik proyek sendiri. Rating handheld berasal dari pemain, jadi tidak dihitung.", "In the repo, not in a release yet": "Ada di repo, belum ada di rilis", + "File Problem": "Masalah file", + "Tell the Developer": "Beri tahu developer", + "This game's recomplauncher.json has a problem, so the launcher can't use it and sets nothing up from it. It still installs and plays; set it up the way its project explains.": "recomplauncher.json game ini bermasalah, jadi launcher tidak bisa memakainya dan tidak menyiapkan apa pun darinya. Game tetap bisa dipasang dan dimainkan; siapkan seperti yang dijelaskan proyeknya.", + "In the release, read once it's installed": "Di rilis, dibaca setelah terpasang", "No support yet": "Belum ada dukungan", "Not yet: neither the project nor RecompLauncher does this.": "Belum: proyek maupun RecompLauncher belum mengurus ini.", "Not yet: no handheld player has rated it.": "Belum: belum ada pemain handheld yang menilainya.", diff --git a/ui/i18n/it.json b/ui/i18n/it.json index ad1db397..63e9a827 100644 --- a/ui/i18n/it.json +++ b/ui/i18n/it.json @@ -2416,6 +2416,10 @@ "Full Support": "Supporto completo", "Full Support: everything RecompLauncher can do here is set up by the project's own file. The handheld rating comes from players, so it doesn't count.": "Supporto completo: tutto ciò che RecompLauncher può fare qui è configurato dal file del progetto stesso. Il giudizio su portatile viene dai giocatori, quindi non conta.", "In the repo, not in a release yet": "Nel repository, non ancora in una release", + "File Problem": "Problema nel file", + "Tell the Developer": "Avvisa lo sviluppatore", + "This game's recomplauncher.json has a problem, so the launcher can't use it and sets nothing up from it. It still installs and plays; set it up the way its project explains.": "Il recomplauncher.json di questo gioco ha un problema, quindi il launcher non può usarlo e non configura nulla da esso. Si installa e si gioca comunque; configuralo come spiega il suo progetto.", + "In the release, read once it's installed": "Nella release, letto dopo l'installazione", "No support yet": "Ancora nessun supporto", "Not yet: neither the project nor RecompLauncher does this.": "Non ancora: né il progetto né RecompLauncher se ne occupano.", "Not yet: no handheld player has rated it.": "Non ancora: nessun giocatore su portatile l'ha valutato.", diff --git a/ui/i18n/ja.json b/ui/i18n/ja.json index b5e5d004..a9d32563 100644 --- a/ui/i18n/ja.json +++ b/ui/i18n/ja.json @@ -2416,6 +2416,10 @@ "Full Support": "完全対応", "Full Support: everything RecompLauncher can do here is set up by the project's own file. The handheld rating comes from players, so it doesn't count.": "完全対応: ここで RecompLauncher ができることはすべて、プロジェクト独自のファイルで設定されています。携帯機での評価はプレイヤーによるものなので含みません。", "In the repo, not in a release yet": "リポジトリにあり、リリースにはまだ含まれていません", + "File Problem": "ファイルの問題", + "Tell the Developer": "開発者に知らせる", + "This game's recomplauncher.json has a problem, so the launcher can't use it and sets nothing up from it. It still installs and plays; set it up the way its project explains.": "このゲームの recomplauncher.json に問題があるため、ランチャーはこのファイルを使えず、何も設定しません。インストールとプレイはできます。プロジェクトの説明どおりにセットアップしてください。", + "In the release, read once it's installed": "リリースに含まれています(インストール後に読み込み)", "No support yet": "まだ対応していません", "Not yet: neither the project nor RecompLauncher does this.": "未対応: プロジェクトも RecompLauncher もまだ行っていません。", "Not yet: no handheld player has rated it.": "未対応: まだ携帯機のプレイヤーの評価がありません。", diff --git a/ui/i18n/ko.json b/ui/i18n/ko.json index 8ff906c9..0ab7d891 100644 --- a/ui/i18n/ko.json +++ b/ui/i18n/ko.json @@ -2416,6 +2416,10 @@ "Full Support": "완전 지원", "Full Support: everything RecompLauncher can do here is set up by the project's own file. The handheld rating comes from players, so it doesn't count.": "완전 지원: 여기서 RecompLauncher가 할 수 있는 모든 것을 프로젝트 자체 파일이 설정합니다. 휴대용 기기 평가는 플레이어가 하므로 포함되지 않습니다.", "In the repo, not in a release yet": "저장소에는 있지만 아직 릴리스에는 없음", + "File Problem": "파일 문제", + "Tell the Developer": "개발자에게 알리기", + "This game's recomplauncher.json has a problem, so the launcher can't use it and sets nothing up from it. It still installs and plays; set it up the way its project explains.": "이 게임의 recomplauncher.json에 문제가 있어 런처가 이 파일을 사용할 수 없고, 이 파일로는 아무것도 설정하지 않습니다. 설치와 플레이는 그대로 됩니다. 프로젝트 안내대로 설정하세요.", + "In the release, read once it's installed": "릴리스에 있음, 설치 후 읽음", "No support yet": "아직 지원 없음", "Not yet: neither the project nor RecompLauncher does this.": "아직 아님: 프로젝트도 RecompLauncher도 이 기능을 처리하지 않습니다.", "Not yet: no handheld player has rated it.": "아직 아님: 아직 휴대용 기기 플레이어의 평가가 없습니다.", diff --git a/ui/i18n/nl.json b/ui/i18n/nl.json index d139503d..946b9c70 100644 --- a/ui/i18n/nl.json +++ b/ui/i18n/nl.json @@ -2416,6 +2416,10 @@ "Full Support": "Volledige ondersteuning", "Full Support: everything RecompLauncher can do here is set up by the project's own file. The handheld rating comes from players, so it doesn't count.": "Volledige ondersteuning: alles wat RecompLauncher hier kan, wordt ingesteld door het eigen bestand van het project. De handheldbeoordeling komt van spelers en telt dus niet mee.", "In the repo, not in a release yet": "In de repo, nog niet in een release", + "File Problem": "Bestandsprobleem", + "Tell the Developer": "Ontwikkelaar inlichten", + "This game's recomplauncher.json has a problem, so the launcher can't use it and sets nothing up from it. It still installs and plays; set it up the way its project explains.": "De recomplauncher.json van deze game heeft een probleem, dus de launcher kan hem niet gebruiken en stelt er niets mee in. De game installeert en speelt nog steeds; stel hem in zoals het project uitlegt.", + "In the release, read once it's installed": "In de release, gelezen na installatie", "No support yet": "Nog geen ondersteuning", "Not yet: neither the project nor RecompLauncher does this.": "Nog niet: het project en RecompLauncher doen dit geen van beide.", "Not yet: no handheld player has rated it.": "Nog niet: nog geen handheldspeler heeft het beoordeeld.", diff --git a/ui/i18n/pl.json b/ui/i18n/pl.json index 130e7b59..4b7544d0 100644 --- a/ui/i18n/pl.json +++ b/ui/i18n/pl.json @@ -2416,6 +2416,10 @@ "Full Support": "Pełna obsługa", "Full Support: everything RecompLauncher can do here is set up by the project's own file. The handheld rating comes from players, so it doesn't count.": "Pełna obsługa: wszystko, co RecompLauncher może tu zrobić, ustawia własny plik projektu. Ocena na handheldach pochodzi od graczy, więc się nie liczy.", "In the repo, not in a release yet": "W repozytorium, jeszcze nie w wydaniu", + "File Problem": "Problem z plikiem", + "Tell the Developer": "Powiadom twórcę", + "This game's recomplauncher.json has a problem, so the launcher can't use it and sets nothing up from it. It still installs and plays; set it up the way its project explains.": "Plik recomplauncher.json tej gry ma błąd, więc launcher nie może go użyć i nic z niego nie konfiguruje. Gra nadal się instaluje i działa; skonfiguruj ją tak, jak opisuje jej projekt.", + "In the release, read once it's installed": "W wydaniu, odczytywany po instalacji", "No support yet": "Brak obsługi", "Not yet: neither the project nor RecompLauncher does this.": "Jeszcze nie: ani projekt, ani RecompLauncher tego nie robi.", "Not yet: no handheld player has rated it.": "Jeszcze nie: żaden gracz na handheldzie tego nie ocenił.", diff --git a/ui/i18n/pt-BR.json b/ui/i18n/pt-BR.json index b1323206..0dbf4b78 100644 --- a/ui/i18n/pt-BR.json +++ b/ui/i18n/pt-BR.json @@ -2405,6 +2405,10 @@ "Full Support": "Suporte completo", "Full Support: everything RecompLauncher can do here is set up by the project's own file. The handheld rating comes from players, so it doesn't count.": "Suporte completo: tudo o que o RecompLauncher pode fazer aqui é configurado pelo próprio arquivo do projeto. A avaliação em portáteis vem dos jogadores, então não conta.", "In the repo, not in a release yet": "No repositório, ainda não em uma versão", + "File Problem": "Problema no arquivo", + "Tell the Developer": "Avisar o desenvolvedor", + "This game's recomplauncher.json has a problem, so the launcher can't use it and sets nothing up from it. It still installs and plays; set it up the way its project explains.": "O recomplauncher.json deste jogo tem um problema, então o launcher não consegue usá-lo e não configura nada a partir dele. O jogo ainda instala e roda; configure-o como o projeto explica.", + "In the release, read once it's installed": "Na versão, lido após a instalação", "No support yet": "Ainda sem suporte", "Not yet: neither the project nor RecompLauncher does this.": "Ainda não: nem o projeto nem o RecompLauncher fazem isso.", "Not yet: no handheld player has rated it.": "Ainda não: nenhum jogador de portátil avaliou.", diff --git a/ui/i18n/pt.json b/ui/i18n/pt.json index 68f0c1fc..a7e9ec2c 100644 --- a/ui/i18n/pt.json +++ b/ui/i18n/pt.json @@ -2416,6 +2416,10 @@ "Full Support": "Suporte completo", "Full Support: everything RecompLauncher can do here is set up by the project's own file. The handheld rating comes from players, so it doesn't count.": "Suporte completo: tudo o que o RecompLauncher pode fazer aqui é configurado pelo próprio ficheiro do projeto. A avaliação em portáteis vem dos jogadores, por isso não conta.", "In the repo, not in a release yet": "No repositório, ainda não numa versão", + "File Problem": "Problema no ficheiro", + "Tell the Developer": "Avisar o programador", + "This game's recomplauncher.json has a problem, so the launcher can't use it and sets nothing up from it. It still installs and plays; set it up the way its project explains.": "O recomplauncher.json deste jogo tem um problema, por isso o launcher não o consegue usar e não configura nada a partir dele. O jogo continua a instalar e a funcionar; configura-o como o projeto explica.", + "In the release, read once it's installed": "Na versão, lido após a instalação", "No support yet": "Ainda sem suporte", "Not yet: neither the project nor RecompLauncher does this.": "Ainda não: nem o projeto nem o RecompLauncher tratam disto.", "Not yet: no handheld player has rated it.": "Ainda não: nenhum jogador de portátil o avaliou.", diff --git a/ui/i18n/ru.json b/ui/i18n/ru.json index 1761d6bc..003c487b 100644 --- a/ui/i18n/ru.json +++ b/ui/i18n/ru.json @@ -2416,6 +2416,10 @@ "Full Support": "Полная поддержка", "Full Support: everything RecompLauncher can do here is set up by the project's own file. The handheld rating comes from players, so it doesn't count.": "Полная поддержка: всё, что RecompLauncher может здесь сделать, настраивает собственный файл проекта. Оценка на портативных устройствах зависит от игроков, поэтому не учитывается.", "In the repo, not in a release yet": "В репозитории, но ещё не в релизе", + "File Problem": "Проблема с файлом", + "Tell the Developer": "Сообщить разработчику", + "This game's recomplauncher.json has a problem, so the launcher can't use it and sets nothing up from it. It still installs and plays; set it up the way its project explains.": "В recomplauncher.json этой игры есть ошибка, поэтому лаунчер не может его использовать и ничего по нему не настраивает. Игра всё равно устанавливается и запускается; настройте её так, как объясняет проект.", + "In the release, read once it's installed": "В релизе, будет прочитан после установки", "No support yet": "Поддержки пока нет", "Not yet: neither the project nor RecompLauncher does this.": "Пока нет: ни проект, ни RecompLauncher этого не делают.", "Not yet: no handheld player has rated it.": "Пока нет: ни один игрок на портативном устройстве ещё не оценил.", diff --git a/ui/i18n/th.json b/ui/i18n/th.json index 642d7587..9fdca5f7 100644 --- a/ui/i18n/th.json +++ b/ui/i18n/th.json @@ -2416,6 +2416,10 @@ "Full Support": "รองรับเต็มรูปแบบ", "Full Support: everything RecompLauncher can do here is set up by the project's own file. The handheld rating comes from players, so it doesn't count.": "รองรับเต็มรูปแบบ: ทุกอย่างที่ RecompLauncher ทำได้ที่นี่ ตั้งค่าโดยไฟล์ของโปรเจกต์เอง คะแนนบนเครื่องพกพามาจากผู้เล่น จึงไม่นับรวม", "In the repo, not in a release yet": "อยู่ในคลังโค้ด แต่ยังไม่อยู่ในรีลีส", + "File Problem": "ไฟล์มีปัญหา", + "Tell the Developer": "บอกผู้พัฒนา", + "This game's recomplauncher.json has a problem, so the launcher can't use it and sets nothing up from it. It still installs and plays; set it up the way its project explains.": "ไฟล์ recomplauncher.json ของเกมนี้มีปัญหา ตัวเปิดเกมจึงใช้ไฟล์นี้ไม่ได้และไม่ตั้งค่าอะไรจากไฟล์นี้ เกมยังติดตั้งและเล่นได้ตามปกติ ให้ตั้งค่าตามที่โปรเจกต์อธิบายไว้", + "In the release, read once it's installed": "อยู่ในรุ่นที่เผยแพร่ อ่านหลังติดตั้ง", "No support yet": "ยังไม่รองรับ", "Not yet: neither the project nor RecompLauncher does this.": "ยังไม่มี: ทั้งโปรเจกต์และ RecompLauncher ยังไม่ได้จัดการส่วนนี้", "Not yet: no handheld player has rated it.": "ยังไม่มี: ยังไม่มีผู้เล่นเครื่องพกพาให้คะแนน", diff --git a/ui/i18n/tr.json b/ui/i18n/tr.json index e827b248..3ca7387f 100644 --- a/ui/i18n/tr.json +++ b/ui/i18n/tr.json @@ -2416,6 +2416,10 @@ "Full Support": "Tam Destek", "Full Support: everything RecompLauncher can do here is set up by the project's own file. The handheld rating comes from players, so it doesn't count.": "Tam Destek: RecompLauncher'ın burada yapabildiği her şey projenin kendi dosyasıyla ayarlanıyor. El konsolu puanı oyunculardan gelir, bu yüzden sayılmaz.", "In the repo, not in a release yet": "Depoda var, henüz bir sürümde yok", + "File Problem": "Dosya sorunu", + "Tell the Developer": "Geliştiriciye bildir", + "This game's recomplauncher.json has a problem, so the launcher can't use it and sets nothing up from it. It still installs and plays; set it up the way its project explains.": "Bu oyunun recomplauncher.json dosyasında bir sorun var, bu yüzden başlatıcı onu kullanamıyor ve ondan hiçbir şey kurmuyor. Oyun yine de kurulur ve oynanır; projesinin anlattığı şekilde kur.", + "In the release, read once it's installed": "Sürümde var, kurulduktan sonra okunur", "No support yet": "Henüz destek yok", "Not yet: neither the project nor RecompLauncher does this.": "Henüz değil: Bunu ne proje ne de RecompLauncher yapıyor.", "Not yet: no handheld player has rated it.": "Henüz değil: Hiçbir el konsolu oyuncusu henüz puanlamadı.", diff --git a/ui/i18n/uk.json b/ui/i18n/uk.json index 3d631f95..e309123e 100644 --- a/ui/i18n/uk.json +++ b/ui/i18n/uk.json @@ -2416,6 +2416,10 @@ "Full Support": "Повна підтримка", "Full Support: everything RecompLauncher can do here is set up by the project's own file. The handheld rating comes from players, so it doesn't count.": "Повна підтримка: усе, що RecompLauncher може тут зробити, налаштовує власний файл проєкту. Оцінка на портативних пристроях залежить від гравців, тож не враховується.", "In the repo, not in a release yet": "У репозиторії, але ще не в релізі", + "File Problem": "Проблема з файлом", + "Tell the Developer": "Повідомити розробника", + "This game's recomplauncher.json has a problem, so the launcher can't use it and sets nothing up from it. It still installs and plays; set it up the way its project explains.": "У recomplauncher.json цієї гри є помилка, тому лаунчер не може його використати й нічого за ним не налаштовує. Гра все одно встановлюється й запускається; налаштуй її так, як пояснює проєкт.", + "In the release, read once it's installed": "У релізі, буде прочитано після встановлення", "No support yet": "Підтримки поки немає", "Not yet: neither the project nor RecompLauncher does this.": "Поки ні: ні проєкт, ні RecompLauncher цього не роблять.", "Not yet: no handheld player has rated it.": "Поки ні: жоден гравець на портативному пристрої ще не оцінив.", diff --git a/ui/i18n/vi.json b/ui/i18n/vi.json index 7ba91114..ea759a24 100644 --- a/ui/i18n/vi.json +++ b/ui/i18n/vi.json @@ -2416,6 +2416,10 @@ "Full Support": "Hỗ trợ đầy đủ", "Full Support: everything RecompLauncher can do here is set up by the project's own file. The handheld rating comes from players, so it doesn't count.": "Hỗ trợ đầy đủ: mọi thứ RecompLauncher làm được ở đây đều do tệp riêng của dự án thiết lập. Đánh giá trên máy cầm tay đến từ người chơi nên không tính.", "In the repo, not in a release yet": "Có trong kho mã, chưa có trong bản phát hành", + "File Problem": "Lỗi tệp", + "Tell the Developer": "Báo nhà phát triển", + "This game's recomplauncher.json has a problem, so the launcher can't use it and sets nothing up from it. It still installs and plays; set it up the way its project explains.": "Tệp recomplauncher.json của trò chơi này có lỗi nên trình khởi chạy không dùng được và không thiết lập gì từ nó. Trò chơi vẫn cài và chơi được; hãy thiết lập theo hướng dẫn của dự án.", + "In the release, read once it's installed": "Có trong bản phát hành, đọc sau khi cài", "No support yet": "Chưa được hỗ trợ", "Not yet: neither the project nor RecompLauncher does this.": "Chưa có: cả dự án lẫn RecompLauncher đều chưa làm phần này.", "Not yet: no handheld player has rated it.": "Chưa có: chưa người chơi máy cầm tay nào đánh giá.", diff --git a/ui/i18n/zh-Hans.json b/ui/i18n/zh-Hans.json index b3dffe07..2b88011c 100644 --- a/ui/i18n/zh-Hans.json +++ b/ui/i18n/zh-Hans.json @@ -2416,6 +2416,10 @@ "Full Support": "完整支持", "Full Support: everything RecompLauncher can do here is set up by the project's own file. The handheld rating comes from players, so it doesn't count.": "完整支持:RecompLauncher 在这里能做的一切都由项目自己的文件设置。掌机评分来自玩家,因此不计入。", "In the repo, not in a release yet": "在仓库中,但尚未加入发布版本", + "File Problem": "文件有问题", + "Tell the Developer": "告诉开发者", + "This game's recomplauncher.json has a problem, so the launcher can't use it and sets nothing up from it. It still installs and plays; set it up the way its project explains.": "这款游戏的 recomplauncher.json 有问题,启动器无法使用它,也不会据此设置任何内容。游戏仍可安装和游玩;请按其项目的说明进行设置。", + "In the release, read once it's installed": "在发行版中,安装后读取", "No support yet": "暂无支持", "Not yet: neither the project nor RecompLauncher does this.": "暂无:项目和 RecompLauncher 都未处理此项。", "Not yet: no handheld player has rated it.": "暂无:还没有掌机玩家评分。", diff --git a/ui/i18n/zh-Hant.json b/ui/i18n/zh-Hant.json index b62e571f..6adfeb35 100644 --- a/ui/i18n/zh-Hant.json +++ b/ui/i18n/zh-Hant.json @@ -2416,6 +2416,10 @@ "Full Support": "完整支援", "Full Support: everything RecompLauncher can do here is set up by the project's own file. The handheld rating comes from players, so it doesn't count.": "完整支援:RecompLauncher 在這裡能做的一切都由專案自己的檔案設定。掌機評分來自玩家,因此不計入。", "In the repo, not in a release yet": "在存放庫中,但尚未加入發行版本", + "File Problem": "檔案有問題", + "Tell the Developer": "告訴開發者", + "This game's recomplauncher.json has a problem, so the launcher can't use it and sets nothing up from it. It still installs and plays; set it up the way its project explains.": "這款遊戲的 recomplauncher.json 有問題,啟動器無法使用它,也不會據此設定任何內容。遊戲仍可安裝和遊玩;請依其專案的說明進行設定。", + "In the release, read once it's installed": "在發行版中,安裝後讀取", "No support yet": "尚無支援", "Not yet: neither the project nor RecompLauncher does this.": "尚無:專案和 RecompLauncher 都未處理此項。", "Not yet: no handheld player has rated it.": "尚無:還沒有掌機玩家評分。", From bdab3c3ad1455f03485dd52c6c6f004d2e0a0d6c Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 25 Nov 2026 00:30:35 +0000 Subject: [PATCH 35/35] Keep downloads tests: stub the LaunchBox row the Settings page draws since #518 Co-Authored-By: Claude Opus 5.5 --- tests/keep-downloads.test.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/keep-downloads.test.cjs b/tests/keep-downloads.test.cjs index 24919587..f46598d4 100644 --- a/tests/keep-downloads.test.cjs +++ b/tests/keep-downloads.test.cjs @@ -27,7 +27,7 @@ function updatesPage(settings, setTab = 'updates', libs = []) { tn: (n, one, many) => (n === 1 ? one : many.replace('{n}', n)), fmtB: String, folderCounts: () => '', sharedLibraryNote: () => '', dlssGroup: () => '', steamSyncGroup: () => '', }); c.window = c; - c.clockRow = () => ''; c.monitorPicked = () => ''; c.monitorName = () => ''; + c.clockRow = () => ''; c.monitorPicked = () => ''; c.monitorName = () => ''; c.launchboxRow = () => ''; vm.runInContext(fn(app, 'pageSettings'), c); return c.pageSettings(); }