diff --git a/src-tauri/src/library.rs b/src-tauri/src/library.rs index 714a0c32..98980f10 100644 --- a/src-tauri/src/library.rs +++ b/src-tauri/src/library.rs @@ -492,6 +492,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 { @@ -547,6 +552,7 @@ impl Default for Settings { linux_graphics: String::new(), steam_sync: false, auto_install: true, + auto_update_all: false, } } } @@ -931,6 +937,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 b605b810..43341abc 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..df2578f6 --- /dev/null +++ b/tests/auto-update-all.test.cjs @@ -0,0 +1,167 @@ +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 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({ + 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, ownedGames: () => [], bgMode: () => '', langName: () => 'English', + svg: () => '', hints: () => '', HEART: '', setClock: () => {}, + }); + c.window = c; + c.clockRow = () => ''; c.monitorPicked = () => ''; c.monitorName = () => ''; + vm.runInContext(helpersSrc, 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; +} + +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 = 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 = 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); +}); + +// The Updates card of a game's Manage tab, for a game with neither its own switch nor Pause on. +function manageUpdates(settings) { + const c = switchContext(settings, { g: { repo: 'dev/hydro', tag: 'v1', auto_update: false } }); + Object.assign(c, { isLab: () => false, isSF: () => false, fmtB: String, heldIds: () => new Set() }); + vm.runInContext(fn(app, 'manageUpdateRows'), c); + return c.manageUpdateRows('g', c.S.library.g).join(''); +} + +test('with the Settings switch on, the Manage tab shows the game\'s switch on and says why', () => { + const html = manageUpdates({ auto_update_all: true }); + assert.match(html, /Settings → Updates turns this on for every game\. Off here: this game waits for you\./); + assert.match(html, /aria-checked="true" aria-label="Update automatically" data-act="auto-up"/); +}); + +test('with the Settings switch off, the Manage tab shows the game\'s own setting', () => { + const html = manageUpdates({}); + assert.match(html, /Installs new releases as soon as the launcher finds them\./); + assert.match(html, /aria-checked="false" aria-label="Update automatically" data-act="auto-up"/); +}); + +test('a local build never updates by itself, even with the Settings switch on', () => { + 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\(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); +}); + +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/tests/manage-tab.test.cjs b/tests/manage-tab.test.cjs index 8b67d261..49af23a5 100644 --- a/tests/manage-tab.test.cjs +++ b/tests/manage-tab.test.cjs @@ -11,11 +11,12 @@ const fileRows = (inst, signedIn) => { const run = new Function('S', 't', 'esc', `${fn(app, 'manageFileRows')}; return manageFileRows;`); return run({ account: { signedIn } }, same, same)('g', inst).join(''); }; -// The rows of the Updates card, with the game's updates paused or not. +// The rows of the Updates card, with the game's updates paused or not (and Settings → Update All +// Games Automatically off). const updateRows = (inst, held) => { - const run = new Function('S', 't', 'esc', 'isLab', 'isSF', 'fmtB', 'heldIds', `${fn(app, 'manageUpdateRows')}; return manageUpdateRows;`); + const run = new Function('S', 't', 'esc', 'isLab', 'isSF', 'fmtB', 'heldIds', 'autoUpdateAll', 'autoUpdates', `${fn(app, 'manageUpdateRows')}; return manageUpdateRows;`); const no = () => false; - return run({}, same, same, no, no, String, () => new Set(held ? ['g'] : []))('g', inst).join(''); + return run({}, same, same, no, no, String, () => new Set(held ? ['g'] : []), no, () => !!inst.auto_update)('g', inst).join(''); }; const GAME = { path: 'F:\\Library\\hydro', repo: 'dev/hydro', tag: 'v1.3.0' }; diff --git a/ui/app.js b/ui/app.js index 7de670cb..59fb25e5 100644 --- a/ui/app.js +++ b/ui/app.js @@ -199,6 +199,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 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 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)); @@ -2555,9 +2567,10 @@ function manageUpdateRows(id, inst) { const checked = inst.verified ? (other ? t('matched its release\'s checksum') : t('matched GitHub\'s checksum')) : (other ? t('Its release had no checksum for it') : t('GitHub had no checksum for it')); const what = inst.asset ? `${esc(inst.tag)} · ${esc(inst.asset)}${inst.size ? ' · ' + fmtB(inst.size) : ''} · ${esc(checked)}` : esc(inst.tag || t('Not known. Updating puts the newest one in its folder.')); const held = heldIds().has(id); + const autoSub = 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.'); return [ `
${esc(t('Installed version'))}${what}
`, - `
${esc(t('Update automatically'))}${esc(t('Installs new releases as soon as the launcher finds them. Your saves are backed up first.'))}
`, + `
${esc(t('Update automatically'))}${esc(autoSub)}
`, `
${esc(t('Pause Updates'))}${esc(t('It stays on the version it has until you turn this off.'))}
`, project, ]; @@ -4361,6 +4374,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. To keep one game waiting for you, turn off Update automatically in its Manage tab.'), sw('auto_update_all', autoUpdateAll(), t('Update All Games Automatically'))) + row(t('Back up saves before updates'), t('Keeps the newest five copies of the saves in each game\'s folder.'), sw('backup_before_update', st.backup_before_update, t('Back up before updates'))) + row(t('Auto-Install'), t('When an Easy 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'))) @@ -5211,6 +5225,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). 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); +} // Update toasts count games, like the rest of the launcher. Several recomps of one game are named // by the game; a single recomp keeps its own name. function updateName(ids) { @@ -5246,7 +5280,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(id) && !S.running.has(id) && !S.jobs[id] && !(S.paused || {})[id] && !badVersion(byId(id), S.updates[id])); for (const id of auto) startInstall(id); if (auto.length) toast(updatingLine(auto)); const waiting = Object.keys(S.updates).filter((k) => !auto.includes(k)); @@ -8410,7 +8444,7 @@ 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; + case 'auto-up': return toggleAutoUpdate(id); case 'launch-opts': return launchOptions(id); case 'rename': return renameModal(id); case 'troubleshoot': return troubleshootModal(id); @@ -8702,6 +8736,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 df0f4e29..caf04d8b 100644 --- a/ui/i18n/ar.json +++ b/ui/i18n/ar.json @@ -3354,5 +3354,11 @@ "Checked by the RecompStore team": "تم الفحص بواسطة فريق RecompStore", "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. 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": "التحديثات تنتظرك في «التنزيلات»", "N/A": "غير متاح" } diff --git a/ui/i18n/de.json b/ui/i18n/de.json index 0e45212e..e7cbeb4c 100644 --- a/ui/i18n/de.json +++ b/ui/i18n/de.json @@ -3354,5 +3354,11 @@ "Checked by the RecompStore team": "Vom RecompStore-Team geprüft", "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. 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", "N/A": "k. A." } diff --git a/ui/i18n/es-419.json b/ui/i18n/es-419.json index 04045525..2f4acfd7 100644 --- a/ui/i18n/es-419.json +++ b/ui/i18n/es-419.json @@ -3354,5 +3354,11 @@ "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", + "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. 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", "N/A": "N/D" } diff --git a/ui/i18n/es.json b/ui/i18n/es.json index 1496f317..2cd96e2d 100644 --- a/ui/i18n/es.json +++ b/ui/i18n/es.json @@ -3354,5 +3354,11 @@ "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", + "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. 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", "N/A": "N/D" } diff --git a/ui/i18n/fr.json b/ui/i18n/fr.json index bd79247b..9562d757 100644 --- a/ui/i18n/fr.json +++ b/ui/i18n/fr.json @@ -3354,5 +3354,11 @@ "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", + "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. 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", "N/A": "N/D" } diff --git a/ui/i18n/id.json b/ui/i18n/id.json index 8655a0cc..f2062136 100644 --- a/ui/i18n/id.json +++ b/ui/i18n/id.json @@ -3354,5 +3354,11 @@ "Checked by the RecompStore team": "Diperiksa oleh tim RecompStore", "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. 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", "N/A": "Tidak ada" } diff --git a/ui/i18n/it.json b/ui/i18n/it.json index 1a951c3a..faa534a9 100644 --- a/ui/i18n/it.json +++ b/ui/i18n/it.json @@ -3354,5 +3354,11 @@ "Checked by the RecompStore team": "Controllato dal team di RecompStore", "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. 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", "N/A": "N/D" } diff --git a/ui/i18n/ja.json b/ui/i18n/ja.json index 17e269d4..218d2149 100644 --- a/ui/i18n/ja.json +++ b/ui/i18n/ja.json @@ -3354,5 +3354,11 @@ "Checked by the RecompStore team": "RecompStore チームが確認済み", "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. 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": "アップデートは「ダウンロード」で待っています", "N/A": "該当なし" } diff --git a/ui/i18n/ko.json b/ui/i18n/ko.json index 7cdce845..40f44a5a 100644 --- a/ui/i18n/ko.json +++ b/ui/i18n/ko.json @@ -3354,5 +3354,11 @@ "Checked by the RecompStore team": "RecompStore 팀이 확인함", "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. 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": "업데이트는 다운로드에서 기다립니다", "N/A": "해당 없음" } diff --git a/ui/i18n/nl.json b/ui/i18n/nl.json index e02871cb..0cec4b5b 100644 --- a/ui/i18n/nl.json +++ b/ui/i18n/nl.json @@ -3354,5 +3354,11 @@ "Checked by the RecompStore team": "Gecontroleerd door het RecompStore-team", "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. 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", "N/A": "n.v.t." } diff --git a/ui/i18n/pl.json b/ui/i18n/pl.json index 2729d3b1..73e53b24 100644 --- a/ui/i18n/pl.json +++ b/ui/i18n/pl.json @@ -3354,5 +3354,11 @@ "Checked by the RecompStore team": "Sprawdzone przez zespół RecompStore", "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. 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", "N/A": "nd." } diff --git a/ui/i18n/pt-BR.json b/ui/i18n/pt-BR.json index 4b3b5a7c..29e6adb7 100644 --- a/ui/i18n/pt-BR.json +++ b/ui/i18n/pt-BR.json @@ -3354,5 +3354,11 @@ "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", + "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. 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", "N/A": "N/D" } diff --git a/ui/i18n/pt.json b/ui/i18n/pt.json index 4846c603..ee3a74e0 100644 --- a/ui/i18n/pt.json +++ b/ui/i18n/pt.json @@ -3354,5 +3354,11 @@ "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", + "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. 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", "N/A": "N/D" } diff --git a/ui/i18n/ru.json b/ui/i18n/ru.json index ff056a57..b6d8f56d 100644 --- a/ui/i18n/ru.json +++ b/ui/i18n/ru.json @@ -3354,5 +3354,11 @@ "Checked by the RecompStore team": "Проверено командой RecompStore", "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. 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": "Обновления ждут вас в «Загрузках»", "N/A": "Н/Д" } diff --git a/ui/i18n/th.json b/ui/i18n/th.json index 11578b6e..ce866e38 100644 --- a/ui/i18n/th.json +++ b/ui/i18n/th.json @@ -3354,5 +3354,11 @@ "Checked by the RecompStore team": "ตรวจสอบโดยทีม RecompStore", "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. 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": "อัปเดตจะรอคุณอยู่ในดาวน์โหลด", "N/A": "ไม่มี" } diff --git a/ui/i18n/tr.json b/ui/i18n/tr.json index 44cfa600..bd1cf1e5 100644 --- a/ui/i18n/tr.json +++ b/ui/i18n/tr.json @@ -3354,5 +3354,11 @@ "Checked by the RecompStore team": "RecompStore ekibi tarafından kontrol edildi", "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. 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", "N/A": "Yok" } diff --git a/ui/i18n/uk.json b/ui/i18n/uk.json index e38d1739..368c080b 100644 --- a/ui/i18n/uk.json +++ b/ui/i18n/uk.json @@ -3354,5 +3354,11 @@ "Checked by the RecompStore team": "Перевірено командою RecompStore", "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. 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": "Оновлення чекають на тебе в «Завантаженнях»", "N/A": "Н/Д" } diff --git a/ui/i18n/vi.json b/ui/i18n/vi.json index 3413b26a..43f026c2 100644 --- a/ui/i18n/vi.json +++ b/ui/i18n/vi.json @@ -3354,5 +3354,11 @@ "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", + "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. 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", "N/A": "Không có" } diff --git a/ui/i18n/zh-Hans.json b/ui/i18n/zh-Hans.json index 93a39490..f9457dbf 100644 --- a/ui/i18n/zh-Hans.json +++ b/ui/i18n/zh-Hans.json @@ -3354,5 +3354,11 @@ "Checked by the RecompStore team": "已由 RecompStore 团队检查", "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. 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": "更新会在“下载”中等你", "N/A": "不适用" } diff --git a/ui/i18n/zh-Hant.json b/ui/i18n/zh-Hant.json index b3ecb885..6a14b9b5 100644 --- a/ui/i18n/zh-Hant.json +++ b/ui/i18n/zh-Hant.json @@ -3354,5 +3354,11 @@ "Checked by the RecompStore team": "已由 RecompStore 團隊檢查", "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. 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": "更新會在「下載」中等您", "N/A": "不適用" } 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'; diff --git a/ui/tv.js b/ui/tv.js index 3545e2b0..ce40dbbd 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('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'))} @@ -1822,6 +1823,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) }, @@ -2849,7 +2852,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);