From 008e750e253a160eba02ffd83bdb3d3aca045163 Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Thu, 19 Nov 2026 22:22:36 +0200 Subject: [PATCH 1/3] =?UTF-8?q?Settings=20=E2=86=92=20Updates:=20Update=20?= =?UTF-8?q?All=20Games=20Automatically?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit One switch, in Settings and in Big Picture, makes every installed game take its new release as soon as the launcher finds it, the same way each game's own Update automatically does. Off by default. A game with Pause Updates stays on its version, and local builds never update. While it's on, a game's own switch shows as on and points to Settings. Turning it on starts the updates already waiting. --- src-tauri/src/library.rs | 21 ++++++++ tests/auto-install.test.cjs | 4 +- tests/auto-update-all.test.cjs | 90 ++++++++++++++++++++++++++++++++++ ui/app.js | 16 ++++-- ui/i18n/ar.json | 6 ++- ui/i18n/de.json | 6 ++- ui/i18n/es-419.json | 6 ++- ui/i18n/es.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 ++- ui/tv.js | 3 +- 25 files changed, 228 insertions(+), 26 deletions(-) create mode 100644 tests/auto-update-all.test.cjs diff --git a/src-tauri/src/library.rs b/src-tauri/src/library.rs index 38089d9d..8f653eaf 100644 --- a/src-tauri/src/library.rs +++ b/src-tauri/src/library.rs @@ -345,6 +345,11 @@ pub struct Settings { /// finishes downloading (an update too), its setup opens straight away. Off: it waits for Set Up. #[serde(default = "yes")] pub auto_install: bool, + /// Settings → Update All Games Automatically: every installed game takes its new release as + /// soon as the launcher finds it, like each game's own Update automatically. Off by default, + /// so nobody's games start updating by themselves after the launcher updates. + #[serde(default)] + pub auto_update_all: bool, } fn yes() -> bool { @@ -400,6 +405,7 @@ impl Default for Settings { linux_graphics: String::new(), steam_sync: false, auto_install: true, + auto_update_all: false, } } } @@ -766,6 +772,21 @@ mod tests { assert!(!restored.auto_install); } + #[test] + fn update_all_games_automatically_is_off_by_default_and_for_settings_saved_before_it() { + assert!(!super::Settings::default().auto_update_all); + let settings: super::Settings = serde_json::from_str(r#"{"library_dir":"/games"}"#).unwrap(); + assert!(!settings.auto_update_all); + } + + #[test] + fn update_all_games_automatically_turned_on_stays_on() { + let settings: super::Settings = serde_json::from_str(r#"{"library_dir":"/games","auto_update_all":true}"#).unwrap(); + let saved = serde_json::to_string(&settings).unwrap(); + let restored: super::Settings = serde_json::from_str(&saved).unwrap(); + assert!(restored.auto_update_all); + } + #[test] fn run_in_background_is_off_by_default() { assert!(!super::Settings::default().close_to_tray); diff --git a/tests/auto-install.test.cjs b/tests/auto-install.test.cjs index eee98285..58f95018 100644 --- a/tests/auto-install.test.cjs +++ b/tests/auto-install.test.cjs @@ -8,6 +8,8 @@ const app = fs.readFileSync(path.join(__dirname, '../ui/app.js'), 'utf8'); const tv = fs.readFileSync(path.join(__dirname, '../ui/tv.js'), 'utf8'); const fn = (src, name, indent = '') => src.match(new RegExp(`^${indent}(?:async )?function ${name}\\([^]*?^${indent}}`, 'm'))[0]; const autoInstallSrc = app.match(/^const autoInstall = .*$/m)[0]; +// The Updates page also draws Update All Games Automatically. +const autoUpdateAllSrc = app.match(/^const autoUpdateAll = .*$/m)[0]; // The part of the download-finished handler that decides what opens next. const doneHandler = app.slice(app.indexOf("T.event.listen('install'"), app.indexOf("T.event.listen('game'")); @@ -28,7 +30,7 @@ function settingsContext(settings, setTab = 'updates') { }); c.window = c; c.clockRow = () => ''; c.monitorPicked = () => ''; c.monitorName = () => ''; - vm.runInContext(autoInstallSrc, c); + vm.runInContext(autoInstallSrc + '\n' + autoUpdateAllSrc, c); return c; } diff --git a/tests/auto-update-all.test.cjs b/tests/auto-update-all.test.cjs new file mode 100644 index 00000000..3ed296ec --- /dev/null +++ b/tests/auto-update-all.test.cjs @@ -0,0 +1,90 @@ +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 tv = fs.readFileSync(path.join(__dirname, '../ui/tv.js'), 'utf8'); +const fn = (src, name, indent = '') => src.match(new RegExp(`^${indent}(?:async )?function ${name}\\([^]*?^${indent}}`, 'm'))[0]; +const helpersSrc = [/^const autoInstall = .*$/m, /^const autoUpdateAll = .*$/m, /^const autoUpdates = .*$/m] + .map((re) => app.match(re)[0]).join('\n'); + +function settingsContext(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: () => '', + backdrop: () => '', bar: () => '', region: (s) => s, pageHead: (s) => s, + homePinned: () => false, bgMode: () => '', langName: () => 'English', + svg: () => '', hints: () => '', HEART: '', setClock: () => {}, + }); + c.window = c; + c.clockRow = () => ''; c.monitorPicked = () => ''; c.monitorName = () => ''; + vm.runInContext(helpersSrc, c); + // A const stays inside the script it was declared in, so the tests ask for it by name. + c.autoUpdates = vm.runInContext('autoUpdates', c); + return c; +} + +test('Update All Games Automatically is off for settings saved before the switch existed', () => { + const c = settingsContext({}); + vm.runInContext(fn(app, 'pageSettings'), c); + assert.match(c.pageSettings(), /aria-checked="false" aria-label="Update All Games Automatically" data-act="toggle" data-k="auto_update_all"/); +}); + +test('Update All Games Automatically shows as on once the player turns it on', () => { + const c = settingsContext({ auto_update_all: true }); + vm.runInContext(fn(app, 'pageSettings'), c); + assert.match(c.pageSettings(), /aria-checked="true" aria-label="Update All Games Automatically" data-act="toggle" data-k="auto_update_all"/); +}); + +test('Big Picture shows the same Update All Games Automatically switch', () => { + const c = settingsContext({}); + vm.runInContext(fn(tv, 'pageSettings', ' '), c); + assert.match(c.pageSettings(), /data-toggle="auto_update_all" data-sw="0">Update All Games Automatically/); + c.S.settings.auto_update_all = true; + assert.match(c.pageSettings(), /data-toggle="auto_update_all" data-sw="1">Update All Games Automatically/); +}); + +test('a game updates by itself with only its own switch on', () => { + const c = settingsContext({}); + assert.equal(c.autoUpdates({ auto_update: true }), true); + assert.equal(c.autoUpdates({ auto_update: false }), false); +}); + +test('every game updates by itself with the Settings switch on', () => { + const c = settingsContext({ auto_update_all: true }); + assert.equal(c.autoUpdates({ auto_update: false }), true); +}); + +test('a local build never updates by itself, even with the Settings switch on', () => { + const c = settingsContext({ auto_update_all: true }); + assert.equal(c.autoUpdates({ local: true, auto_update: true }), false); +}); + +test('the update check starts the updates of games that update by themselves', () => { + assert.match(fn(app, 'checkUpdates'), /\.filter\(\(id\) => autoUpdates\(S\.library\[id\]\) && !S\.running\.has\(id\)/); +}); + +test('turning the Settings switch on starts the updates already waiting', async () => { + const c = settingsContext({}); + const saved = []; + let checks = 0; + c.invoke = async (command, args) => saved.push(args.settings.auto_update_all); + c.render = () => {}; + c.fail = (error) => { throw error; }; + c.checkUpdates = () => { checks += 1; }; + vm.runInContext('let settingsSaving = Promise.resolve();' + fn(app, 'applyEasySkip') + fn(app, 'saveSettings') + fn(app, 'act'), c); + const toggle = { dataset: { act: 'toggle', k: 'auto_update_all' } }; + await c.act(toggle); + await c.act(toggle); + assert.deepEqual(saved, [true, false]); + assert.equal(checks, 1); +}); diff --git a/ui/app.js b/ui/app.js index b30b0dc2..c9a49d58 100644 --- a/ui/app.js +++ b/ui/app.js @@ -194,6 +194,10 @@ const isInstallerApp = (a) => !!(a && a.installer) && S.os === 'windows'; // Settings → Auto-Install: a finished download goes straight on to its setup or installer. On // unless the player turned it off (settings saved before the switch existed have no value). const autoInstall = () => S.settings.auto_install !== false; +// Settings → Update All Games Automatically, or the game's own Update automatically. A local build +// has no releases to update from, so it never does. +const autoUpdateAll = () => !!S.settings.auto_update_all; +const autoUpdates = (g) => !!g && !g.local && (autoUpdateAll() || !!g.auto_update); const installerDue = (id) => !!(S.library[id] && S.library[id].installer_setup); // The yellow Set Up: the developer's steps not done yet, or an installer waiting to run. const setupDue = (a) => !!a && ((needsSetup(a) && !setupDone(a.id)) || installerDue(a.id)); @@ -2536,7 +2540,7 @@ function gameBody(a) {
${esc(t('Folder'))}${esc(inst.path)}
${inst.local ? '' : ``}
${esc(t('Shortcuts'))}${esc(S.steam ? t('Start it from your desktop or from Steam, with its art. Play time still counts here.') : t('Start it from your desktop. Play time still counts here.'))}
${S.steam ? `` : ''}
${esc(t('Project association'))}${esc(inst.local ? t('Untracked · no updates') : inst.repo)}
- ${inst.local ? '' : `
${esc(t('Update automatically'))}${esc(t('Installs new releases as soon as the launcher finds them. Your saves are backed up first.'))}
`} + ${inst.local ? '' : `
${esc(t('Update automatically'))}${esc(autoUpdateAll() ? t('On for every game in Settings → Updates.') : t('Installs new releases as soon as the launcher finds them. Your saves are backed up first.'))}
`}
${esc(t('Launch options'))}${inst.args ? esc(inst.args) : esc(t('Extra options passed to the game when it starts.'))}
${easyRow(id)} ${programRow(id, inst)} @@ -4208,6 +4212,7 @@ function pageSettings() { case 'updates': body = group(t('Updates'), row(t('Check for Updates'), t('Asks each installed game\'s GitHub for a newer release now.'), ``) + row(t('Look for updates when the launcher opens'), t('Asks each installed game\'s GitHub for a newer release. Turn on Update automatically for a game in its Manage tab.'), sw('check_updates', st.check_updates, t('Look for updates'))) + + 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. A game with Pause Updates stays on the version it has.'), sw('auto_update_all', autoUpdateAll(), t('Update All Games Automatically'))) + row(t('Back up saves before updates'), t('Keeps the newest five copies of each game\'s saves and settings.'), sw('backup_before_update', st.backup_before_update, t('Back up before updates'))) + row(t('Auto-Install'), t('When an Easy Install 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'))) @@ -5071,7 +5076,7 @@ async function checkUpdates(loud) { if (window.tvRefresh && document.body.classList.contains('tv-on')) window.tvRefresh(); if (S.view === 'downloads') render(true); // Never on its own to a version the site found crashing for a lot of players. - const auto = Object.keys(S.updates).filter((id) => S.library[id] && S.library[id].auto_update && !S.running.has(id) && !S.jobs[id] && !(S.paused || {})[id] && !badVersion(byId(id), S.updates[id])); + const auto = Object.keys(S.updates).filter((id) => autoUpdates(S.library[id]) && !S.running.has(id) && !S.jobs[id] && !(S.paused || {})[id] && !badVersion(byId(id), S.updates[id])); for (const id of auto) startInstall(id); const n = Object.keys(S.updates).length - auto.length; if (auto.length) toast(auto.length === 1 ? tf('Updating {name}.', { name: S.library[auto[0]].name }) : tf('Updating {n} games.', { n: auto.length })); @@ -5790,7 +5795,7 @@ function gameMenu(id) { ...(g ? ['-', { label: t('Manage'), icon: 'gear', sub: [ { act: 'project-association', id, label: t('Project association…'), icon: 'layers' }, - ...(!g.local ? [{ act: 'auto-up', id, label: t('Update automatically'), icon: 'refresh', check: !!g.auto_update }] : []), + ...(!g.local ? [{ act: 'auto-up', id, label: t('Update automatically'), icon: 'refresh', check: autoUpdates(g) }] : []), ...holdItem(id), { act: 'versions', id, label: t('Changelog and other versions'), icon: 'history' }, ...(!g.local ? [{ act: 'build', id, label: t('Change Build…'), icon: 'layers' }] : []), @@ -8185,7 +8190,8 @@ async function act(el, e) { case 'hold-up': return toggleHold(id); case 'free-space': return freeUpSpace(id); case 'move-build': return moveBuild(id); - case 'auto-up': try { S.library[id] = await invoke('set_game_options', { id, args: null, autoUpdate: !S.library[id].auto_update }); toast(S.library[id].auto_update ? tf('{name} updates by itself now.', { name: S.library[id].name }) : t('Updates wait for you again.')); render(true); } catch (err) { fail(err); } return; + // While Settings updates every game, the game's own switch has nothing to change: say where it's set. + case 'auto-up': if (autoUpdateAll()) { toast(t('On for every game in Settings → Updates.')); return; } try { S.library[id] = await invoke('set_game_options', { id, args: null, autoUpdate: !S.library[id].auto_update }); toast(S.library[id].auto_update ? tf('{name} updates by itself now.', { name: S.library[id].name }) : t('Updates wait for you again.')); render(true); } catch (err) { fail(err); } return; case 'launch-opts': return launchOptions(id); case 'rename': return renameModal(id); case 'troubleshoot': return troubleshootModal(id); @@ -8485,6 +8491,8 @@ async function act(el, e) { // Sharing: what shows is what's sent (nothing before the player was asked). if (k === 'share_usage' || k === 'share_stats') return saveSettings({ [k]: !(S.settings.data_asked && S.settings[k]), data_asked: true }); if (k === 'auto_install') return saveSettings({ auto_install: !autoInstall() }); + // Turned on: the updates already waiting start now, not at the next check. + if (k === 'auto_update_all') { await saveSettings({ auto_update_all: !autoUpdateAll() }); if (autoUpdateAll()) checkUpdates(); return; } if (k === 'steam_sync') { await saveSettings({ steam_sync: !S.settings.steam_sync }); if (S.settings.steam_sync) steamSync(false); return; } return saveSettings({ [k]: !S.settings[k] }); } diff --git a/ui/i18n/ar.json b/ui/i18n/ar.json index 96cbce31..6c521cd6 100644 --- a/ui/i18n/ar.json +++ b/ui/i18n/ar.json @@ -3360,5 +3360,9 @@ "Game A to Z": "اللعبة من أ إلى ي", "Checked by the RecompStore team": "تم الفحص بواسطة فريق RecompStore", "Open the VirusTotal report": "فتح تقرير VirusTotal", - "Verified Update": "تحديث موثّق" + "Verified Update": "تحديث موثّق", + "Update All Games Automatically": "تحديث كل الألعاب تلقائيًا", + "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "تحصل كل لعبة مثبتة على الإصدار الجديد فور عثور المشغل عليه. يتم نسخ ملفات الحفظ احتياطيًا أولًا. تبقى اللعبة التي فُعّل لها «إيقاف التحديثات مؤقتًا» على الإصدار الذي لديها.", + "On for every game in Settings → Updates.": "مفعّل لكل الألعاب في الإعدادات ← التحديثات.", + "A game with Pause Updates stays on the version it has": "تبقى اللعبة التي فُعّل لها «إيقاف التحديثات مؤقتًا» على الإصدار الذي لديها" } diff --git a/ui/i18n/de.json b/ui/i18n/de.json index 08d03eeb..17725a7d 100644 --- a/ui/i18n/de.json +++ b/ui/i18n/de.json @@ -3360,5 +3360,9 @@ "Game A to Z": "Spiel A bis Z", "Checked by the RecompStore team": "Vom RecompStore-Team geprüft", "Open the VirusTotal report": "VirusTotal-Bericht öffnen", - "Verified Update": "Verifiziertes Update" + "Verified Update": "Verifiziertes Update", + "Update All Games Automatically": "Alle Spiele automatisch aktualisieren", + "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "Jedes installierte Spiel bekommt ein neues Release, sobald der Launcher es findet. Deine Spielstände werden vorher gesichert. Ein Spiel mit „Updates pausieren“ bleibt bei der Version, die es hat.", + "On for every game in Settings → Updates.": "Für alle Spiele an, in Einstellungen → Updates.", + "A game with Pause Updates stays on the version it has": "Ein Spiel mit „Updates pausieren“ bleibt bei der Version, die es hat" } diff --git a/ui/i18n/es-419.json b/ui/i18n/es-419.json index 6ef0438a..ca7ede8a 100644 --- a/ui/i18n/es-419.json +++ b/ui/i18n/es-419.json @@ -3360,5 +3360,9 @@ "Game A to Z": "Juego de la A a la Z", "Checked by the RecompStore team": "Revisado por el equipo de RecompStore", "Open the VirusTotal report": "Abrir el informe de VirusTotal", - "Verified Update": "Actualización verificada" + "Verified Update": "Actualización verificada", + "Update All Games Automatically": "Actualizar todos los juegos automáticamente", + "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "Cada juego instalado recibe una versión nueva en cuanto el lanzador la encuentra. Antes se hace una copia de tus partidas. Un juego con «Pausar actualizaciones» se queda en la versión que tiene.", + "On for every game in Settings → Updates.": "Activado para todos los juegos en Configuración → Actualizaciones.", + "A game with Pause Updates stays on the version it has": "Un juego con «Pausar actualizaciones» se queda en la versión que tiene" } diff --git a/ui/i18n/es.json b/ui/i18n/es.json index da7f2370..cda19a7c 100644 --- a/ui/i18n/es.json +++ b/ui/i18n/es.json @@ -3360,5 +3360,9 @@ "Game A to Z": "Juego de la A a la Z", "Checked by the RecompStore team": "Revisado por el equipo de RecompStore", "Open the VirusTotal report": "Abrir el informe de VirusTotal", - "Verified Update": "Actualización verificada" + "Verified Update": "Actualización verificada", + "Update All Games Automatically": "Actualizar todos los juegos automáticamente", + "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "Cada juego instalado recibe una versión nueva en cuanto el lanzador la encuentra. Antes se hace una copia de tus partidas. Un juego con «Pausar actualizaciones» se queda en la versión que tiene.", + "On for every game in Settings → Updates.": "Activado para todos los juegos en Configuración → Actualizaciones.", + "A game with Pause Updates stays on the version it has": "Un juego con «Pausar actualizaciones» se queda en la versión que tiene" } diff --git a/ui/i18n/fr.json b/ui/i18n/fr.json index a24b1487..a56ef1ec 100644 --- a/ui/i18n/fr.json +++ b/ui/i18n/fr.json @@ -3360,5 +3360,9 @@ "Game A to Z": "Jeu de A à Z", "Checked by the RecompStore team": "Vérifié par l’équipe RecompStore", "Open the VirusTotal report": "Ouvrir le rapport VirusTotal", - "Verified Update": "Mise à jour vérifiée" + "Verified Update": "Mise à jour vérifiée", + "Update All Games Automatically": "Mettre à jour tous les jeux automatiquement", + "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "Chaque jeu installé reçoit une nouvelle version dès que le lanceur la trouve. Vos sauvegardes sont d’abord copiées. Un jeu avec « Suspendre les mises à jour » reste sur la version qu’il a.", + "On for every game in Settings → Updates.": "Activé pour tous les jeux dans Paramètres → Mises à jour.", + "A game with Pause Updates stays on the version it has": "Un jeu avec « Suspendre les mises à jour » reste sur la version qu’il a" } diff --git a/ui/i18n/id.json b/ui/i18n/id.json index ba2a3f9b..1f2377eb 100644 --- a/ui/i18n/id.json +++ b/ui/i18n/id.json @@ -3360,5 +3360,9 @@ "Game A to Z": "Game A sampai Z", "Checked by the RecompStore team": "Diperiksa oleh tim RecompStore", "Open the VirusTotal report": "Buka laporan VirusTotal", - "Verified Update": "Pembaruan terverifikasi" + "Verified Update": "Pembaruan terverifikasi", + "Update All Games Automatically": "Perbarui Semua Game Otomatis", + "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "Setiap game yang terpasang mendapat rilis baru begitu launcher menemukannya. Save-mu dicadangkan dulu. Game dengan “Jeda Pembaruan” tetap di versi yang dimilikinya.", + "On for every game in Settings → Updates.": "Aktif untuk semua game di Pengaturan → Pembaruan.", + "A game with Pause Updates stays on the version it has": "Game dengan “Jeda Pembaruan” tetap di versi yang dimilikinya" } diff --git a/ui/i18n/it.json b/ui/i18n/it.json index 926ffd86..633a897e 100644 --- a/ui/i18n/it.json +++ b/ui/i18n/it.json @@ -3360,5 +3360,9 @@ "Game A to Z": "Gioco dalla A alla Z", "Checked by the RecompStore team": "Controllato dal team di RecompStore", "Open the VirusTotal report": "Apri il report di VirusTotal", - "Verified Update": "Aggiornamento verificato" + "Verified Update": "Aggiornamento verificato", + "Update All Games Automatically": "Aggiorna automaticamente tutti i giochi", + "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "Ogni gioco installato riceve una nuova release appena il launcher la trova. Prima viene fatto il backup dei salvataggi. Un gioco con «Sospendi aggiornamenti» resta sulla versione che ha.", + "On for every game in Settings → Updates.": "Attivo per tutti i giochi in Impostazioni → Aggiornamenti.", + "A game with Pause Updates stays on the version it has": "Un gioco con «Sospendi aggiornamenti» resta sulla versione che ha" } diff --git a/ui/i18n/ja.json b/ui/i18n/ja.json index 1a076bd8..4c10572a 100644 --- a/ui/i18n/ja.json +++ b/ui/i18n/ja.json @@ -3360,5 +3360,9 @@ "Game A to Z": "ゲーム名順", "Checked by the RecompStore team": "RecompStore チームが確認済み", "Open the VirusTotal report": "VirusTotal のレポートを開く", - "Verified Update": "確認済みのアップデート" + "Verified Update": "確認済みのアップデート", + "Update All Games Automatically": "すべてのゲームを自動でアップデート", + "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "インストール済みのゲームはすべて、ランチャーが新しいリリースを見つけたらすぐにアップデートされます。先にセーブデータがバックアップされます。「更新を一時停止」にしたゲームは今のバージョンのままです。", + "On for every game in Settings → Updates.": "設定 → アップデートで、すべてのゲームに対してオンになっています。", + "A game with Pause Updates stays on the version it has": "「更新を一時停止」にしたゲームは今のバージョンのままです" } diff --git a/ui/i18n/ko.json b/ui/i18n/ko.json index dba24b2b..d865827e 100644 --- a/ui/i18n/ko.json +++ b/ui/i18n/ko.json @@ -3360,5 +3360,9 @@ "Game A to Z": "게임 이름순", "Checked by the RecompStore team": "RecompStore 팀이 확인함", "Open the VirusTotal report": "VirusTotal 보고서 열기", - "Verified Update": "확인된 업데이트" + "Verified Update": "확인된 업데이트", + "Update All Games Automatically": "모든 게임 자동 업데이트", + "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "설치된 모든 게임은 런처가 새 릴리스를 찾으면 바로 받습니다. 저장 데이터는 먼저 백업됩니다. “업데이트 일시 중지”를 켠 게임은 지금 버전에 머뭅니다.", + "On for every game in Settings → Updates.": "설정 → 업데이트에서 모든 게임에 켜져 있습니다.", + "A game with Pause Updates stays on the version it has": "“업데이트 일시 중지”를 켠 게임은 지금 버전에 머뭅니다" } diff --git a/ui/i18n/nl.json b/ui/i18n/nl.json index 62bbcdb2..3550ca50 100644 --- a/ui/i18n/nl.json +++ b/ui/i18n/nl.json @@ -3360,5 +3360,9 @@ "Game A to Z": "Spel A tot Z", "Checked by the RecompStore team": "Gecontroleerd door het RecompStore-team", "Open the VirusTotal report": "VirusTotal-rapport openen", - "Verified Update": "Geverifieerde update" + "Verified Update": "Geverifieerde update", + "Update All Games Automatically": "Alle games automatisch bijwerken", + "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "Elke geïnstalleerde game krijgt een nieuwe release zodra de launcher die vindt. Er wordt eerst een back-up van je opgeslagen games gemaakt. Een game met ‘Updates pauzeren’ blijft op de versie die het heeft.", + "On for every game in Settings → Updates.": "Aan voor elke game in Instellingen → Updates.", + "A game with Pause Updates stays on the version it has": "Een game met ‘Updates pauzeren’ blijft op de versie die het heeft" } diff --git a/ui/i18n/pl.json b/ui/i18n/pl.json index e070df93..4c8f9ab0 100644 --- a/ui/i18n/pl.json +++ b/ui/i18n/pl.json @@ -3360,5 +3360,9 @@ "Game A to Z": "Gra od A do Z", "Checked by the RecompStore team": "Sprawdzone przez zespół RecompStore", "Open the VirusTotal report": "Otwórz raport VirusTotal", - "Verified Update": "Zweryfikowana aktualizacja" + "Verified Update": "Zweryfikowana aktualizacja", + "Update All Games Automatically": "Aktualizuj automatycznie wszystkie gry", + "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "Każda zainstalowana gra dostaje nowe wydanie, gdy tylko launcher je znajdzie. Najpierw tworzona jest kopia twoich zapisów. Gra z opcją „Wstrzymaj aktualizacje” zostaje przy wersji, którą ma.", + "On for every game in Settings → Updates.": "Włączone dla wszystkich gier w Ustawienia → Aktualizacje.", + "A game with Pause Updates stays on the version it has": "Gra z opcją „Wstrzymaj aktualizacje” zostaje przy wersji, którą ma" } diff --git a/ui/i18n/pt-BR.json b/ui/i18n/pt-BR.json index c663a706..80dc7720 100644 --- a/ui/i18n/pt-BR.json +++ b/ui/i18n/pt-BR.json @@ -3360,5 +3360,9 @@ "Game A to Z": "Jogo de A a Z", "Checked by the RecompStore team": "Verificado pela equipe da RecompStore", "Open the VirusTotal report": "Abrir o relatório do VirusTotal", - "Verified Update": "Atualização verificada" + "Verified Update": "Atualização verificada", + "Update All Games Automatically": "Atualizar todos os jogos automaticamente", + "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "Cada jogo instalado recebe uma versão nova assim que o launcher a encontra. Antes é feito um backup dos seus dados salvos. Um jogo com “Pausar atualizações” fica na versão que tem.", + "On for every game in Settings → Updates.": "Ativado para todos os jogos em Configurações → Atualizações.", + "A game with Pause Updates stays on the version it has": "Um jogo com “Pausar atualizações” fica na versão que tem" } diff --git a/ui/i18n/pt.json b/ui/i18n/pt.json index be2fff45..3c4bcb53 100644 --- a/ui/i18n/pt.json +++ b/ui/i18n/pt.json @@ -3360,5 +3360,9 @@ "Game A to Z": "Jogo de A a Z", "Checked by the RecompStore team": "Verificado pela equipa da RecompStore", "Open the VirusTotal report": "Abrir o relatório do VirusTotal", - "Verified Update": "Atualização verificada" + "Verified Update": "Atualização verificada", + "Update All Games Automatically": "Atualizar todos os jogos automaticamente", + "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "Cada jogo instalado recebe uma versão nova assim que o launcher a encontra. Primeiro é feita uma cópia dos teus dados guardados. Um jogo com «Pausar atualizações» fica na versão que tem.", + "On for every game in Settings → Updates.": "Ativado para todos os jogos em Definições → Atualizações.", + "A game with Pause Updates stays on the version it has": "Um jogo com «Pausar atualizações» fica na versão que tem" } diff --git a/ui/i18n/ru.json b/ui/i18n/ru.json index 598cb01c..bb61727c 100644 --- a/ui/i18n/ru.json +++ b/ui/i18n/ru.json @@ -3360,5 +3360,9 @@ "Game A to Z": "Игра от А до Я", "Checked by the RecompStore team": "Проверено командой RecompStore", "Open the VirusTotal report": "Открыть отчёт VirusTotal", - "Verified Update": "Проверенное обновление" + "Verified Update": "Проверенное обновление", + "Update All Games Automatically": "Обновлять все игры автоматически", + "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "Каждая установленная игра получает новый релиз, как только лаунчер его находит. Сначала создаётся копия ваших сохранений. Игра с «Приостановить обновления» остаётся на своей версии.", + "On for every game in Settings → Updates.": "Включено для всех игр в Настройки → Обновления.", + "A game with Pause Updates stays on the version it has": "Игра с «Приостановить обновления» остаётся на своей версии" } diff --git a/ui/i18n/th.json b/ui/i18n/th.json index 75b21fc5..9fca6cb6 100644 --- a/ui/i18n/th.json +++ b/ui/i18n/th.json @@ -3360,5 +3360,9 @@ "Game A to Z": "เกม ก ถึง ฮ", "Checked by the RecompStore team": "ตรวจสอบโดยทีม RecompStore", "Open the VirusTotal report": "เปิดรายงาน VirusTotal", - "Verified Update": "อัปเดตที่ยืนยันแล้ว" + "Verified Update": "อัปเดตที่ยืนยันแล้ว", + "Update All Games Automatically": "อัปเดตทุกเกมอัตโนมัติ", + "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "ทุกเกมที่ติดตั้งไว้จะได้รับรุ่นใหม่ทันทีที่ตัวเปิดเกมพบ โดยจะสำรองเซฟของคุณไว้ก่อน เกมที่เปิด “หยุดอัปเดตชั่วคราว” จะอยู่ที่เวอร์ชันที่มี", + "On for every game in Settings → Updates.": "เปิดไว้สำหรับทุกเกมใน การตั้งค่า → อัปเดต", + "A game with Pause Updates stays on the version it has": "เกมที่เปิด “หยุดอัปเดตชั่วคราว” จะอยู่ที่เวอร์ชันที่มี" } diff --git a/ui/i18n/tr.json b/ui/i18n/tr.json index 0ab6d02e..5ab12ca8 100644 --- a/ui/i18n/tr.json +++ b/ui/i18n/tr.json @@ -3360,5 +3360,9 @@ "Game A to Z": "Oyun A'dan Z'ye", "Checked by the RecompStore team": "RecompStore ekibi tarafından kontrol edildi", "Open the VirusTotal report": "VirusTotal raporunu aç", - "Verified Update": "Doğrulanmış güncelleme" + "Verified Update": "Doğrulanmış güncelleme", + "Update All Games Automatically": "Tüm Oyunları Otomatik Güncelle", + "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "Yüklü her oyun, başlatıcı yeni bir sürüm bulur bulmaz onu alır. Önce kayıtlarınız yedeklenir. “Güncellemeleri Duraklat” açık olan bir oyun sahip olduğu sürümde kalır.", + "On for every game in Settings → Updates.": "Ayarlar → Güncellemeler bölümünde tüm oyunlar için açık.", + "A game with Pause Updates stays on the version it has": "“Güncellemeleri Duraklat” açık olan bir oyun sahip olduğu sürümde kalır" } diff --git a/ui/i18n/uk.json b/ui/i18n/uk.json index fbe3f0c9..d31c9582 100644 --- a/ui/i18n/uk.json +++ b/ui/i18n/uk.json @@ -3360,5 +3360,9 @@ "Game A to Z": "Гра від А до Я", "Checked by the RecompStore team": "Перевірено командою RecompStore", "Open the VirusTotal report": "Відкрити звіт VirusTotal", - "Verified Update": "Перевірене оновлення" + "Verified Update": "Перевірене оновлення", + "Update All Games Automatically": "Оновлювати всі ігри автоматично", + "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "Кожна встановлена гра отримує новий реліз, щойно лаунчер його знаходить. Спершу створюється копія твоїх збережень. Гра з «Призупинити оновлення» залишається на своїй версії.", + "On for every game in Settings → Updates.": "Увімкнено для всіх ігор у Налаштування → Оновлення.", + "A game with Pause Updates stays on the version it has": "Гра з «Призупинити оновлення» залишається на своїй версії" } diff --git a/ui/i18n/vi.json b/ui/i18n/vi.json index dc10bcba..2ef87c4b 100644 --- a/ui/i18n/vi.json +++ b/ui/i18n/vi.json @@ -3360,5 +3360,9 @@ "Game A to Z": "Trò chơi A đến Z", "Checked by the RecompStore team": "Đã được đội ngũ RecompStore kiểm tra", "Open the VirusTotal report": "Mở báo cáo VirusTotal", - "Verified Update": "Bản cập nhật đã xác minh" + "Verified Update": "Bản cập nhật đã xác minh", + "Update All Games Automatically": "Tự động cập nhật mọi game", + "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "Mỗi game đã cài nhận bản phát hành mới ngay khi trình khởi chạy tìm thấy. Dữ liệu lưu của bạn được sao lưu trước. Game đã bật “Tạm dừng cập nhật” giữ nguyên phiên bản đang có.", + "On for every game in Settings → Updates.": "Đang bật cho mọi game trong Cài đặt → Cập nhật.", + "A game with Pause Updates stays on the version it has": "Game đã bật “Tạm dừng cập nhật” giữ nguyên phiên bản đang có" } diff --git a/ui/i18n/zh-Hans.json b/ui/i18n/zh-Hans.json index 00e02208..62a21db3 100644 --- a/ui/i18n/zh-Hans.json +++ b/ui/i18n/zh-Hans.json @@ -3360,5 +3360,9 @@ "Game A to Z": "按游戏名称排序", "Checked by the RecompStore team": "已由 RecompStore 团队检查", "Open the VirusTotal report": "打开 VirusTotal 报告", - "Verified Update": "已验证的更新" + "Verified Update": "已验证的更新", + "Update All Games Automatically": "自动更新所有游戏", + "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "启动器一发现新版本,所有已安装的游戏就会立即更新。更新前会先备份你的存档。设为“暂停更新”的游戏会停留在当前版本。", + "On for every game in Settings → Updates.": "已在 设置 → 更新 中为所有游戏开启。", + "A game with Pause Updates stays on the version it has": "设为“暂停更新”的游戏会停留在当前版本" } diff --git a/ui/i18n/zh-Hant.json b/ui/i18n/zh-Hant.json index 55fd3d5a..8443ef5f 100644 --- a/ui/i18n/zh-Hant.json +++ b/ui/i18n/zh-Hant.json @@ -3360,5 +3360,9 @@ "Game A to Z": "依遊戲名稱排序", "Checked by the RecompStore team": "已由 RecompStore 團隊檢查", "Open the VirusTotal report": "開啟 VirusTotal 報告", - "Verified Update": "已驗證的更新" + "Verified Update": "已驗證的更新", + "Update All Games Automatically": "自動更新所有遊戲", + "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "啟動器一找到新版本,所有已安裝的遊戲就會立即更新。更新前會先備份您的存檔。設為「暫停更新」的遊戲會停留在目前版本。", + "On for every game in Settings → Updates.": "已在 設定 → 更新 中為所有遊戲開啟。", + "A game with Pause Updates stays on the version it has": "設為「暫停更新」的遊戲會停留在目前版本" } diff --git a/ui/tv.js b/ui/tv.js index 3e4addf4..cd6d7abe 100644 --- a/ui/tv.js +++ b/ui/tv.js @@ -1260,6 +1260,7 @@ ${sw('close_to_tray', t('Run in background'), t('Keep RecompLauncher running when you close the window. Turn off to exit on close. Quit always exits.'))} ${head(t('Games and updates'))} ${sw('notify', t('Notifications'), t('When a new recomp comes out for a game you own'))} + ${sw('auto_update_all', t('Update All Games Automatically'), t('A game with Pause Updates stays on the version it has'))} ${sw('backup_before_update', t('Back up saves before updates'), t('The newest five copies of each game\'s saves'))} ${sw('auto_install', t('Auto-Install'), t('Open a game\'s setup or installer as soon as it finishes downloading'), S.settings.auto_install !== false)} ${sw('hide_ai', t('Hide AI-assisted recomps'), t('They won\'t show in Discover'))} @@ -2767,7 +2768,7 @@ setScroll(keepY, false); return; } - if (el.dataset.toggle) { sfx('select'); const k = el.dataset.toggle, on = k === 'sounds' || k === 'discord' || k === 'auto_install' ? S.settings[k] !== false : !!S.settings[k]; await saveSettings({ [k]: !on }); draw(true); if (k === 'steam_sync' && !on && window.steamSync) window.steamSync(false); return; } + if (el.dataset.toggle) { sfx('select'); const k = el.dataset.toggle, on = k === 'sounds' || k === 'discord' || k === 'auto_install' ? S.settings[k] !== false : !!S.settings[k]; await saveSettings({ [k]: !on }); draw(true); if (k === 'steam_sync' && !on && window.steamSync) window.steamSync(false); if (k === 'auto_update_all' && !on) checkUpdates(); return; } if (el.dataset.shotI !== undefined) { sfx('select'); return shotView(Number(el.dataset.shotI)); } if (el.dataset.gset) return cycleSetting(el, 1); if (el.dataset.gbmod) return tvGbMod(TV.arg, el.dataset.gbmod); From 151422322927159489541392665995b8178c7915 Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Thu, 19 Nov 2026 22:29:44 +0200 Subject: [PATCH 2/3] A game's own Update automatically can opt it out of Update All With Update All Games Automatically on, a game's switch in its Manage tab (and its menu) is no longer locked on: turning it off keeps just that game waiting for the player, remembered apart from its own setting, and turning it on again lets it follow Settings. Big Picture's game options get the same switch. Pause Updates still hides the update altogether. --- tests/auto-update-all.test.cjs | 70 ++++++++++++++++++++++++++++------ ui/app.js | 45 +++++++++++++++++----- ui/i18n/ar.json | 8 ++-- ui/i18n/de.json | 8 ++-- ui/i18n/es-419.json | 8 ++-- ui/i18n/es.json | 8 ++-- ui/i18n/fr.json | 8 ++-- ui/i18n/id.json | 8 ++-- ui/i18n/it.json | 8 ++-- ui/i18n/ja.json | 8 ++-- ui/i18n/ko.json | 8 ++-- ui/i18n/nl.json | 8 ++-- ui/i18n/pl.json | 8 ++-- ui/i18n/pt-BR.json | 8 ++-- ui/i18n/pt.json | 8 ++-- ui/i18n/ru.json | 8 ++-- ui/i18n/th.json | 8 ++-- ui/i18n/tr.json | 8 ++-- ui/i18n/uk.json | 8 ++-- ui/i18n/vi.json | 8 ++-- ui/i18n/zh-Hans.json | 8 ++-- ui/i18n/zh-Hant.json | 8 ++-- ui/tv.js | 4 +- 23 files changed, 197 insertions(+), 82 deletions(-) diff --git a/tests/auto-update-all.test.cjs b/tests/auto-update-all.test.cjs index 3ed296ec..86f4b654 100644 --- a/tests/auto-update-all.test.cjs +++ b/tests/auto-update-all.test.cjs @@ -7,8 +7,8 @@ const vm = require('node:vm'); const app = fs.readFileSync(path.join(__dirname, '../ui/app.js'), 'utf8'); const tv = fs.readFileSync(path.join(__dirname, '../ui/tv.js'), 'utf8'); const fn = (src, name, indent = '') => src.match(new RegExp(`^${indent}(?:async )?function ${name}\\([^]*?^${indent}}`, 'm'))[0]; -const helpersSrc = [/^const autoInstall = .*$/m, /^const autoUpdateAll = .*$/m, /^const autoUpdates = .*$/m] - .map((re) => app.match(re)[0]).join('\n'); +const helpersSrc = [/^const autoInstall = .*$/m, /^const autoUpdateAll = .*$/m, /^const autoUpSkipped = .*$/m] + .map((re) => app.match(re)[0]).join('\n') + '\n' + fn(app, 'autoUpdates') + '\n' + fn(app, 'toggleAutoUpdate'); function settingsContext(settings) { const c = vm.createContext({ @@ -28,8 +28,21 @@ function settingsContext(settings) { c.window = c; c.clockRow = () => ''; c.monitorPicked = () => ''; c.monitorName = () => ''; vm.runInContext(helpersSrc, c); - // A const stays inside the script it was declared in, so the tests ask for it by name. - c.autoUpdates = vm.runInContext('autoUpdates', c); + return c; +} + +// Arrays made inside the sandbox aren't this file's arrays, so they're compared as plain data. +const plain = (x) => JSON.parse(JSON.stringify(x)); + +// A library of the given games, and a record of what a game's own switch saves. +function switchContext(settings, library) { + const c = settingsContext(settings); + c.S.library = library; + c.calls = []; + c.invoke = async (command, args) => { c.calls.push({ command, autoUpdate: args.autoUpdate }); return { ...library[args.id], auto_update: args.autoUpdate }; }; + c.saveUi = async (patch) => { c.calls.push({ ui: patch }); c.S.settings.ui = { ...(c.S.settings.ui || {}), ...patch }; }; + c.toast = () => {}; c.render = () => {}; + c.fail = (error) => { throw error; }; return c; } @@ -54,23 +67,56 @@ test('Big Picture shows the same Update All Games Automatically switch', () => { }); test('a game updates by itself with only its own switch on', () => { - const c = settingsContext({}); - assert.equal(c.autoUpdates({ auto_update: true }), true); - assert.equal(c.autoUpdates({ auto_update: false }), false); + const c = switchContext({}, { a: { auto_update: true }, b: { auto_update: false } }); + assert.equal(c.autoUpdates('a'), true); + assert.equal(c.autoUpdates('b'), false); }); test('every game updates by itself with the Settings switch on', () => { - const c = settingsContext({ auto_update_all: true }); - assert.equal(c.autoUpdates({ auto_update: false }), true); + const c = switchContext({ auto_update_all: true }, { b: { auto_update: false } }); + assert.equal(c.autoUpdates('b'), true); +}); + +test('a game turned off in its Manage tab waits, even with the Settings switch on', () => { + const c = switchContext({ auto_update_all: true, ui: { auto_update_skip: ['b'] } }, { b: { auto_update: false } }); + assert.equal(c.autoUpdates('b'), false); }); test('a local build never updates by itself, even with the Settings switch on', () => { - const c = settingsContext({ auto_update_all: true }); - assert.equal(c.autoUpdates({ local: true, auto_update: true }), false); + const c = switchContext({ auto_update_all: true }, { l: { local: true, auto_update: true } }); + assert.equal(c.autoUpdates('l'), false); +}); + +test('with the Settings switch on, a game\'s own switch goes on the skip list and off it again', async () => { + const c = switchContext({ auto_update_all: true }, { b: { name: 'B', auto_update: false } }); + await c.toggleAutoUpdate('b'); + assert.equal(c.autoUpdates('b'), false); + await c.toggleAutoUpdate('b'); + assert.equal(c.autoUpdates('b'), true); + assert.deepEqual(plain(c.calls), [{ ui: { auto_update_skip: ['b'] } }, { ui: { auto_update_skip: [] } }]); +}); + +test('with the Settings switch on, turning off a game that had its own switch on clears that too', async () => { + const c = switchContext({ auto_update_all: true }, { a: { name: 'A', auto_update: true } }); + await c.toggleAutoUpdate('a'); + assert.equal(c.autoUpdates('a'), false); + assert.deepEqual(plain(c.calls), [{ command: 'set_game_options', autoUpdate: false }, { ui: { auto_update_skip: ['a'] } }]); +}); + +test('with the Settings switch off, a game\'s own switch saves only the game', async () => { + const c = switchContext({}, { b: { name: 'B', auto_update: false } }); + await c.toggleAutoUpdate('b'); + assert.equal(c.autoUpdates('b'), true); + assert.deepEqual(plain(c.calls), [{ command: 'set_game_options', autoUpdate: true }]); +}); + +test('Big Picture\'s game options carry the same switch', () => { + assert.match(tv, /window\.autoUpdates\(id\); return \{ label: on \? t\('Turn off automatic updates'\) : t\('Update automatically'\)/); + assert.match(tv, /run: async \(\) => \{ await window\.toggleAutoUpdate\(id\); draw\(true\); \}/); }); test('the update check starts the updates of games that update by themselves', () => { - assert.match(fn(app, 'checkUpdates'), /\.filter\(\(id\) => autoUpdates\(S\.library\[id\]\) && !S\.running\.has\(id\)/); + assert.match(fn(app, 'checkUpdates'), /\.filter\(\(id\) => autoUpdates\(id\) && !S\.running\.has\(id\)/); }); test('turning the Settings switch on starts the updates already waiting', async () => { diff --git a/ui/app.js b/ui/app.js index c9a49d58..22af6356 100644 --- a/ui/app.js +++ b/ui/app.js @@ -194,10 +194,18 @@ const isInstallerApp = (a) => !!(a && a.installer) && S.os === 'windows'; // Settings → Auto-Install: a finished download goes straight on to its setup or installer. On // unless the player turned it off (settings saved before the switch existed have no value). const autoInstall = () => S.settings.auto_install !== false; -// Settings → Update All Games Automatically, or the game's own Update automatically. A local build -// has no releases to update from, so it never does. +// Settings → Update All Games Automatically, or the game's own Update automatically. A game turned +// off in its own Manage tab while Settings has it on is remembered apart (ui.auto_update_skip), so +// that one game waits for the player; Pause Updates is different: it hides the update altogether. +// A local build has no releases to update from, so it never updates. const autoUpdateAll = () => !!S.settings.auto_update_all; -const autoUpdates = (g) => !!g && !g.local && (autoUpdateAll() || !!g.auto_update); +const autoUpSkipped = () => new Set(((S.settings.ui || {}).auto_update_skip || []).filter((x) => typeof x === 'string')); +function autoUpdates(id) { + const g = S.library[id]; + if (!g || g.local) return false; + if (g.auto_update) return true; + return autoUpdateAll() && !autoUpSkipped().has(id); +} const installerDue = (id) => !!(S.library[id] && S.library[id].installer_setup); // The yellow Set Up: the developer's steps not done yet, or an installer waiting to run. const setupDue = (a) => !!a && ((needsSetup(a) && !setupDone(a.id)) || installerDue(a.id)); @@ -2540,7 +2548,7 @@ function gameBody(a) {
${esc(t('Folder'))}${esc(inst.path)}
${inst.local ? '' : ``}
${esc(t('Shortcuts'))}${esc(S.steam ? t('Start it from your desktop or from Steam, with its art. Play time still counts here.') : t('Start it from your desktop. Play time still counts here.'))}
${S.steam ? `` : ''}
${esc(t('Project association'))}${esc(inst.local ? t('Untracked · no updates') : inst.repo)}
- ${inst.local ? '' : `
${esc(t('Update automatically'))}${esc(autoUpdateAll() ? t('On for every game in Settings → Updates.') : t('Installs new releases as soon as the launcher finds them. Your saves are backed up first.'))}
`} + ${inst.local ? '' : `
${esc(t('Update automatically'))}${esc(autoUpdateAll() ? t('Settings → Updates turns this on for every game. Off here: this game waits for you.') : t('Installs new releases as soon as the launcher finds them. Your saves are backed up first.'))}
`}
${esc(t('Launch options'))}${inst.args ? esc(inst.args) : esc(t('Extra options passed to the game when it starts.'))}
${easyRow(id)} ${programRow(id, inst)} @@ -4212,7 +4220,7 @@ function pageSettings() { case 'updates': body = group(t('Updates'), row(t('Check for Updates'), t('Asks each installed game\'s GitHub for a newer release now.'), ``) + row(t('Look for updates when the launcher opens'), t('Asks each installed game\'s GitHub for a newer release. Turn on Update automatically for a game in its Manage tab.'), sw('check_updates', st.check_updates, t('Look for updates'))) - + 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. A game with Pause Updates stays on the version it has.'), sw('auto_update_all', autoUpdateAll(), t('Update All Games Automatically'))) + + 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 each game\'s saves and settings.'), sw('backup_before_update', st.backup_before_update, t('Back up before updates'))) + row(t('Auto-Install'), t('When an Easy Install 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'))) @@ -5060,6 +5068,26 @@ async function toggleHold(id) { } window.holdItem = holdItem; window.toggleHold = toggleHold; +window.autoUpdates = autoUpdates; +window.toggleAutoUpdate = toggleAutoUpdate; +// A game's own Update automatically (its Manage tab and ⋯ menu). While Settings updates every game, +// off puts just this game on the skip list and on takes it off again; its own setting only changes +// when Settings doesn't already cover it. +async function toggleAutoUpdate(id) { + const g = S.library[id]; + if (!g) return; + const on = !autoUpdates(id); + const all = autoUpdateAll(); + const setOwn = on ? !all : !!g.auto_update; + const skip = autoUpSkipped(); + if (on) skip.delete(id); else skip.add(id); + try { + if (setOwn) S.library[id] = await invoke('set_game_options', { id, args: null, autoUpdate: on }); + if (all) await saveUi({ auto_update_skip: [...skip] }, true); + } catch (err) { return fail(err); } + toast(on ? tf('{name} updates by itself now.', { name: g.name }) : t('Updates wait for you again.')); + render(true); +} async function checkUpdates(loud) { const revision = updateCheckRevision; try { @@ -5076,7 +5104,7 @@ async function checkUpdates(loud) { if (window.tvRefresh && document.body.classList.contains('tv-on')) window.tvRefresh(); if (S.view === 'downloads') render(true); // Never on its own to a version the site found crashing for a lot of players. - const auto = Object.keys(S.updates).filter((id) => autoUpdates(S.library[id]) && !S.running.has(id) && !S.jobs[id] && !(S.paused || {})[id] && !badVersion(byId(id), S.updates[id])); + const auto = Object.keys(S.updates).filter((id) => autoUpdates(id) && !S.running.has(id) && !S.jobs[id] && !(S.paused || {})[id] && !badVersion(byId(id), S.updates[id])); for (const id of auto) startInstall(id); const n = Object.keys(S.updates).length - auto.length; if (auto.length) toast(auto.length === 1 ? tf('Updating {name}.', { name: S.library[auto[0]].name }) : tf('Updating {n} games.', { n: auto.length })); @@ -5795,7 +5823,7 @@ function gameMenu(id) { ...(g ? ['-', { label: t('Manage'), icon: 'gear', sub: [ { act: 'project-association', id, label: t('Project association…'), icon: 'layers' }, - ...(!g.local ? [{ act: 'auto-up', id, label: t('Update automatically'), icon: 'refresh', check: autoUpdates(g) }] : []), + ...(!g.local ? [{ act: 'auto-up', id, label: t('Update automatically'), icon: 'refresh', check: autoUpdates(id) }] : []), ...holdItem(id), { act: 'versions', id, label: t('Changelog and other versions'), icon: 'history' }, ...(!g.local ? [{ act: 'build', id, label: t('Change Build…'), icon: 'layers' }] : []), @@ -8190,8 +8218,7 @@ async function act(el, e) { case 'hold-up': return toggleHold(id); case 'free-space': return freeUpSpace(id); case 'move-build': return moveBuild(id); - // While Settings updates every game, the game's own switch has nothing to change: say where it's set. - case 'auto-up': if (autoUpdateAll()) { toast(t('On for every game in Settings → Updates.')); return; } try { S.library[id] = await invoke('set_game_options', { id, args: null, autoUpdate: !S.library[id].auto_update }); toast(S.library[id].auto_update ? tf('{name} updates by itself now.', { name: S.library[id].name }) : t('Updates wait for you again.')); render(true); } catch (err) { fail(err); } return; + case 'auto-up': return toggleAutoUpdate(id); case 'launch-opts': return launchOptions(id); case 'rename': return renameModal(id); case 'troubleshoot': return troubleshootModal(id); diff --git a/ui/i18n/ar.json b/ui/i18n/ar.json index 6c521cd6..d7384f98 100644 --- a/ui/i18n/ar.json +++ b/ui/i18n/ar.json @@ -3362,7 +3362,9 @@ "Open the VirusTotal report": "فتح تقرير VirusTotal", "Verified Update": "تحديث موثّق", "Update All Games Automatically": "تحديث كل الألعاب تلقائيًا", - "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "تحصل كل لعبة مثبتة على الإصدار الجديد فور عثور المشغل عليه. يتم نسخ ملفات الحفظ احتياطيًا أولًا. تبقى اللعبة التي فُعّل لها «إيقاف التحديثات مؤقتًا» على الإصدار الذي لديها.", - "On for every game in Settings → Updates.": "مفعّل لكل الألعاب في الإعدادات ← التحديثات.", - "A game with Pause Updates stays on the version it has": "تبقى اللعبة التي فُعّل لها «إيقاف التحديثات مؤقتًا» على الإصدار الذي لديها" + "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.": "تحصل كل لعبة مثبتة على الإصدار الجديد فور عثور المشغل عليه. يتم نسخ ملفات الحفظ احتياطيًا أولًا. لتجعل لعبة تنتظرك، أوقف «التحديث تلقائيًا» في تبويب «إدارة» الخاص بها.", + "Settings → Updates turns this on for every game. Off here: this game waits for you.": "الإعدادات ← التحديثات يفعّل هذا لكل الألعاب. متوقف هنا: هذه اللعبة تنتظرك.", + "Every installed game takes a new release as soon as the launcher finds one": "تحصل كل لعبة مثبتة على الإصدار الجديد فور عثور المشغل عليه", + "Turn off automatic updates": "إيقاف التحديثات التلقائية", + "Updates wait for you in Downloads": "التحديثات تنتظرك في «التنزيلات»" } diff --git a/ui/i18n/de.json b/ui/i18n/de.json index 17725a7d..ecce6f06 100644 --- a/ui/i18n/de.json +++ b/ui/i18n/de.json @@ -3362,7 +3362,9 @@ "Open the VirusTotal report": "VirusTotal-Bericht öffnen", "Verified Update": "Verifiziertes Update", "Update All Games Automatically": "Alle Spiele automatisch aktualisieren", - "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "Jedes installierte Spiel bekommt ein neues Release, sobald der Launcher es findet. Deine Spielstände werden vorher gesichert. Ein Spiel mit „Updates pausieren“ bleibt bei der Version, die es hat.", - "On for every game in Settings → Updates.": "Für alle Spiele an, in Einstellungen → Updates.", - "A game with Pause Updates stays on the version it has": "Ein Spiel mit „Updates pausieren“ bleibt bei der Version, die es hat" + "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.": "Jedes installierte Spiel bekommt ein neues Release, sobald der Launcher es findet. Deine Spielstände werden vorher gesichert. Soll ein Spiel auf dich warten, schalte „Automatisch aktualisieren“ in seinem Tab „Verwalten“ aus.", + "Settings → Updates turns this on for every game. Off here: this game waits for you.": "Einstellungen → Updates schaltet das für alle Spiele ein. Hier aus: Dieses Spiel wartet auf dich.", + "Every installed game takes a new release as soon as the launcher finds one": "Jedes installierte Spiel bekommt ein neues Release, sobald der Launcher es findet", + "Turn off automatic updates": "Automatische Updates ausschalten", + "Updates wait for you in Downloads": "Updates warten unter Downloads auf dich" } diff --git a/ui/i18n/es-419.json b/ui/i18n/es-419.json index ca7ede8a..0ceeaeec 100644 --- a/ui/i18n/es-419.json +++ b/ui/i18n/es-419.json @@ -3362,7 +3362,9 @@ "Open the VirusTotal report": "Abrir el informe de VirusTotal", "Verified Update": "Actualización verificada", "Update All Games Automatically": "Actualizar todos los juegos automáticamente", - "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "Cada juego instalado recibe una versión nueva en cuanto el lanzador la encuentra. Antes se hace una copia de tus partidas. Un juego con «Pausar actualizaciones» se queda en la versión que tiene.", - "On for every game in Settings → Updates.": "Activado para todos los juegos en Configuración → Actualizaciones.", - "A game with Pause Updates stays on the version it has": "Un juego con «Pausar actualizaciones» se queda en la versión que tiene" + "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.": "Cada juego instalado recibe una versión nueva en cuanto el lanzador la encuentra. Antes se hace una copia de tus partidas. Para que un juego te espere, desactiva «Actualizar automáticamente» en su pestaña Administrar.", + "Settings → Updates turns this on for every game. Off here: this game waits for you.": "Configuración → Actualizaciones lo activa para todos los juegos. Desactivado aquí: este juego te espera.", + "Every installed game takes a new release as soon as the launcher finds one": "Cada juego instalado recibe una versión nueva en cuanto el lanzador la encuentra", + "Turn off automatic updates": "Desactivar las actualizaciones automáticas", + "Updates wait for you in Downloads": "Las actualizaciones te esperan en Descargas" } diff --git a/ui/i18n/es.json b/ui/i18n/es.json index cda19a7c..5c85af93 100644 --- a/ui/i18n/es.json +++ b/ui/i18n/es.json @@ -3362,7 +3362,9 @@ "Open the VirusTotal report": "Abrir el informe de VirusTotal", "Verified Update": "Actualización verificada", "Update All Games Automatically": "Actualizar todos los juegos automáticamente", - "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "Cada juego instalado recibe una versión nueva en cuanto el lanzador la encuentra. Antes se hace una copia de tus partidas. Un juego con «Pausar actualizaciones» se queda en la versión que tiene.", - "On for every game in Settings → Updates.": "Activado para todos los juegos en Configuración → Actualizaciones.", - "A game with Pause Updates stays on the version it has": "Un juego con «Pausar actualizaciones» se queda en la versión que tiene" + "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.": "Cada juego instalado recibe una versión nueva en cuanto el lanzador la encuentra. Antes se hace una copia de tus partidas. Para que un juego te espere, desactiva «Actualizar automáticamente» en su pestaña Administrar.", + "Settings → Updates turns this on for every game. Off here: this game waits for you.": "Configuración → Actualizaciones lo activa para todos los juegos. Desactivado aquí: este juego te espera.", + "Every installed game takes a new release as soon as the launcher finds one": "Cada juego instalado recibe una versión nueva en cuanto el lanzador la encuentra", + "Turn off automatic updates": "Desactivar las actualizaciones automáticas", + "Updates wait for you in Downloads": "Las actualizaciones te esperan en Descargas" } diff --git a/ui/i18n/fr.json b/ui/i18n/fr.json index a56ef1ec..f687cf01 100644 --- a/ui/i18n/fr.json +++ b/ui/i18n/fr.json @@ -3362,7 +3362,9 @@ "Open the VirusTotal report": "Ouvrir le rapport VirusTotal", "Verified Update": "Mise à jour vérifiée", "Update All Games Automatically": "Mettre à jour tous les jeux automatiquement", - "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "Chaque jeu installé reçoit une nouvelle version dès que le lanceur la trouve. Vos sauvegardes sont d’abord copiées. Un jeu avec « Suspendre les mises à jour » reste sur la version qu’il a.", - "On for every game in Settings → Updates.": "Activé pour tous les jeux dans Paramètres → Mises à jour.", - "A game with Pause Updates stays on the version it has": "Un jeu avec « Suspendre les mises à jour » reste sur la version qu’il a" + "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.": "Chaque jeu installé reçoit une nouvelle version dès que le lanceur la trouve. Vos sauvegardes sont d’abord copiées. Pour qu’un jeu vous attende, désactivez « Mettre à jour automatiquement » dans son onglet Gérer.", + "Settings → Updates turns this on for every game. Off here: this game waits for you.": "Paramètres → Mises à jour l’active pour tous les jeux. Désactivé ici : ce jeu vous attend.", + "Every installed game takes a new release as soon as the launcher finds one": "Chaque jeu installé reçoit une nouvelle version dès que le lanceur la trouve", + "Turn off automatic updates": "Désactiver les mises à jour automatiques", + "Updates wait for you in Downloads": "Les mises à jour vous attendent dans Téléchargements" } diff --git a/ui/i18n/id.json b/ui/i18n/id.json index 1f2377eb..1be41c59 100644 --- a/ui/i18n/id.json +++ b/ui/i18n/id.json @@ -3362,7 +3362,9 @@ "Open the VirusTotal report": "Buka laporan VirusTotal", "Verified Update": "Pembaruan terverifikasi", "Update All Games Automatically": "Perbarui Semua Game Otomatis", - "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "Setiap game yang terpasang mendapat rilis baru begitu launcher menemukannya. Save-mu dicadangkan dulu. Game dengan “Jeda Pembaruan” tetap di versi yang dimilikinya.", - "On for every game in Settings → Updates.": "Aktif untuk semua game di Pengaturan → Pembaruan.", - "A game with Pause Updates stays on the version it has": "Game dengan “Jeda Pembaruan” tetap di versi yang dimilikinya" + "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.": "Setiap game yang terpasang mendapat rilis baru begitu launcher menemukannya. Save-mu dicadangkan dulu. Agar satu game menunggumu, matikan “Perbarui otomatis” di tab Kelola game itu.", + "Settings → Updates turns this on for every game. Off here: this game waits for you.": "Pengaturan → Pembaruan menyalakan ini untuk semua game. Mati di sini: game ini menunggumu.", + "Every installed game takes a new release as soon as the launcher finds one": "Setiap game yang terpasang mendapat rilis baru begitu launcher menemukannya", + "Turn off automatic updates": "Matikan pembaruan otomatis", + "Updates wait for you in Downloads": "Pembaruan menunggumu di Unduhan" } diff --git a/ui/i18n/it.json b/ui/i18n/it.json index 633a897e..9ada1e5b 100644 --- a/ui/i18n/it.json +++ b/ui/i18n/it.json @@ -3362,7 +3362,9 @@ "Open the VirusTotal report": "Apri il report di VirusTotal", "Verified Update": "Aggiornamento verificato", "Update All Games Automatically": "Aggiorna automaticamente tutti i giochi", - "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "Ogni gioco installato riceve una nuova release appena il launcher la trova. Prima viene fatto il backup dei salvataggi. Un gioco con «Sospendi aggiornamenti» resta sulla versione che ha.", - "On for every game in Settings → Updates.": "Attivo per tutti i giochi in Impostazioni → Aggiornamenti.", - "A game with Pause Updates stays on the version it has": "Un gioco con «Sospendi aggiornamenti» resta sulla versione che ha" + "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.": "Ogni gioco installato riceve una nuova release appena il launcher la trova. Prima viene fatto il backup dei salvataggi. Per far aspettare un gioco, disattiva «Aggiorna automaticamente» nella sua scheda Gestisci.", + "Settings → Updates turns this on for every game. Off here: this game waits for you.": "Impostazioni → Aggiornamenti lo attiva per tutti i giochi. Disattivato qui: questo gioco ti aspetta.", + "Every installed game takes a new release as soon as the launcher finds one": "Ogni gioco installato riceve una nuova release appena il launcher la trova", + "Turn off automatic updates": "Disattiva gli aggiornamenti automatici", + "Updates wait for you in Downloads": "Gli aggiornamenti ti aspettano in Download" } diff --git a/ui/i18n/ja.json b/ui/i18n/ja.json index 4c10572a..4e9e3341 100644 --- a/ui/i18n/ja.json +++ b/ui/i18n/ja.json @@ -3362,7 +3362,9 @@ "Open the VirusTotal report": "VirusTotal のレポートを開く", "Verified Update": "確認済みのアップデート", "Update All Games Automatically": "すべてのゲームを自動でアップデート", - "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "インストール済みのゲームはすべて、ランチャーが新しいリリースを見つけたらすぐにアップデートされます。先にセーブデータがバックアップされます。「更新を一時停止」にしたゲームは今のバージョンのままです。", - "On for every game in Settings → Updates.": "設定 → アップデートで、すべてのゲームに対してオンになっています。", - "A game with Pause Updates stays on the version it has": "「更新を一時停止」にしたゲームは今のバージョンのままです" + "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.": "インストール済みのゲームはすべて、ランチャーが新しいリリースを見つけたらすぐにアップデートされます。先にセーブデータがバックアップされます。待たせたいゲームは、その「管理」タブで「自動でアップデート」をオフにしてください。", + "Settings → Updates turns this on for every game. Off here: this game waits for you.": "設定 → アップデートで、すべてのゲームに対してオンになっています。ここでオフにすると、このゲームはあなたを待ちます。", + "Every installed game takes a new release as soon as the launcher finds one": "インストール済みのゲームはすべて、ランチャーが新しいリリースを見つけたらすぐにアップデートされます", + "Turn off automatic updates": "自動アップデートをオフにする", + "Updates wait for you in Downloads": "アップデートは「ダウンロード」で待っています" } diff --git a/ui/i18n/ko.json b/ui/i18n/ko.json index d865827e..75c9de62 100644 --- a/ui/i18n/ko.json +++ b/ui/i18n/ko.json @@ -3362,7 +3362,9 @@ "Open the VirusTotal report": "VirusTotal 보고서 열기", "Verified Update": "확인된 업데이트", "Update All Games Automatically": "모든 게임 자동 업데이트", - "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "설치된 모든 게임은 런처가 새 릴리스를 찾으면 바로 받습니다. 저장 데이터는 먼저 백업됩니다. “업데이트 일시 중지”를 켠 게임은 지금 버전에 머뭅니다.", - "On for every game in Settings → Updates.": "설정 → 업데이트에서 모든 게임에 켜져 있습니다.", - "A game with Pause Updates stays on the version it has": "“업데이트 일시 중지”를 켠 게임은 지금 버전에 머뭅니다" + "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.": "설치된 모든 게임은 런처가 새 릴리스를 찾으면 바로 받습니다. 저장 데이터는 먼저 백업됩니다. 한 게임만 기다리게 하려면 그 게임의 관리 탭에서 “자동 업데이트”를 끄세요.", + "Settings → Updates turns this on for every game. Off here: this game waits for you.": "설정 → 업데이트에서 모든 게임에 켜져 있습니다. 여기서 끄면 이 게임은 기다립니다.", + "Every installed game takes a new release as soon as the launcher finds one": "설치된 모든 게임은 런처가 새 릴리스를 찾으면 바로 받습니다", + "Turn off automatic updates": "자동 업데이트 끄기", + "Updates wait for you in Downloads": "업데이트는 다운로드에서 기다립니다" } diff --git a/ui/i18n/nl.json b/ui/i18n/nl.json index 3550ca50..95c4f59b 100644 --- a/ui/i18n/nl.json +++ b/ui/i18n/nl.json @@ -3362,7 +3362,9 @@ "Open the VirusTotal report": "VirusTotal-rapport openen", "Verified Update": "Geverifieerde update", "Update All Games Automatically": "Alle games automatisch bijwerken", - "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "Elke geïnstalleerde game krijgt een nieuwe release zodra de launcher die vindt. Er wordt eerst een back-up van je opgeslagen games gemaakt. Een game met ‘Updates pauzeren’ blijft op de versie die het heeft.", - "On for every game in Settings → Updates.": "Aan voor elke game in Instellingen → Updates.", - "A game with Pause Updates stays on the version it has": "Een game met ‘Updates pauzeren’ blijft op de versie die het heeft" + "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.": "Elke geïnstalleerde game krijgt een nieuwe release zodra de launcher die vindt. Er wordt eerst een back-up van je opgeslagen games gemaakt. Wil je dat één game op je wacht, zet dan ‘Automatisch bijwerken’ uit op het tabblad Beheren.", + "Settings → Updates turns this on for every game. Off here: this game waits for you.": "Instellingen → Updates zet dit aan voor elke game. Hier uit: deze game wacht op jou.", + "Every installed game takes a new release as soon as the launcher finds one": "Elke geïnstalleerde game krijgt een nieuwe release zodra de launcher die vindt", + "Turn off automatic updates": "Automatische updates uitzetten", + "Updates wait for you in Downloads": "Updates wachten op je bij Downloads" } diff --git a/ui/i18n/pl.json b/ui/i18n/pl.json index 4c8f9ab0..21414f5b 100644 --- a/ui/i18n/pl.json +++ b/ui/i18n/pl.json @@ -3362,7 +3362,9 @@ "Open the VirusTotal report": "Otwórz raport VirusTotal", "Verified Update": "Zweryfikowana aktualizacja", "Update All Games Automatically": "Aktualizuj automatycznie wszystkie gry", - "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "Każda zainstalowana gra dostaje nowe wydanie, gdy tylko launcher je znajdzie. Najpierw tworzona jest kopia twoich zapisów. Gra z opcją „Wstrzymaj aktualizacje” zostaje przy wersji, którą ma.", - "On for every game in Settings → Updates.": "Włączone dla wszystkich gier w Ustawienia → Aktualizacje.", - "A game with Pause Updates stays on the version it has": "Gra z opcją „Wstrzymaj aktualizacje” zostaje przy wersji, którą ma" + "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.": "Każda zainstalowana gra dostaje nowe wydanie, gdy tylko launcher je znajdzie. Najpierw tworzona jest kopia twoich zapisów. Żeby jedna gra na ciebie czekała, wyłącz „Aktualizuj automatycznie” w jej karcie Zarządzaj.", + "Settings → Updates turns this on for every game. Off here: this game waits for you.": "Ustawienia → Aktualizacje włączają to dla wszystkich gier. Wyłączone tutaj: ta gra na ciebie czeka.", + "Every installed game takes a new release as soon as the launcher finds one": "Każda zainstalowana gra dostaje nowe wydanie, gdy tylko launcher je znajdzie", + "Turn off automatic updates": "Wyłącz automatyczne aktualizacje", + "Updates wait for you in Downloads": "Aktualizacje czekają na ciebie w Pobieraniu" } diff --git a/ui/i18n/pt-BR.json b/ui/i18n/pt-BR.json index 80dc7720..85d81bf8 100644 --- a/ui/i18n/pt-BR.json +++ b/ui/i18n/pt-BR.json @@ -3362,7 +3362,9 @@ "Open the VirusTotal report": "Abrir o relatório do VirusTotal", "Verified Update": "Atualização verificada", "Update All Games Automatically": "Atualizar todos os jogos automaticamente", - "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "Cada jogo instalado recebe uma versão nova assim que o launcher a encontra. Antes é feito um backup dos seus dados salvos. Um jogo com “Pausar atualizações” fica na versão que tem.", - "On for every game in Settings → Updates.": "Ativado para todos os jogos em Configurações → Atualizações.", - "A game with Pause Updates stays on the version it has": "Um jogo com “Pausar atualizações” fica na versão que tem" + "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.": "Cada jogo instalado recebe uma versão nova assim que o launcher a encontra. Antes é feito um backup dos seus dados salvos. Para um jogo esperar por você, desative “Atualizar automaticamente” na aba Gerenciar.", + "Settings → Updates turns this on for every game. Off here: this game waits for you.": "Configurações → Atualizações ativa isso para todos os jogos. Desativado aqui: este jogo espera por você.", + "Every installed game takes a new release as soon as the launcher finds one": "Cada jogo instalado recebe uma versão nova assim que o launcher a encontra", + "Turn off automatic updates": "Desativar as atualizações automáticas", + "Updates wait for you in Downloads": "As atualizações esperam por você em Downloads" } diff --git a/ui/i18n/pt.json b/ui/i18n/pt.json index 3c4bcb53..534696ac 100644 --- a/ui/i18n/pt.json +++ b/ui/i18n/pt.json @@ -3362,7 +3362,9 @@ "Open the VirusTotal report": "Abrir o relatório do VirusTotal", "Verified Update": "Atualização verificada", "Update All Games Automatically": "Atualizar todos os jogos automaticamente", - "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "Cada jogo instalado recebe uma versão nova assim que o launcher a encontra. Primeiro é feita uma cópia dos teus dados guardados. Um jogo com «Pausar atualizações» fica na versão que tem.", - "On for every game in Settings → Updates.": "Ativado para todos os jogos em Definições → Atualizações.", - "A game with Pause Updates stays on the version it has": "Um jogo com «Pausar atualizações» fica na versão que tem" + "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.": "Cada jogo instalado recebe uma versão nova assim que o launcher a encontra. Primeiro é feita uma cópia dos teus dados guardados. Para um jogo esperar por ti, desativa «Atualizar automaticamente» no separador Gerir.", + "Settings → Updates turns this on for every game. Off here: this game waits for you.": "Definições → Atualizações ativa isto para todos os jogos. Desativado aqui: este jogo espera por ti.", + "Every installed game takes a new release as soon as the launcher finds one": "Cada jogo instalado recebe uma versão nova assim que o launcher a encontra", + "Turn off automatic updates": "Desativar as atualizações automáticas", + "Updates wait for you in Downloads": "As atualizações esperam por ti em Transferências" } diff --git a/ui/i18n/ru.json b/ui/i18n/ru.json index bb61727c..1402dcc0 100644 --- a/ui/i18n/ru.json +++ b/ui/i18n/ru.json @@ -3362,7 +3362,9 @@ "Open the VirusTotal report": "Открыть отчёт VirusTotal", "Verified Update": "Проверенное обновление", "Update All Games Automatically": "Обновлять все игры автоматически", - "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "Каждая установленная игра получает новый релиз, как только лаунчер его находит. Сначала создаётся копия ваших сохранений. Игра с «Приостановить обновления» остаётся на своей версии.", - "On for every game in Settings → Updates.": "Включено для всех игр в Настройки → Обновления.", - "A game with Pause Updates stays on the version it has": "Игра с «Приостановить обновления» остаётся на своей версии" + "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.": "Каждая установленная игра получает новый релиз, как только лаунчер его находит. Сначала создаётся копия ваших сохранений. Чтобы игра ждала вас, выключите «Обновлять автоматически» на её вкладке «Управление».", + "Settings → Updates turns this on for every game. Off here: this game waits for you.": "Настройки → Обновления включают это для всех игр. Выключено здесь: эта игра ждёт вас.", + "Every installed game takes a new release as soon as the launcher finds one": "Каждая установленная игра получает новый релиз, как только лаунчер его находит", + "Turn off automatic updates": "Выключить автообновления", + "Updates wait for you in Downloads": "Обновления ждут вас в «Загрузках»" } diff --git a/ui/i18n/th.json b/ui/i18n/th.json index 9fca6cb6..0ea21149 100644 --- a/ui/i18n/th.json +++ b/ui/i18n/th.json @@ -3362,7 +3362,9 @@ "Open the VirusTotal report": "เปิดรายงาน VirusTotal", "Verified Update": "อัปเดตที่ยืนยันแล้ว", "Update All Games Automatically": "อัปเดตทุกเกมอัตโนมัติ", - "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "ทุกเกมที่ติดตั้งไว้จะได้รับรุ่นใหม่ทันทีที่ตัวเปิดเกมพบ โดยจะสำรองเซฟของคุณไว้ก่อน เกมที่เปิด “หยุดอัปเดตชั่วคราว” จะอยู่ที่เวอร์ชันที่มี", - "On for every game in Settings → Updates.": "เปิดไว้สำหรับทุกเกมใน การตั้งค่า → อัปเดต", - "A game with Pause Updates stays on the version it has": "เกมที่เปิด “หยุดอัปเดตชั่วคราว” จะอยู่ที่เวอร์ชันที่มี" + "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.": "ทุกเกมที่ติดตั้งไว้จะได้รับรุ่นใหม่ทันทีที่ตัวเปิดเกมพบ โดยจะสำรองเซฟของคุณไว้ก่อน หากอยากให้เกมใดรอคุณ ให้ปิด “อัปเดตอัตโนมัติ” ในแท็บจัดการของเกมนั้น", + "Settings → Updates turns this on for every game. Off here: this game waits for you.": "การตั้งค่า → อัปเดต เปิดตัวเลือกนี้ให้ทุกเกม ปิดตรงนี้: เกมนี้จะรอคุณ", + "Every installed game takes a new release as soon as the launcher finds one": "ทุกเกมที่ติดตั้งไว้จะได้รับรุ่นใหม่ทันทีที่ตัวเปิดเกมพบ", + "Turn off automatic updates": "ปิดการอัปเดตอัตโนมัติ", + "Updates wait for you in Downloads": "อัปเดตจะรอคุณอยู่ในดาวน์โหลด" } diff --git a/ui/i18n/tr.json b/ui/i18n/tr.json index 5ab12ca8..d2052a25 100644 --- a/ui/i18n/tr.json +++ b/ui/i18n/tr.json @@ -3362,7 +3362,9 @@ "Open the VirusTotal report": "VirusTotal raporunu aç", "Verified Update": "Doğrulanmış güncelleme", "Update All Games Automatically": "Tüm Oyunları Otomatik Güncelle", - "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "Yüklü her oyun, başlatıcı yeni bir sürüm bulur bulmaz onu alır. Önce kayıtlarınız yedeklenir. “Güncellemeleri Duraklat” açık olan bir oyun sahip olduğu sürümde kalır.", - "On for every game in Settings → Updates.": "Ayarlar → Güncellemeler bölümünde tüm oyunlar için açık.", - "A game with Pause Updates stays on the version it has": "“Güncellemeleri Duraklat” açık olan bir oyun sahip olduğu sürümde kalır" + "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.": "Yüklü her oyun, başlatıcı yeni bir sürüm bulur bulmaz onu alır. Önce kayıtlarınız yedeklenir. Bir oyunun sizi beklemesi için Yönet sekmesinde “Otomatik güncelle”yi kapatın.", + "Settings → Updates turns this on for every game. Off here: this game waits for you.": "Ayarlar → Güncellemeler bunu tüm oyunlar için açar. Burada kapalı: bu oyun sizi bekler.", + "Every installed game takes a new release as soon as the launcher finds one": "Yüklü her oyun, başlatıcı yeni bir sürüm bulur bulmaz onu alır", + "Turn off automatic updates": "Otomatik güncellemeleri kapat", + "Updates wait for you in Downloads": "Güncellemeler İndirmeler’de sizi bekler" } diff --git a/ui/i18n/uk.json b/ui/i18n/uk.json index d31c9582..3089a36d 100644 --- a/ui/i18n/uk.json +++ b/ui/i18n/uk.json @@ -3362,7 +3362,9 @@ "Open the VirusTotal report": "Відкрити звіт VirusTotal", "Verified Update": "Перевірене оновлення", "Update All Games Automatically": "Оновлювати всі ігри автоматично", - "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "Кожна встановлена гра отримує новий реліз, щойно лаунчер його знаходить. Спершу створюється копія твоїх збережень. Гра з «Призупинити оновлення» залишається на своїй версії.", - "On for every game in Settings → Updates.": "Увімкнено для всіх ігор у Налаштування → Оновлення.", - "A game with Pause Updates stays on the version it has": "Гра з «Призупинити оновлення» залишається на своїй версії" + "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.": "Кожна встановлена гра отримує новий реліз, щойно лаунчер його знаходить. Спершу створюється копія твоїх збережень. Щоб гра чекала на тебе, вимкни «Оновлювати автоматично» на її вкладці «Керування».", + "Settings → Updates turns this on for every game. Off here: this game waits for you.": "Налаштування → Оновлення вмикають це для всіх ігор. Вимкнено тут: ця гра чекає на тебе.", + "Every installed game takes a new release as soon as the launcher finds one": "Кожна встановлена гра отримує новий реліз, щойно лаунчер його знаходить", + "Turn off automatic updates": "Вимкнути автооновлення", + "Updates wait for you in Downloads": "Оновлення чекають на тебе в «Завантаженнях»" } diff --git a/ui/i18n/vi.json b/ui/i18n/vi.json index 2ef87c4b..c123f20a 100644 --- a/ui/i18n/vi.json +++ b/ui/i18n/vi.json @@ -3362,7 +3362,9 @@ "Open the VirusTotal report": "Mở báo cáo VirusTotal", "Verified Update": "Bản cập nhật đã xác minh", "Update All Games Automatically": "Tự động cập nhật mọi game", - "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "Mỗi game đã cài nhận bản phát hành mới ngay khi trình khởi chạy tìm thấy. Dữ liệu lưu của bạn được sao lưu trước. Game đã bật “Tạm dừng cập nhật” giữ nguyên phiên bản đang có.", - "On for every game in Settings → Updates.": "Đang bật cho mọi game trong Cài đặt → Cập nhật.", - "A game with Pause Updates stays on the version it has": "Game đã bật “Tạm dừng cập nhật” giữ nguyên phiên bản đang có" + "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.": "Mỗi game đã cài nhận bản phát hành mới ngay khi trình khởi chạy tìm thấy. Dữ liệu lưu của bạn được sao lưu trước. Để một game chờ bạn, hãy tắt “Tự động cập nhật” trong thẻ Quản lý của nó.", + "Settings → Updates turns this on for every game. Off here: this game waits for you.": "Cài đặt → Cập nhật bật mục này cho mọi game. Tắt ở đây: game này sẽ chờ bạn.", + "Every installed game takes a new release as soon as the launcher finds one": "Mỗi game đã cài nhận bản phát hành mới ngay khi trình khởi chạy tìm thấy", + "Turn off automatic updates": "Tắt tự động cập nhật", + "Updates wait for you in Downloads": "Bản cập nhật chờ bạn trong Tải xuống" } diff --git a/ui/i18n/zh-Hans.json b/ui/i18n/zh-Hans.json index 62a21db3..e4d8789b 100644 --- a/ui/i18n/zh-Hans.json +++ b/ui/i18n/zh-Hans.json @@ -3362,7 +3362,9 @@ "Open the VirusTotal report": "打开 VirusTotal 报告", "Verified Update": "已验证的更新", "Update All Games Automatically": "自动更新所有游戏", - "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "启动器一发现新版本,所有已安装的游戏就会立即更新。更新前会先备份你的存档。设为“暂停更新”的游戏会停留在当前版本。", - "On for every game in Settings → Updates.": "已在 设置 → 更新 中为所有游戏开启。", - "A game with Pause Updates stays on the version it has": "设为“暂停更新”的游戏会停留在当前版本" + "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.": "启动器一发现新版本,所有已安装的游戏就会立即更新。更新前会先备份你的存档。想让某个游戏等你,请在它的“管理”标签页中关闭“自动更新”。", + "Settings → Updates turns this on for every game. Off here: this game waits for you.": "设置 → 更新 为所有游戏开启了此项。在这里关闭:这个游戏会等你。", + "Every installed game takes a new release as soon as the launcher finds one": "启动器一发现新版本,所有已安装的游戏就会立即更新", + "Turn off automatic updates": "关闭自动更新", + "Updates wait for you in Downloads": "更新会在“下载”中等你" } diff --git a/ui/i18n/zh-Hant.json b/ui/i18n/zh-Hant.json index 8443ef5f..a2504271 100644 --- a/ui/i18n/zh-Hant.json +++ b/ui/i18n/zh-Hant.json @@ -3362,7 +3362,9 @@ "Open the VirusTotal report": "開啟 VirusTotal 報告", "Verified Update": "已驗證的更新", "Update All Games Automatically": "自動更新所有遊戲", - "Every installed game takes a new release as soon as the launcher finds one, with your saves backed up first. A game with Pause Updates stays on the version it has.": "啟動器一找到新版本,所有已安裝的遊戲就會立即更新。更新前會先備份您的存檔。設為「暫停更新」的遊戲會停留在目前版本。", - "On for every game in Settings → Updates.": "已在 設定 → 更新 中為所有遊戲開啟。", - "A game with Pause Updates stays on the version it has": "設為「暫停更新」的遊戲會停留在目前版本" + "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.": "啟動器一找到新版本,所有已安裝的遊戲就會立即更新。更新前會先備份您的存檔。想讓某個遊戲等您,請在它的「管理」分頁中關閉「自動更新」。", + "Settings → Updates turns this on for every game. Off here: this game waits for you.": "設定 → 更新 為所有遊戲開啟了此項。在這裡關閉:這個遊戲會等您。", + "Every installed game takes a new release as soon as the launcher finds one": "啟動器一找到新版本,所有已安裝的遊戲就會立即更新", + "Turn off automatic updates": "關閉自動更新", + "Updates wait for you in Downloads": "更新會在「下載」中等您" } diff --git a/ui/tv.js b/ui/tv.js index cd6d7abe..9a2385c5 100644 --- a/ui/tv.js +++ b/ui/tv.js @@ -1260,7 +1260,7 @@ ${sw('close_to_tray', t('Run in background'), t('Keep RecompLauncher running when you close the window. Turn off to exit on close. Quit always exits.'))} ${head(t('Games and updates'))} ${sw('notify', t('Notifications'), t('When a new recomp comes out for a game you own'))} - ${sw('auto_update_all', t('Update All Games Automatically'), t('A game with Pause Updates stays on the version it has'))} + ${sw('auto_update_all', t('Update All Games Automatically'), t('Every installed game takes a new release as soon as the launcher finds one'))} ${sw('backup_before_update', t('Back up saves before updates'), t('The newest five copies of each game\'s saves'))} ${sw('auto_install', t('Auto-Install'), t('Open a game\'s setup or installer as soon as it finishes downloading'), S.settings.auto_install !== false)} ${sw('hide_ai', t('Hide AI-assisted recomps'), t('They won\'t show in Discover'))} @@ -1764,6 +1764,8 @@ ...(S.steam ? [{ label: t('Add to desktop'), sub: t('A shortcut that starts it'), icon: 'desk', run: async () => { try { await invoke('desktop_shortcut', { id }); toast(tf('{name} is on your desktop.', { name: g.name })); } catch (e) { fail(e); } } }] : []), ...(S.account && S.account.signedIn ? [{ label: g.cloud ? t('Turn off cloud saves') : t('Turn on cloud saves'), sub: g.cloud ? t('Its saves stay on this PC from now on') : t('Its saves go to your account after you play'), icon: 'cloud', run: async () => { try { S.library[id] = await invoke('saves_cloud', { id, on: !g.cloud }); toast(g.cloud ? t('Cloud saves are off for it. What\'s in the cloud stays there.') : t('Cloud saves are on for it.')); } catch (e) { fail(e); } } }] : []), ...(window.tvBetaItem && window.tvBetaItem(id) ? [window.tvBetaItem(id)] : []), + // The same switch as the game's Manage tab on the desktop, and the same skip list under Settings. + ...(!g.local && window.autoUpdates ? [(() => { const on = window.autoUpdates(id); return { label: on ? t('Turn off automatic updates') : t('Update automatically'), sub: on ? t('Updates wait for you in Downloads') : t('Installs new releases as soon as the launcher finds them. Your saves are backed up first.'), icon: 'refresh', run: async () => { await window.toggleAutoUpdate(id); draw(true); } }; })()] : []), ...(!g.local && window.holdItem ? [(() => { const on = window.holdItem(id)[0]?.check; return { label: on ? t('Resume Updates') : t('Pause Updates'), sub: on ? ((S.held || {})[id] ? tf('{v} is out', { v: S.held[id] }) : t('It updates like the rest again')) : t('It stays on the version it has'), icon: 'pause', run: async () => { await window.toggleHold(id); draw(true); } }; })()] : []), { 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) }, From f25f6c7c709a014821f83434a0e855cb97681f83 Mon Sep 17 00:00:00 2001 From: Zacharias Xenakis Date: Thu, 19 Nov 2026 23:02:47 +0200 Subject: [PATCH 3/3] Title Case knows "automatic" Big Picture's new Turn off automatic updates showed as "Turn Off automatic Updates": the English Title Case word list had "automatically" but not "automatic". --- tests/auto-update-all.test.cjs | 11 +++++++++++ ui/titlecase.js | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/tests/auto-update-all.test.cjs b/tests/auto-update-all.test.cjs index 86f4b654..656e195e 100644 --- a/tests/auto-update-all.test.cjs +++ b/tests/auto-update-all.test.cjs @@ -134,3 +134,14 @@ test('turning the Settings switch on starts the updates already waiting', async assert.deepEqual(saved, [true, false]); assert.equal(checks, 1); }); + +test('Big Picture\'s Turn off automatic updates reads in Title Case in English', () => { + const src = fs.readFileSync(path.join(__dirname, '../ui/titlecase.js'), 'utf8'); + const c = vm.createContext({ + document: { body: null, documentElement: { lang: 'en' }, addEventListener: () => {} }, + MutationObserver: class { observe() {} }, + }); + c.window = c; + vm.runInContext(src, c); + assert.equal(c.titleCase('Turn off automatic updates'), 'Turn Off Automatic Updates'); +}); diff --git a/ui/titlecase.js b/ui/titlecase.js index 44ca49d0..d1dfd356 100644 --- a/ui/titlecase.js +++ b/ui/titlecase.js @@ -2,7 +2,7 @@ // "1 Copy"): done on the page as it's drawn, for English only, so the other languages keep their own // capitals. Only the launcher's own words are changed, never a game's or a developer's name. (function () { - const WORDS = new Set("a able about access account across actions activate add added adds after again against all allow almost already always an and anonymous another answer antivirus any anymore anything anywhere are aren aren't around art article as asked asks assisted at automatically available back backed backs backups banner be before being below beta between big bit black blocked blue bottom breaks bring broadcast broke browser bug build builds built busy but button buttons by can can't capture card certainly change changed changes chat check checked checks checksum choices choose clean cleared click clip clock close closed closes cloud code color com come comes coming community compare complete compressed computer connect connected connection console contrast controller controllers copied copies copy couch could couldn couldn't counts cover covers crashes crisp crosire curved dark date decide decides default delete deleted deletes desk desktop detail details developer developer's developers device diagnostics did didn didn't disc discover disk do does doesn doesn't doing done download downloaded downloading downloads draw drawn drive driver drives dump each easier else email empty enough errors every everything exactly exist expected extras faster feedback feels few file files filter find finds fine finish first fits five fix fixed flag flagged flat folder folders follow following for forward found free fresh from full game game's games games' genre get gets given glow go goes going gone grain graphics great guide had halos hand handheld happened happens harmful has hasn't have haven haven't hear help helped helping helps here hidden history holding holds home hour hours how icon icons idea if image images in incomplete info ini insert inside install installed installs instead instructions internet into is isn isn't it it's items its itself join json just keep keeps kept keyboard know known knows language larger last later latest launch launcher launcher's leaves left let lets library library's license like liked lines linked list listed little ll load loaded loader local logs long look looking looks lost lot made make many match matched matches may me means menu message min minute missing mistake mod mod's mode mods moment monitor month more mouse move moved moves music my name names native need needs never new newer newest next no non none normal not notes nothing notification now of off offline old older on once one ones only open opened opening opens optional options or original other others out over own page part parts passed paste phone pick picked picker picks picture pinned place places play played player player's playing plays plugged popular press problem problems processor profile program programs progress project properly put puts quick quit quotes ran random rar re reach reached read reads ready rebuilt recent recomp recomp's recomps recompstore region release releases remove reply report reports reset rest restarts revision right run running runs runtime safe said same save saved saves say saying says scan scanlines scans screen screens screenshot screenshots search sec see select send sent session set sets setting settings setup share sharing shader shaders sharp ship shortcut shortcuts should show shown shows side sidebar sign signed signing since size so soft software some something somewhere soon sound space spaces speed spots spread stars start started starter starts stats status stay stays step steps still stopped straight strong sure switch tab tag take taken takes tell ten test testers testing texture than thanks that that's the their them then there there's these they they're thing things this through time to today too took tools top total try tube tune turn turned two type uncompressed under understand unexpectedly uninstalled unless unpack unpacked unpacks until unusual up update updated updates us usage use used usual usually ve verified version versions view vignette virus voice vote wait waiting want was wasn't way we website week weeks went were what what's when where whether which while who whole whose why will window with without won won't words work working works worth would write writing wrong yesterday yet you you'd you're your yours yourself zip".split(' ')); + const WORDS = new Set("a able about access account across actions activate add added adds after again against all allow almost already always an and anonymous another answer antivirus any anymore anything anywhere are aren aren't around art article as asked asks assisted at automatic automatically availableback backed backs backups banner be before being below beta between big bit black blocked blue bottom breaks bring broadcast broke browser bug build builds built busy but button buttons by can can't capture card certainly change changed changes chat check checked checks checksum choices choose clean cleared click clip clock close closed closes cloud code color com come comes coming community compare complete compressed computer connect connected connection console contrast controller controllers copied copies copy couch could couldn couldn't counts cover covers crashes crisp crosire curved dark date decide decides default delete deleted deletes desk desktop detail details developer developer's developers device diagnostics did didn didn't disc discover disk do does doesn doesn't doing done download downloaded downloading downloads draw drawn drive driver drives dump each easier else email empty enough errors every everything exactly exist expected extras faster feedback feels few file files filter find finds fine finish first fits five fix fixed flag flagged flat folder folders follow following for forward found free fresh from full game game's games games' genre get gets given glow go goes going gone grain graphics great guide had halos hand handheld happened happens harmful has hasn't have haven haven't hear help helped helping helps here hidden history holding holds home hour hours how icon icons idea if image images in incomplete info ini insert inside install installed installs instead instructions internet into is isn isn't it it's items its itself join json just keep keeps kept keyboard know known knows language larger last later latest launch launcher launcher's leaves left let lets library library's license like liked lines linked list listed little ll load loaded loader local logs long look looking looks lost lot made make many match matched matches may me means menu message min minute missing mistake mod mod's mode mods moment monitor month more mouse move moved moves music my name names native need needs never new newer newest next no non none normal not notes nothing notification now of off offline old older on once one ones only open opened opening opens optional options or original other others out over own page part parts passed paste phone pick picked picker picks picture pinned place places play played player player's playing plays plugged popular press problem problems processor profile program programs progress project properly put puts quick quit quotes ran random rar re reach reached read reads ready rebuilt recent recomp recomp's recomps recompstore region release releases remove reply report reports reset rest restarts revision right run running runs runtime safe said same save saved saves say saying says scan scanlines scans screen screens screenshot screenshots search sec see select send sent session set sets setting settings setup share sharing shader shaders sharp ship shortcut shortcuts should show shown shows side sidebar sign signed signing since size so soft software some something somewhere soon sound space spaces speed spots spread stars start started starter starts stats status stay stays step steps still stopped straight strong sure switch tab tag take taken takes tell ten test testers testing texture than thanks that that's the their them then there there's these they they're thing things this through time to today too took tools top total try tube tune turn turned two type uncompressed under understand unexpectedly uninstalled unless unpack unpacked unpacks until unusual up update updated updates us usage use used usual usually ve verified version versions view vignette virus voice vote wait waiting want was wasn't way we website week weeks went were what what's when where whether which while who whole whose why will window with without won won't words work working works worth would write writing wrong yesterday yet you you'd you're your yours yourself zip".split(' ')); const SMALL = new Set(['a', 'an', 'the', 'and', 'but', 'or', 'nor', 'for', 'so', 'at', 'by', 'in', 'of', 'on', 'to', 'as', 'via', 'per', 'from', 'with', 'into', 'than', 'vs']); // Where it applies, and where it never does (names, paths, logs, sentences). const SEL = 'h1, h2, h3, h4, .btn, .linkbtn, .toggle, .seg button, .tabs-in button, .chip, .tag, .badge, .pill-sel, .set-tab span, .side .lbl, .menu button, .set-row .k > b, .card-h h3, .shelf-h h2, .sec-h, .stats span, .slot-n, .dl-when, .upd-when, .count-line, .tv-head h2, .tv-btn span, .tv-item .k, .tv-chip, .tv-pill, .tv-lh, .tv-sec h3, .tv-tab, .tv-cycle b, option';