diff --git a/src-tauri/src/cloud.rs b/src-tauri/src/cloud.rs index 3ebf4fc3..da201a11 100644 --- a/src-tauri/src/cloud.rs +++ b/src-tauri/src/cloud.rs @@ -538,12 +538,21 @@ fn own_saves(st: &App, id: &str) -> Option { /// Where this game's saves are, best first. pub fn spots_of(st: &App, id: &str, g: &Installed) -> Vec { if let Some(p) = own_saves(st, id) { - // Only the game's own: the recomp's other places are the other games'. + // Only the game's own: the recomp's other places are the other games'. Its override too: + // that's the recomp's, and one folder can't stand in for every game's. let mut g = g.clone(); g.save_place = Default::default(); g.more_save_places.clear(); return named_spots(p.game.saves, vec![], &g); } + let named = named_of(st, id, g); + // Asked only with an override set: most games have none, and it takes the library's lock. + let Some(over) = g.save_override.as_deref() else { return named }; + saves::with_override(named, Some(over), crate::player_sets_up(st, id)) +} + +/// Where its developer, the catalog or the player's own picks say it saves, without the override. +fn named_of(st: &App, id: &str, g: &Installed) -> Vec { let cat = crate::cached_catalog(st); let entry = catalog::app(&cat, id).cloned().unwrap_or(Value::Null); let profile_saves = crate::profile::find(&g.path, &g.repo, &entry).map(|p| p.saves).unwrap_or_default(); @@ -1377,6 +1386,7 @@ pub async fn saves_info(app: AppHandle, id: String) -> Res { SpotInfo { exists: shown.exists(), path: p.to_string_lossy().to_string(), template: s.template, from: s.from } }) .collect(); + let swap = override_info(&st, &id, &g); let local = saves::list(&st.dir, &id, &g); let state = saves::state(&st.dir, &id); let mut cloud = Value::Null; @@ -1409,9 +1419,24 @@ pub async fn saves_info(app: AppHandle, id: String) -> Res { // Seconds until a copy that didn't get through is tried again, and whether the account's // cloud saves are full (no uploads until there's room). "retryIn": state.pending.as_deref().and_then(|p| copy_wait_left(&id, p)), "full": full_now(), + "override": swap, })) } +/// Whether the Saves tab offers Change on the folder its developer or RecompLauncher named, and +/// that folder (still shown while the player's own is used). Null when it doesn't. +fn override_info(st: &App, id: &str, g: &Installed) -> Value { + if own_saves(st, id).is_some() { + return Value::Null; + } + let named = named_of(st, id, g); + if !saves::can_override(&named, crate::player_sets_up(st, id)) { + return Value::Null; + } + let path = saves::resolve_for(&named[0].template, g); + json!({ "on": g.save_override.is_some(), "by": named[0].from, "path": path.to_string_lossy() }) +} + /// Where players see whether the site is having trouble on our side. const STATUS_PAGE: &str = "https://recomplauncher.com/status"; @@ -1766,6 +1791,43 @@ pub fn saves_set_place(st: State<'_, App>, id: String, path: Option) -> Ok(g) } +/// The player's folder in place of the one its developer or RecompLauncher named (a +/// recomplauncher.json that still names an old folder), or None to use the named one again. Only +/// for a game set up without Easy Setup, whose saves are in one named folder (saves::can_override). +#[tauri::command(async)] +pub fn saves_set_override(st: State<'_, App>, id: String, path: Option) -> Res { + let g = game(&st, &id)?; + let path = path.filter(|p| !p.trim().is_empty()); + let template = match path { + Some(p) => Some(override_template(&st, &id, &g, &PathBuf::from(p))?), + None => None, + }; + let mut l = st.lib.lock().unwrap(); + let g = l.installed.get_mut(&id).ok_or_else(|| Error::Msg("It isn't installed.".into()))?; + g.save_override = template; + let g = g.clone(); + let _ = l.save(&st.dir); + Ok(g) +} + +/// `dir` as the game's override, or why it can't be (saves::override_refused). +fn override_template(st: &App, id: &str, g: &Installed, dir: &Path) -> Res { + let named = named_of(st, id, g); + if own_saves(st, id).is_some() || !saves::can_override(&named, crate::player_sets_up(st, id)) { + return Err(Error::Msg(OVERRIDE_NOT_HERE.into())); + } + if !dir.is_dir() { + return Err(Error::Msg("That folder couldn't be found.".into())); + } + if let Some(why) = saves::override_refused(dir, &g.path, dirs::home_dir().as_deref()) { + return Err(Error::Msg(why.into())); + } + Ok(saves::templatize_for(dir, g)) +} + +/// A fixed text, so the window can translate it. +pub(crate) const OVERRIDE_NOT_HERE: &str = "Its save folder can only be changed when Easy Setup is skipped for it."; + /// One more folder where the game saves (a launcher with several games in it, each saving in its /// own folder): the ones it has now stay, and backups and cloud saves cover all of them. #[tauri::command(async)] diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 5d52951f..75bdfd33 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -879,6 +879,7 @@ async fn do_install(app: &AppHandle, st: &App, id: &str, dir: Option, t look_amount: prev.as_ref().map(|p| p.look_amount).unwrap_or(50), cloud: prev.as_ref().and_then(|p| p.cloud), save_place: prev.as_ref().and_then(|p| p.save_place.clone()), + save_override: prev.as_ref().and_then(|p| p.save_override.clone()), more_save_places: prev.as_ref().map(|p| p.more_save_places.clone()).unwrap_or_default(), cover_file: prev.as_ref().and_then(|p| p.cover_file.clone()), hero_file: prev.as_ref().and_then(|p| p.hero_file.clone()), @@ -4674,7 +4675,7 @@ fn take_skip_choice(ui: &mut Value, id: &str) -> bool { /// The player sets this game up their own way (Skip Easy Setup): its own mode once installed, or /// the tick in its menu before. A game of several in one recomp follows its recomp. -fn player_sets_up(st: &App, id: &str) -> bool { +pub(crate) fn player_sets_up(st: &App, id: &str) -> bool { let rid = setup_record_id(st, id); let l = st.lib.lock().unwrap(); let all = easy_skipped_for_all(&l.settings.ui); @@ -10339,7 +10340,7 @@ pub fn run() { convert_copy, convert_cancel, looks_info, set_look, look_picture, ui_data, reset_settings, tray::tray_words, tray::quit_launcher, ach::ach_access, ach::ach_status, ach::ach_apply, ach::ach_profile, ach::ach_games, ach::ach_board, ach::ach_game_web, ach::ach_report, ach::ach_tracker_get, ach::ach_game, ach::ach_set_disc, ach::ach_set_folder, ach::ach_sound, ach::ach_log, ach::ach_peek, ach::ach_rule, ach::ach_reset, ach::ach_test_toast, ach::ach_toast_take, ach::ach_toast_done, cloud::account_start, cloud::account_poll, cloud::account_cancel, cloud::account_state, cloud::account_signout, - cloud::saves_check, cloud::saves_pick, cloud::saves_play_without_cloud, cloud::saves_cloud, cloud::saves_cloud_follow_all, download_history, report_counts, play_reports, cloud::saves_info, cloud::saves_status, cloud::saves_peek, cloud::saves_upload_now, cloud::cloud_retry, cloud::saves_overview, cloud::saves_backup, cloud::saves_restore, cloud::saves_cloud_delete, cloud::saves_share, cloud::saves_set_place, cloud::saves_add_place, cloud::saves_remove_place, cloud::saves_open, saves_set_root, saves_open_root, missing_files, missing_made, dll_check, dll_aside, gpu_choice, prefer_fast_gpu, copy_check, wine_tools, deck_scores, latest_counts, team_notes, trending, ig_info, ig_view, usage::notifies, usage::notify, usage::pc_specs, usage::recomp_request, + cloud::saves_check, cloud::saves_pick, cloud::saves_play_without_cloud, cloud::saves_cloud, cloud::saves_cloud_follow_all, download_history, report_counts, play_reports, cloud::saves_info, cloud::saves_status, cloud::saves_peek, cloud::saves_upload_now, cloud::cloud_retry, cloud::saves_overview, cloud::saves_backup, cloud::saves_restore, cloud::saves_cloud_delete, cloud::saves_share, cloud::saves_set_place, cloud::saves_set_override, cloud::saves_add_place, cloud::saves_remove_place, cloud::saves_open, saves_set_root, saves_open_root, missing_files, missing_made, dll_check, dll_aside, gpu_choice, prefer_fast_gpu, copy_check, wine_tools, deck_scores, latest_counts, team_notes, trending, ig_info, ig_view, usage::notifies, usage::notify, usage::pc_specs, usage::recomp_request, adopt::adopt_scan, adopt::migrate_scan, adopt::migrate_pick, adopt::adopt_pick, adopt::adopt_add, adopt::adopt_check, adopt::set_project, usage::usage_hello, usage::usage_event, usage::data_ids, usage::reset_ids, ping::usage_open, ping::usage_mode, usage::run_report, cloud::inbox, cloud::inbox_done, cloud::betas, cloud::beta_join, cloud::beta_leave, launcher_notes, scan_info, devtools::dev_add, devtools::add_any, devtools::dev_check, devtools::dev_starter, fs_places, fs_list, fs_extract, gb_mods, gb_mod, gb_install ]) .build(tauri::generate_context!()) diff --git a/src-tauri/src/library.rs b/src-tauri/src/library.rs index 098ae763..9c80bdb0 100644 --- a/src-tauri/src/library.rs +++ b/src-tauri/src/library.rs @@ -190,9 +190,15 @@ pub struct Installed { /// what they picked for every game (see `cloud_on`). #[serde(default)] pub cloud: Option, - /// Where the player says the game saves (Saves, Change): ahead of everything else. + /// Where the player says the game saves (Saves, Change). Only used while neither its developer + /// nor the catalog names a folder (saves::spots): a pick made before one was named is stale. #[serde(default)] pub save_place: Option, + /// The player's folder in place of the one its developer or the catalog names (Saves, Change + /// on that folder), for a game they set up themselves. Its own field, not `save_place`: old + /// stale picks there must not come back. Ignored while Easy Setup is on (saves::with_override). + #[serde(default, skip_serializing_if = "Option::is_none")] + pub save_override: Option, /// More folders the player added (a launcher with several games, each saving in its own). #[serde(default, skip_serializing_if = "Vec::is_empty")] pub more_save_places: Vec, diff --git a/src-tauri/src/saves.rs b/src-tauri/src/saves.rs index ec35a920..7f8c446e 100644 --- a/src-tauri/src/saves.rs +++ b/src-tauri/src/saves.rs @@ -76,6 +76,26 @@ pub fn spots(dev: &[String], catalog: &[String], g: &Installed) -> Vec { mine.into_iter().map(|template| Spot { template, from: "player" }).collect() } +/// The player may put their own folder in place of the one the developer or RecompLauncher named +/// (a recomplauncher.json that names an old folder) only for a game they set up themselves: Easy +/// Setup is hands-off. Only over one named folder: restore matches a copy's folders by position, +/// so one folder standing in for several would put files in the wrong place. +pub fn can_override(named: &[Spot], sets_up: bool) -> bool { + let [one] = named else { return false }; + sets_up && matches!(one.from, "developer" | "catalog") +} + +/// The game's save places with the player's override (`over`) in place of the named folder, when +/// `can_override` allows it. A "player" place: it's the player's folder, and restore and sharing +/// treat it as one. +pub fn with_override(named: Vec, over: Option<&str>, sets_up: bool) -> Vec { + let Some(over) = over.map(str::trim).filter(|t| !t.is_empty()) else { return named }; + if !can_override(&named, sets_up) { + return named; + } + vec![Spot { template: over.to_string(), from: "player" }] +} + /// The player's save folders with `dir` added to `now` (the ones it has): refused when it's one of /// them already, or inside one or around one (its files would be in two places). pub fn add_place(now: &[String], dir: &Path, g: &Installed) -> Result, String> { @@ -187,14 +207,25 @@ const BIN_SAVE_MAX: u64 = 16 * 1024 * 1024; /// A folder with programs in it (a runtime a game downloads on its first start, like Java or /// Python, or its own tools): never a save place, even when the game writes small files there. pub fn holds_programs(dir: &Path) -> bool { + programs_in(dir).unwrap_or(false) +} + +/// Whether `dir` has programs in it, or None when it holds too much to look through (a home +/// folder, a drive). holds_programs takes that as no; a folder the player picks doesn't. +fn programs_in(dir: &Path) -> Option { + programs_within(dir, 4000) +} + +/// programs_in, looking at no more than `most` entries. +fn programs_within(dir: &Path, most: usize) -> Option { const PROGRAMS: [&str; 7] = [".exe", ".dll", ".so", ".dylib", ".jar", ".jmod", ".pyd"]; let mut stack = vec![(dir.to_path_buf(), 0usize)]; let mut seen = 0usize; while let Some((d, depth)) = stack.pop() { for e in fs::read_dir(&d).into_iter().flatten().flatten() { seen += 1; - if seen > 4000 { - return false; + if seen > most { + return None; } let Ok(t) = e.file_type() else { continue }; let n = e.file_name().to_string_lossy().to_lowercase(); @@ -203,13 +234,39 @@ pub fn holds_programs(dir: &Path) -> bool { stack.push((e.path(), depth + 1)); } } else if PROGRAMS.iter().any(|x| n.ends_with(x)) || n.contains(".so.") || crate::proton::elf_arch(&e.path()).is_some() { - return true; + return Some(true); } } } - false + Some(false) } +/// Why a folder the player picks can't stand in for the named save folder, or None when it can. +/// Backups, cloud uploads and restore's clearing would take everything in it for saves, so not +/// the game's folder or one around it, a home folder, a drive, one with programs, or one too big +/// to look through. +pub fn override_refused(dir: &Path, game: &Path, home: Option<&Path>) -> Option<&'static str> { + let dir = dir.canonicalize().unwrap_or_else(|_| dir.to_path_buf()); + let game = game.canonicalize().unwrap_or_else(|_| game.to_path_buf()); + // A home folder or a drive holds the game's folder too: said as too big, which it is. + let is_home = home.and_then(|h| h.canonicalize().ok()).is_some_and(|h| h == dir); + if is_home || dir.parent().is_none() { + return Some(OVERRIDE_TOO_BIG); + } + if game.starts_with(&dir) { + return Some(OVERRIDE_GAME_FOLDER); + } + match programs_in(&dir) { + Some(false) => None, + Some(true) => Some(OVERRIDE_GAME_FOLDER), + None => Some(OVERRIDE_TOO_BIG), + } +} + +/// Fixed texts, so the window can translate them. +pub(crate) const OVERRIDE_GAME_FOLDER: &str = "That's the game's own folder, or it holds programs. Pick the folder its saves are in."; +pub(crate) const OVERRIDE_TOO_BIG: &str = "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in."; + fn is_save_file(name: &str, size: u64) -> bool { let n = name.to_lowercase(); if n.starts_with(".recomplauncher-input-") { return false; } @@ -1558,6 +1615,104 @@ mod tests { assert_eq!(s.iter().map(|x| (x.template.as_str(), x.from)).collect::>(), vec![("{install}/mine", "player")]); } + #[test] + fn the_override_replaces_the_developers_folder_when_the_player_sets_up() { + let g = game(Path::new("/games/test")); + let named = spots(&["{install}/save".into()], &[], &g); + let s = with_override(named, Some("{install}/real"), true); + assert_eq!(s.iter().map(|x| (x.template.as_str(), x.from)).collect::>(), vec![("{install}/real", "player")]); + } + + #[test] + fn the_override_replaces_recomplaunchers_folder_when_the_player_sets_up() { + let g = game(Path::new("/games/test")); + let named = spots(&[], &["{local}/Test/saves".into()], &g); + let s = with_override(named, Some("{install}/real"), true); + assert_eq!(s.iter().map(|x| (x.template.as_str(), x.from)).collect::>(), vec![("{install}/real", "player")]); + } + + #[test] + fn easy_setup_ignores_a_left_over_override() { + let g = game(Path::new("/games/test")); + let named = spots(&["{install}/save".into()], &[], &g); + let s = with_override(named, Some("{install}/real"), false); + assert_eq!(s.iter().map(|x| (x.template.as_str(), x.from)).collect::>(), vec![("{install}/save", "developer")]); + } + + #[test] + fn the_override_is_not_used_over_several_named_folders() { + let g = game(Path::new("/games/test")); + let named = spots(&["{install}/one".into(), "{install}/two".into()], &[], &g); + let s = with_override(named, Some("{install}/real"), true); + assert_eq!(s.len(), 2); + } + + #[test] + fn an_override_can_be_a_plain_save_folder() { + let d = tmp("override-plain"); + fs::create_dir_all(d.join("game")).unwrap(); + fs::create_dir_all(d.join("saves")).unwrap(); + fs::write(d.join("saves/slot.sav"), "save").unwrap(); + assert_eq!(override_refused(&d.join("saves"), &d.join("game"), None), None); + } + + #[test] + fn an_override_is_not_the_games_own_folder() { + let d = tmp("override-game"); + assert_eq!(override_refused(&d, &d, None), Some(OVERRIDE_GAME_FOLDER)); + } + + #[test] + fn an_override_is_not_a_folder_around_the_game() { + let d = tmp("override-around"); + fs::create_dir_all(d.join("lib/game")).unwrap(); + assert_eq!(override_refused(&d.join("lib"), &d.join("lib/game"), None), Some(OVERRIDE_GAME_FOLDER)); + } + + #[test] + fn an_override_is_not_the_home_folder() { + let d = tmp("override-home"); + fs::create_dir_all(d.join("home")).unwrap(); + assert_eq!(override_refused(&d.join("home"), &d.join("game"), Some(&d.join("home"))), Some(OVERRIDE_TOO_BIG)); + } + + #[test] + fn an_override_is_not_a_whole_drive() { + let root = Path::new(if cfg!(windows) { "C:\\" } else { "/" }); + assert_eq!(override_refused(root, Path::new("/nowhere/game"), None), Some(OVERRIDE_TOO_BIG)); + } + + #[test] + fn a_folder_too_big_to_look_through_is_not_said_to_be_free_of_programs() { + // A small limit, not 4000 files: writing that many slows the tests that time a restart. + let d = tmp("override-big"); + for i in 0..4 { + fs::write(d.join(format!("{i}.txt")), "").unwrap(); + } + assert_eq!(programs_within(&d, 3), None); + } + + #[test] + fn an_override_is_not_a_folder_with_programs() { + let d = tmp("override-programs"); + fs::write(d.join("tool.dll"), "").unwrap(); + assert_eq!(override_refused(&d, Path::new("/nowhere/game"), None), Some(OVERRIDE_GAME_FOLDER)); + } + + #[test] + fn the_override_is_not_used_when_nobody_named_a_folder() { + assert!(!can_override(&[Spot { template: "{install}/mine".into(), from: "player" }], true)); + } + + #[test] + fn an_old_pick_does_not_come_back_without_an_override() { + let mut g = game(Path::new("/games/test")); + g.save_place = Some("{install}/mine".into()); + let named = spots(&["{install}/save".into()], &[], &g); + let s = with_override(named, None, true); + assert_eq!(s.iter().map(|x| (x.template.as_str(), x.from)).collect::>(), vec![("{install}/save", "developer")]); + } + #[test] fn sharing_keeps_the_previous_save_and_the_source() { let d = tmp("sharing-copy"); @@ -2130,6 +2285,17 @@ mod tests { assert!(second.contains("saves"), "{why}"); } + #[test] + fn restore_puts_a_copy_of_the_developers_folder_into_the_override() { + let d = tmp("restore-override"); + let (g, archive) = copy_from_old_folder(&d); + let named = spots(&["{install}/old".into()], &[], &g); + let now = with_override(named, Some("{install}/real"), true); + + assert_eq!(restore(&d.join("app"), "g", &archive, &now, &g).unwrap(), 1); + assert_eq!(fs::read_to_string(g.path.join("real/progress.sav")).unwrap(), "progress"); + } + #[test] fn restore_keeps_the_copys_folder_when_the_folder_count_changed() { let d = tmp("restore-moved-count"); diff --git a/tests/beta45.test.cjs b/tests/beta45.test.cjs index 5e71c63d..3c8ac373 100644 --- a/tests/beta45.test.cjs +++ b/tests/beta45.test.cjs @@ -62,7 +62,9 @@ test('a game nobody says where it saves asks the player to pick its folder', () const tv = read('tv.js'); assert.match(account, /if \(savesUnknown\(s\)\) return `
\$\{unknownCard\(id\)\}/); assert.match(tv, /data-tvact="gs-place"/); - assert.match(tv, /case 'gs-place':[\s\S]{0,400}invoke\('saves_set_place'/); + assert.match(tv, /case 'gs-place': return pickSavesFolder\(id\);/); + assert.match(tv, /async function pickSavesFolder\(id\) \{[\s\S]{0,400}invoke\(placeCommand\(TV\.saves\[id\]\)/); + assert.match(account, /case 'saves-place': \{[\s\S]{0,400}invoke\(placeCommand\(S\.saves\[id\]\)/); }); test('the Settings section list sits below the window bar', () => { diff --git a/tests/saves-tab.test.cjs b/tests/saves-tab.test.cjs index fc0357cd..7e262123 100644 --- a/tests/saves-tab.test.cjs +++ b/tests/saves-tab.test.cjs @@ -33,6 +33,11 @@ function tab(S) { ${line(account, 'const FROM = ')} ${line(account, 'const SET_ICON = ')} ${line(account, 'const spotSet = ')} + ${line(account, 'const FROM_CHANGED = ')} + ${block(account, 'const NAMED_UNUSED = ')} + ${line(account, 'const USE_NAMED = ')} + ${line(account, 'const overrideOn = ')} + ${line(account, 'const spotFrom = ')} ${line(account, 'const CURRENT_ICON = ')} ${line(account, 'const NEXT_ICON = ')} ${line(account, 'const SYNCS_ON_PLAY = ')} @@ -48,6 +53,7 @@ function tab(S) { ${block(account, 'function historyCard(')} ${block(account, 'function whereCard(')} ${block(account, 'function spotRow(')} + ${block(account, 'function namedRow(')} return { saveHistory, historyShown, historyToggle, historyCard, whereCard };`)(S); } const fresh = () => ({ savesMore: new Set() }); @@ -149,6 +155,65 @@ test('a folder the player picked can be changed, or more added', () => { assert.match(html, /data-act="saves-place-add"/); }); +// ---------- the player's folder in place of the named one (Easy Setup skipped) ---------- +const offered = { on: false, by: 'developer', path: '/games/g/save' }; +const changed = { on: true, by: 'developer', path: '/games/g/save' }; +const mine = { ...myFolder, path: '/elsewhere/save' }; + +test('with Easy Setup skipped, a folder its developer set can be changed', () => { + const html = tab(fresh()).whereCard('g', { spots: [devFolder], override: offered }); + assert.match(html, /data-act="saves-place"/); +}); + +test('with Easy Setup skipped, a folder its developer set is still not one of several', () => { + assert.doesNotMatch(tab(fresh()).whereCard('g', { spots: [devFolder], override: offered }), /data-act="saves-place-add"/); +}); + +test('a changed folder says the player changed it', () => { + assert.match(tab(fresh()).whereCard('g', { spots: [mine], override: changed }), /You changed this folder/); +}); + +test('a changed folder can be changed again', () => { + assert.match(tab(fresh()).whereCard('g', { spots: [mine], override: changed }), /data-act="saves-place"/); +}); + +test('a changed folder offers no more folders', () => { + assert.doesNotMatch(tab(fresh()).whereCard('g', { spots: [mine], override: changed }), /data-act="saves-place-add"/); +}); + +test('while changed, the developer\'s folder stays on the list, greyed, without the shield', () => { + const html = tab(fresh()).whereCard('g', { spots: [mine], override: changed }); + assert.match(html, /class="set-row svp-unused">
\/games\/g\/save/); + assert.doesNotMatch(html, /svp-set/); +}); + +test('while changed, the developer\'s folder can be used again', () => { + assert.match(tab(fresh()).whereCard('g', { spots: [mine], override: changed }), /data-act="saves-place-named"/); +}); + +test('a folder RecompLauncher set and the player replaced says RecompLauncher names it', () => { + const html = tab(fresh()).whereCard('g', { spots: [mine], override: { ...changed, by: 'catalog' } }); + assert.match(html, /RecompLauncher names this folder/); +}); + +test('picking a folder goes in place of the named one only when that is offered', () => { + assert.match(line(account, 'const placeCommand = '), /s && s\.override \? 'saves_set_override' : 'saves_set_place'/); +}); + +test('the desktop and Big Picture go back to the named folder the same way', () => { + assert.match(block(account, "case 'saves-place-named':"), /invoke\('saves_set_override', \{ id, path: null \}\)/); + assert.match(block(tv, "case 'gs-named':"), /invoke\('saves_set_override', \{ id, path: null \}\)/); +}); + +test('Big Picture offers Open and Change on a folder the player may change', () => { + assert.match(block(tv, 'function savesSpotItem('), /sv\.override \? 'gs-spot' : 'gs-open'/); + assert.match(block(tv, "case 'gs-spot':"), /pickSavesFolder\(id\)/); +}); + +test('Big Picture lists the named folder while the player\'s own is used', () => { + assert.match(tv, /\$\{overrideOn\(sv\) \? savesNamedItem\(id, sv\.override\) : ''\}/); +}); + // ---------- no dead ends ---------- // Every real situation a game's saves can be in, and what gets the player out of it: the act of // the status card's button, or 'by itself' when the launcher sorts it out without them (the next diff --git a/ui/account.js b/ui/account.js index fa74dad3..7ccc5867 100644 --- a/ui/account.js +++ b/ui/account.js @@ -298,6 +298,20 @@ const FROM = { player: N_('You picked this folder'), developer: N_('Set by its d // shield, so the player sees there's nothing to set up. One the player picked is said plainly. const SET_ICON = ''; const spotSet = (p) => p.from === 'developer' || p.from === 'catalog'; +// A game set up without Easy Setup whose recomplauncher.json (or the catalog) names a folder it +// doesn't save in anymore: the player can put their own in its place (saves_info's `override`, +// null when that isn't offered). The named folder stays on the list, unused, to go back to. +const FROM_CHANGED = N_('You changed this folder'); +const NAMED_UNUSED = { + developer: N_('Its developer names this folder. Not used while you use your own.'), + catalog: N_('RecompLauncher names this folder. Not used while you use your own.'), +}; +const USE_NAMED = N_('Use This Folder'); +const overrideOn = (s) => !!(s && s.override && s.override.on); +const spotFrom = (p, s) => (overrideOn(s) && p.from === 'player' ? FROM_CHANGED : FROM[p.from] || ''); +// Picking the save folder: in place of the named one when the player may change it, otherwise +// the player's folder for a game nobody named one for. +const placeCommand = (s) => (s && s.override ? 'saves_set_override' : 'saves_set_place'); // Nobody (the player, its developer or RecompLauncher) has said where this game saves. Nothing is // guessed: the player picks the folder, and until then nothing of it is backed up. const SAVES_UNKNOWN = N_('The launcher doesn\'t know where this game saves'); @@ -538,26 +552,37 @@ function savesSettingsCard(id) { // Where the game keeps its saves. A folder its developer (or RecompLauncher) named is only shown, // with a way to open it: saying where is what recomplauncher.json is for, so there's nothing to -// change. Changing it and more folders are for a folder the player picked, which only counts +// change, unless the player set the game up themselves (Easy Setup skipped), where Change puts +// their folder in its place. More folders are for folders the player picked, which only count // while nobody has named one (saves::spots). function whereCard(id, s) { - const picked = s.spots.filter((p) => p.from === 'player').length; - const rows = s.spots.map((p) => spotRow(id, p, picked > 1)).join(''); + const changed = overrideOn(s); + const picked = changed ? 0 : s.spots.filter((p) => p.from === 'player').length; + const rows = s.spots.map((p) => spotRow(id, p, s, picked > 1)).join(''); + const unused = changed ? namedRow(id, s.override) : ''; const add = picked ? `
${esc(t('Saves in more than one folder?'))}${esc(t('For a launcher with several games in it, each saving in its own folder. Backups and cloud saves cover every folder.'))}
` : ''; - return `

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

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

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

${rows}${unused}${add}
`; } -function spotRow(id, p, many) { - const from = esc(t(FROM[p.from] || '')); +function spotRow(id, p, s, many) { + const from = esc(t(spotFrom(p, s))); const notYet = p.exists ? '' : ` · ${esc(t('Not there yet'))}`; const said = spotSet(p) ? `${SET_ICON}${from}${notYet}` : `${from}${notYet}`; const open = p.exists ? `` : ''; + const change = ``; let acts = open; if (many) acts = ``; - else if (p.from === 'player') acts = `${open}`; + else if (p.from === 'player' || s.override) acts = `${open}${change}`; return `
${esc(p.path)}${said}
${acts}
`; } +// The folder its developer or RecompLauncher names, while the player's own is used: greyed, with +// no shield (the player said it's not the right one), and the way back to it. +function namedRow(id, o) { + const text = NAMED_UNUSED[o.by] || NAMED_UNUSED.developer; + return `
${esc(o.path)}${esc(t(text))}
`; +} + const savesChanged = (id) => { delete S.saves[id]; if (S.view === 'game' && S.arg === id && S.tab === 'saves') loadSaves(id); }; // ---------- the cloud save status above Play ---------- @@ -1161,10 +1186,15 @@ window.accountAct = async (act, el) => { // The player knows better (a game that saves somewhere else): their folder from now on. const p = await pickFile({ title: t('The folder where the game keeps its saves'), directory: true }).catch(fail); if (!p) return; - try { S.library[id] = await invoke('saves_set_place', { id, path: typeof p === 'string' ? p : p.path }); } catch (e) { return fail(e); } + try { S.library[id] = await invoke(placeCommand(S.saves[id]), { id, path: typeof p === 'string' ? p : p.path }); } catch (e) { return fail(e); } toast(t('Saved. Backups and cloud saves use that folder now.')); return loadSaves(id); } + case 'saves-place-named': { + try { S.library[id] = await invoke('saves_set_override', { id, path: null }); } catch (e) { return fail(e); } + toast(t('Saved. Backups and cloud saves use that folder again.')); + return loadSaves(id); + } case 'saves-place-add': { const p = await pickFile({ title: t('Another folder where the game keeps its saves'), directory: true }).catch(fail); if (!p) return; diff --git a/ui/app.css b/ui/app.css index c54c5550..770f589b 100644 --- a/ui/app.css +++ b/ui/app.css @@ -2965,6 +2965,8 @@ body.light .set-row .k .svp-set{color:#127a45} .svh-del:hover{color:var(--bad)} /* One RecompLauncher set is the launcher's cyan, so it reads apart from the developer's green. */ .set-row .k .svp-set.ours{color:var(--cyan)} +/* The named folder while the player's own is used instead: greyed, it's not where saves go now. */ +.set-row.svp-unused .k{opacity:.6} /* Sponsor spot on Home (between Ready to Play and Recently Updated) */ .sp-band{margin-top:8px} .sp-tile{position:relative;display:block;width:100%;padding:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--card);cursor:pointer;transition:border-color .15s} diff --git a/ui/i18n/ar.json b/ui/i18n/ar.json index 5716f974..c1f32781 100644 --- a/ui/i18n/ar.json +++ b/ui/i18n/ar.json @@ -1591,6 +1591,13 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "أنت من يدير هذا التثبيت. يشغّل «تشغيل» الملف التنفيذي الذي اخترته كما هو، دون الإعداد السهل أو خطوات إعداد المشغّل.", "You only have one library. Add a folder on another drive to move it there.": "لديك مكتبة واحدة فقط. أضف مجلدًا على محرك أقراص آخر لنقلها إليه.", "You picked this folder": "اخترت هذا المجلد", + "You changed this folder": "غيّرت هذا المجلد", + "Its developer names this folder. Not used while you use your own.": "يحدد مطوّر اللعبة هذا المجلد. لا يُستخدم ما دمت تستخدم مجلدك.", + "RecompLauncher names this folder. Not used while you use your own.": "يحدد RecompLauncher هذا المجلد. لا يُستخدم ما دمت تستخدم مجلدك.", + "Saved. Backups and cloud saves use that folder again.": "تم الحفظ. تستخدم النسخ الاحتياطية والحفظ السحابي هذا المجلد مجددًا.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "لا يمكن تغيير مجلد الحفظ إلا عند تخطي الإعداد السهل لهذه اللعبة.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "هذا مجلد اللعبة نفسه، أو فيه برامج. اختر المجلد الذي فيه ملفات الحفظ.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "هذا المجلد يحتوي على أكثر بكثير من أن يكون مجلد حفظ، مثل مجلدك الرئيسي أو قرص كامل. اختر المجلد الذي فيه ملفات الحفظ.", "You said no.": "لقد رفضت.", "You stopped following {name}.": "توقفت عن متابعة {name}.", "You were signed out. Sign in again to use cloud saves.": "تم تسجيل خروجك. سجل الدخول مرة أخرى لاستخدام الحفظ السحابي.", diff --git a/ui/i18n/de.json b/ui/i18n/de.json index 0ddf3dfe..68bcb2bf 100644 --- a/ui/i18n/de.json +++ b/ui/i18n/de.json @@ -1591,6 +1591,13 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Du verwaltest diese Installation. „Spielen“ startet die ausführbare Datei, die du gewählt hast, so wie sie ist, ohne einfache Einrichtung oder die Einrichtungsschritte des Launchers.", "You only have one library. Add a folder on another drive to move it there.": "Du hast nur eine Bibliothek. Füge einen Ordner auf einem anderen Laufwerk hinzu, um es dorthin zu verschieben.", "You picked this folder": "Diesen Ordner hast du ausgewählt", + "You changed this folder": "Diesen Ordner hast du geändert", + "Its developer names this folder. Not used while you use your own.": "Sein Entwickler nennt diesen Ordner. Nicht genutzt, solange du deinen eigenen verwendest.", + "RecompLauncher names this folder. Not used while you use your own.": "RecompLauncher nennt diesen Ordner. Nicht genutzt, solange du deinen eigenen verwendest.", + "Saved. Backups and cloud saves use that folder again.": "Gespeichert. Sicherungen und Cloud-Speicherstände nutzen wieder diesen Ordner.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "Sein Speicherordner lässt sich nur ändern, wenn die einfache Einrichtung dafür übersprungen wurde.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Das ist der eigene Ordner des Spiels, oder er enthält Programme. Wähle den Ordner, in dem seine Speicherstände liegen.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "Dieser Ordner enthält viel zu viel, um ein Speicherordner zu sein, etwa dein Benutzerordner oder ein ganzes Laufwerk. Wähle den Ordner, in dem seine Speicherstände liegen.", "You said no.": "Du hast abgelehnt.", "You stopped following {name}.": "Du folgst {name} nicht mehr.", "You were signed out. Sign in again to use cloud saves.": "Du wurdest abgemeldet. Melde dich wieder an, um Cloud-Spielstände zu nutzen.", diff --git a/ui/i18n/es-419.json b/ui/i18n/es-419.json index 13c1bac6..96375ac4 100644 --- a/ui/i18n/es-419.json +++ b/ui/i18n/es-419.json @@ -1580,6 +1580,13 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Tú gestionas esta instalación. Jugar inicia el ejecutable que elegiste, tal cual, sin la configuración fácil ni los pasos de configuración del launcher.", "You only have one library. Add a folder on another drive to move it there.": "Solo tienes una biblioteca. Agrega una carpeta en otra unidad para moverlo ahí.", "You picked this folder": "Elegiste esta carpeta", + "You changed this folder": "Cambiaste esta carpeta", + "Its developer names this folder. Not used while you use your own.": "Su desarrollador indica esta carpeta. No se usa mientras uses la tuya.", + "RecompLauncher names this folder. Not used while you use your own.": "RecompLauncher indica esta carpeta. No se usa mientras uses la tuya.", + "Saved. Backups and cloud saves use that folder again.": "Guardado. Las copias de seguridad y las partidas en la nube vuelven a usar esa carpeta.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "Su carpeta de partidas solo se puede cambiar si se saltó la configuración fácil para este juego.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Esa es la carpeta del propio juego o contiene programas. Elige la carpeta donde están sus partidas.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "Esa carpeta contiene demasiado para ser una carpeta de partidas, como tu carpeta personal o una unidad entera. Elige la carpeta donde están sus partidas.", "You said no.": "Dijiste que no.", "You stopped following {name}.": "Ya no sigues a {name}.", "You were signed out. Sign in again to use cloud saves.": "Se cerró tu sesión. Vuelve a iniciar sesión para usar las partidas en la nube.", diff --git a/ui/i18n/es.json b/ui/i18n/es.json index 22a3edbf..fa603934 100644 --- a/ui/i18n/es.json +++ b/ui/i18n/es.json @@ -1591,6 +1591,13 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Tú gestionas esta instalación. Jugar inicia el ejecutable que elegiste, tal cual, sin la configuración fácil ni los pasos de configuración del launcher.", "You only have one library. Add a folder on another drive to move it there.": "Solo tienes una biblioteca. Añade una carpeta en otra unidad para moverlo allí.", "You picked this folder": "Elegiste esta carpeta", + "You changed this folder": "Cambiaste esta carpeta", + "Its developer names this folder. Not used while you use your own.": "Su desarrollador indica esta carpeta. No se usa mientras uses la tuya.", + "RecompLauncher names this folder. Not used while you use your own.": "RecompLauncher indica esta carpeta. No se usa mientras uses la tuya.", + "Saved. Backups and cloud saves use that folder again.": "Guardado. Las copias de seguridad y las partidas en la nube vuelven a usar esa carpeta.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "Su carpeta de partidas solo se puede cambiar si se saltó la configuración fácil para este juego.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Esa es la carpeta del propio juego o contiene programas. Elige la carpeta donde están sus partidas.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "Esa carpeta contiene demasiado para ser una carpeta de partidas, como tu carpeta personal o una unidad entera. Elige la carpeta donde están sus partidas.", "You said no.": "Dijiste que no.", "You stopped following {name}.": "Ya no sigues a {name}.", "You were signed out. Sign in again to use cloud saves.": "Se ha cerrado tu sesión. Vuelve a iniciar sesión para usar las partidas en la nube.", diff --git a/ui/i18n/fr-CA.json b/ui/i18n/fr-CA.json index 8b503087..45854a49 100644 --- a/ui/i18n/fr-CA.json +++ b/ui/i18n/fr-CA.json @@ -299,6 +299,13 @@ "You didn't allow {site}.": "Vous n'avez pas autorisé {site}.", "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Vous gérez cette installation. Jouer lance l'exécutable que vous avez choisi, tel quel, sans la configuration facile ni les étapes de configuration du lanceur.", "You picked this folder": "Vous avez choisi ce dossier", + "You changed this folder": "Vous avez changé ce dossier", + "Its developer names this folder. Not used while you use your own.": "Son développeur indique ce dossier. Il n'est pas utilisé tant que vous utilisez le vôtre.", + "RecompLauncher names this folder. Not used while you use your own.": "RecompLauncher indique ce dossier. Il n'est pas utilisé tant que vous utilisez le vôtre.", + "Saved. Backups and cloud saves use that folder again.": "Enregistré. Les copies de sauvegarde et les sauvegardes dans le cloud utilisent de nouveau ce dossier.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "Son dossier de sauvegarde ne peut être changé que si la configuration facile a été ignorée pour ce jeu.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "C'est le dossier du jeu lui-même, ou il contient des programmes. Choisissez le dossier où se trouvent ses sauvegardes.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "Ce dossier contient beaucoup trop de choses pour être un dossier de sauvegarde, comme votre dossier personnel ou un disque entier. Choisissez le dossier où se trouvent ses sauvegardes.", "You said no.": "Vous avez refusé.", "You're all set. Your achievements will be tied to your account.": "Tout est prêt. Vos succès seront liés à votre compte.", "Your ROM of the game": "Votre ROM du jeu", diff --git a/ui/i18n/fr.json b/ui/i18n/fr.json index 948d1556..a88b6da6 100644 --- a/ui/i18n/fr.json +++ b/ui/i18n/fr.json @@ -1591,6 +1591,13 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Vous gérez cette installation. Jouer lance l'exécutable que vous avez choisi, tel quel, sans la configuration facile ni les étapes de configuration du lanceur.", "You only have one library. Add a folder on another drive to move it there.": "Vous n'avez qu'une seule bibliothèque. Ajoutez un dossier sur un autre lecteur pour y déplacer le jeu.", "You picked this folder": "Vous avez choisi ce dossier", + "You changed this folder": "Vous avez changé ce dossier", + "Its developer names this folder. Not used while you use your own.": "Son développeur indique ce dossier. Il n'est pas utilisé tant que vous utilisez le vôtre.", + "RecompLauncher names this folder. Not used while you use your own.": "RecompLauncher indique ce dossier. Il n'est pas utilisé tant que vous utilisez le vôtre.", + "Saved. Backups and cloud saves use that folder again.": "Enregistré. Les copies de sauvegarde et les sauvegardes dans le cloud utilisent de nouveau ce dossier.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "Son dossier de sauvegarde ne peut être changé que si la configuration facile a été ignorée pour ce jeu.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "C'est le dossier du jeu lui-même, ou il contient des programmes. Choisissez le dossier où se trouvent ses sauvegardes.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "Ce dossier contient beaucoup trop de choses pour être un dossier de sauvegarde, comme votre dossier personnel ou un disque entier. Choisissez le dossier où se trouvent ses sauvegardes.", "You said no.": "Vous avez refusé.", "You stopped following {name}.": "Vous ne suivez plus {name}.", "You were signed out. Sign in again to use cloud saves.": "Vous avez été déconnecté. Reconnectez-vous pour utiliser les sauvegardes dans le cloud.", diff --git a/ui/i18n/id.json b/ui/i18n/id.json index 7adabc86..1fa9b6c9 100644 --- a/ui/i18n/id.json +++ b/ui/i18n/id.json @@ -1591,6 +1591,13 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Kamu yang mengelola instalasi ini. Main menjalankan file eksekusi yang kamu pilih apa adanya, tanpa penyiapan mudah atau langkah penyiapan launcher.", "You only have one library. Add a folder on another drive to move it there.": "Kamu hanya punya satu pustaka. Tambahkan folder di drive lain untuk memindahkannya ke sana.", "You picked this folder": "Kamu memilih folder ini", + "You changed this folder": "Kamu mengganti folder ini", + "Its developer names this folder. Not used while you use your own.": "Developer-nya menyebut folder ini. Tidak dipakai selama kamu memakai foldermu sendiri.", + "RecompLauncher names this folder. Not used while you use your own.": "RecompLauncher menyebut folder ini. Tidak dipakai selama kamu memakai foldermu sendiri.", + "Saved. Backups and cloud saves use that folder again.": "Tersimpan. Cadangan dan save cloud kembali memakai folder itu.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "Folder save-nya hanya bisa diganti jika penyiapan mudah dilewati untuk game ini.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Itu folder game itu sendiri, atau berisi program. Pilih folder tempat save-nya berada.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "Folder itu berisi terlalu banyak untuk menjadi folder save, seperti folder home-mu atau seluruh drive. Pilih folder tempat save-nya berada.", "You said no.": "Kamu menolak.", "You stopped following {name}.": "Kamu berhenti mengikuti {name}.", "You were signed out. Sign in again to use cloud saves.": "Kamu telah dikeluarkan dari akun. Masuk lagi untuk memakai save cloud.", diff --git a/ui/i18n/it.json b/ui/i18n/it.json index 8a5f3c60..05774dcb 100644 --- a/ui/i18n/it.json +++ b/ui/i18n/it.json @@ -1591,6 +1591,13 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Gestisci tu questa installazione. Gioca avvia l'eseguibile che hai scelto così com'è, senza la configurazione facile né i passaggi di configurazione del launcher.", "You only have one library. Add a folder on another drive to move it there.": "Hai una sola libreria. Aggiungi una cartella su un'altra unità per spostarci il gioco.", "You picked this folder": "Hai scelto questa cartella", + "You changed this folder": "Hai cambiato questa cartella", + "Its developer names this folder. Not used while you use your own.": "Il suo sviluppatore indica questa cartella. Non viene usata finché usi la tua.", + "RecompLauncher names this folder. Not used while you use your own.": "RecompLauncher indica questa cartella. Non viene usata finché usi la tua.", + "Saved. Backups and cloud saves use that folder again.": "Salvato. Backup e salvataggi nel cloud usano di nuovo quella cartella.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "La sua cartella dei salvataggi si può cambiare solo se la configurazione facile è stata saltata per questo gioco.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Questa è la cartella del gioco stesso, oppure contiene programmi. Scegli la cartella in cui si trovano i salvataggi.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "Quella cartella contiene troppe cose per essere una cartella dei salvataggi, come la tua cartella home o un intero disco. Scegli la cartella in cui si trovano i salvataggi.", "You said no.": "Hai rifiutato.", "You stopped following {name}.": "Non segui più {name}.", "You were signed out. Sign in again to use cloud saves.": "Sei stato disconnesso. Accedi di nuovo per usare i salvataggi nel cloud.", diff --git a/ui/i18n/ja.json b/ui/i18n/ja.json index 9a0d00ac..ac9ff9ea 100644 --- a/ui/i18n/ja.json +++ b/ui/i18n/ja.json @@ -1591,6 +1591,13 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "このインストールはあなたが管理しています。「プレイ」は選んだ実行ファイルをそのまま起動し、かんたんセットアップやランチャーのセットアップ手順は行いません。", "You only have one library. Add a folder on another drive to move it there.": "ライブラリは 1 つだけです。移動するには、別のドライブにフォルダーを追加してください。", "You picked this folder": "このフォルダーを選択しました", + "You changed this folder": "このフォルダーを変更しました", + "Its developer names this folder. Not used while you use your own.": "開発者が指定しているフォルダーです。自分のフォルダーを使っている間は使われません。", + "RecompLauncher names this folder. Not used while you use your own.": "RecompLauncher が指定しているフォルダーです。自分のフォルダーを使っている間は使われません。", + "Saved. Backups and cloud saves use that folder again.": "保存しました。バックアップとクラウドセーブは再びそのフォルダーを使います。", + "Its save folder can only be changed when Easy Setup is skipped for it.": "セーブフォルダーを変更できるのは、このゲームのかんたんセットアップをスキップした場合だけです。", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "そこはゲーム本体のフォルダーか、プログラムが入っているフォルダーです。セーブデータがあるフォルダーを選んでください。", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "そのフォルダーは中身が多すぎてセーブフォルダーにはできません(ホームフォルダーやドライブ全体など)。セーブデータがあるフォルダーを選んでください。", "You said no.": "拒否しました。", "You stopped following {name}.": "{name} のフォローをやめました。", "You were signed out. Sign in again to use cloud saves.": "サインアウトされました。クラウドセーブを使うには、もう一度サインインしてください。", diff --git a/ui/i18n/ko.json b/ui/i18n/ko.json index 00f89141..76fcfd9b 100644 --- a/ui/i18n/ko.json +++ b/ui/i18n/ko.json @@ -1591,6 +1591,13 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "이 설치는 직접 관리합니다. 플레이를 누르면 고른 실행 파일을 그대로 실행하며, 간편 설정이나 런처의 설정 단계는 거치지 않습니다.", "You only have one library. Add a folder on another drive to move it there.": "라이브러리가 하나뿐입니다. 옮기려면 다른 드라이브에 폴더를 추가하세요.", "You picked this folder": "이 폴더를 선택했습니다", + "You changed this folder": "이 폴더를 변경했습니다", + "Its developer names this folder. Not used while you use your own.": "개발자가 지정한 폴더입니다. 직접 고른 폴더를 쓰는 동안에는 사용하지 않습니다.", + "RecompLauncher names this folder. Not used while you use your own.": "RecompLauncher가 지정한 폴더입니다. 직접 고른 폴더를 쓰는 동안에는 사용하지 않습니다.", + "Saved. Backups and cloud saves use that folder again.": "저장했습니다. 백업과 클라우드 저장에서 다시 그 폴더를 사용합니다.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "이 게임의 간편 설정을 건너뛴 경우에만 저장 폴더를 바꿀 수 있습니다.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "게임 자체 폴더이거나 프로그램이 들어 있는 폴더입니다. 저장 데이터가 있는 폴더를 선택하세요.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "이 폴더는 저장 폴더로 쓰기에는 너무 많은 것이 들어 있습니다(홈 폴더나 드라이브 전체 등). 저장 데이터가 있는 폴더를 선택하세요.", "You said no.": "거부했습니다.", "You stopped following {name}.": "{name} 팔로우를 그만뒀습니다.", "You were signed out. Sign in again to use cloud saves.": "로그아웃되었습니다. 클라우드 저장을 사용하려면 다시 로그인하세요.", diff --git a/ui/i18n/nl.json b/ui/i18n/nl.json index 59e05af9..ed15527c 100644 --- a/ui/i18n/nl.json +++ b/ui/i18n/nl.json @@ -1591,6 +1591,13 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Je beheert deze installatie zelf. Spelen start het uitvoerbare bestand dat je koos, zoals het is, zonder eenvoudig instellen of de instelstappen van de launcher.", "You only have one library. Add a folder on another drive to move it there.": "Je hebt maar één bibliotheek. Voeg een map op een andere schijf toe om hem daarheen te verplaatsen.", "You picked this folder": "Je hebt deze map gekozen", + "You changed this folder": "Je hebt deze map gewijzigd", + "Its developer names this folder. Not used while you use your own.": "De ontwikkelaar noemt deze map. Niet gebruikt zolang je je eigen map gebruikt.", + "RecompLauncher names this folder. Not used while you use your own.": "RecompLauncher noemt deze map. Niet gebruikt zolang je je eigen map gebruikt.", + "Saved. Backups and cloud saves use that folder again.": "Opgeslagen. Back-ups en opslaan in de cloud gebruiken die map weer.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "De opslagmap kan alleen worden gewijzigd als Eenvoudig instellen voor deze game is overgeslagen.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Dat is de eigen map van de game, of er staan programma's in. Kies de map waarin de opgeslagen spellen staan.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "Die map bevat veel te veel om een opslagmap te zijn, zoals je thuismap of een hele schijf. Kies de map waarin de opgeslagen spellen staan.", "You said no.": "Je hebt nee gezegd.", "You stopped following {name}.": "Je volgt {name} niet meer.", "You were signed out. Sign in again to use cloud saves.": "Je bent afgemeld. Meld je opnieuw aan om opslaan in de cloud te gebruiken.", diff --git a/ui/i18n/pl.json b/ui/i18n/pl.json index fcdb6283..1844c749 100644 --- a/ui/i18n/pl.json +++ b/ui/i18n/pl.json @@ -1591,6 +1591,13 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Sam zarządzasz tą instalacją. Graj uruchamia wybrany plik wykonywalny bez zmian, bez łatwej konfiguracji i kroków konfiguracji launchera.", "You only have one library. Add a folder on another drive to move it there.": "Masz tylko jedną bibliotekę. Dodaj folder na innym dysku, aby ją tam przenieść.", "You picked this folder": "Ten folder został wybrany przez Ciebie", + "You changed this folder": "Ten folder został zmieniony przez Ciebie", + "Its developer names this folder. Not used while you use your own.": "Ten folder wskazuje twórca gry. Nie jest używany, dopóki używasz własnego.", + "RecompLauncher names this folder. Not used while you use your own.": "Ten folder wskazuje RecompLauncher. Nie jest używany, dopóki używasz własnego.", + "Saved. Backups and cloud saves use that folder again.": "Zapisano. Kopie zapasowe i zapisy w chmurze znowu używają tego folderu.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "Folder zapisów można zmienić tylko wtedy, gdy dla tej gry pominięto łatwą konfigurację.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "To folder samej gry albo zawiera programy. Wybierz folder, w którym są jej zapisy.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "Ten folder zawiera o wiele za dużo, żeby być folderem zapisów, na przykład folder domowy albo cały dysk. Wybierz folder, w którym są jej zapisy.", "You said no.": "Odmówiono.", "You stopped following {name}.": "Nie obserwujesz już {name}.", "You were signed out. Sign in again to use cloud saves.": "Wylogowano cię. Zaloguj się ponownie, aby korzystać z zapisów w chmurze.", diff --git a/ui/i18n/pt-BR.json b/ui/i18n/pt-BR.json index 6634b00b..2a3a66e3 100644 --- a/ui/i18n/pt-BR.json +++ b/ui/i18n/pt-BR.json @@ -1580,6 +1580,13 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Você gerencia esta instalação. Jogar inicia o executável que você escolheu, do jeito que está, sem a configuração fácil nem as etapas de configuração do launcher.", "You only have one library. Add a folder on another drive to move it there.": "Você só tem uma biblioteca. Adicione uma pasta em outra unidade para mover o jogo para lá.", "You picked this folder": "Você escolheu esta pasta", + "You changed this folder": "Você mudou esta pasta", + "Its developer names this folder. Not used while you use your own.": "O desenvolvedor indica esta pasta. Ela não é usada enquanto você usa a sua.", + "RecompLauncher names this folder. Not used while you use your own.": "O RecompLauncher indica esta pasta. Ela não é usada enquanto você usa a sua.", + "Saved. Backups and cloud saves use that folder again.": "Salvo. Os backups e os saves na nuvem voltam a usar essa pasta.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "A pasta de saves só pode ser mudada quando a configuração fácil foi pulada para este jogo.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Essa é a pasta do próprio jogo ou contém programas. Escolha a pasta onde estão os saves.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "Essa pasta tem coisas demais para ser uma pasta de saves, como sua pasta pessoal ou um disco inteiro. Escolha a pasta onde estão os saves.", "You said no.": "Você recusou.", "You stopped following {name}.": "Você deixou de seguir {name}.", "You were signed out. Sign in again to use cloud saves.": "Você foi desconectado. Entre de novo para usar o salvamento na nuvem.", diff --git a/ui/i18n/pt.json b/ui/i18n/pt.json index 1242fd42..b217d266 100644 --- a/ui/i18n/pt.json +++ b/ui/i18n/pt.json @@ -1591,6 +1591,13 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "És tu que geres esta instalação. Jogar inicia o executável que escolheste, tal como está, sem a configuração fácil nem os passos de configuração do launcher.", "You only have one library. Add a folder on another drive to move it there.": "Só tens uma biblioteca. Adiciona uma pasta noutra unidade para o mover para lá.", "You picked this folder": "Escolheste esta pasta", + "You changed this folder": "Mudaste esta pasta", + "Its developer names this folder. Not used while you use your own.": "O programador indica esta pasta. Não é usada enquanto usares a tua.", + "RecompLauncher names this folder. Not used while you use your own.": "O RecompLauncher indica esta pasta. Não é usada enquanto usares a tua.", + "Saved. Backups and cloud saves use that folder again.": "Guardado. As cópias de segurança e os dados na nuvem voltam a usar essa pasta.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "A pasta de dados guardados só pode ser mudada quando a configuração fácil foi saltada para este jogo.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Essa é a pasta do próprio jogo ou contém programas. Escolhe a pasta onde estão os dados guardados.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "Essa pasta tem coisas a mais para ser uma pasta de dados guardados, como a tua pasta pessoal ou um disco inteiro. Escolhe a pasta onde estão os dados guardados.", "You said no.": "Disseste que não.", "You stopped following {name}.": "Deixaste de seguir {name}.", "You were signed out. Sign in again to use cloud saves.": "A tua sessão foi terminada. Inicia sessão novamente para usar os dados guardados na nuvem.", diff --git a/ui/i18n/ru.json b/ui/i18n/ru.json index 9a5f21bf..bd54e638 100644 --- a/ui/i18n/ru.json +++ b/ui/i18n/ru.json @@ -1591,6 +1591,13 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Этой установкой управляете вы. «Играть» запускает выбранный вами исполняемый файл как есть, без простой настройки и шагов настройки лаунчера.", "You only have one library. Add a folder on another drive to move it there.": "У вас только одна библиотека. Добавьте папку на другом диске, чтобы перенести игру туда.", "You picked this folder": "Вы выбрали эту папку", + "You changed this folder": "Вы изменили эту папку", + "Its developer names this folder. Not used while you use your own.": "Эту папку указал разработчик. Она не используется, пока вы используете свою.", + "RecompLauncher names this folder. Not used while you use your own.": "Эту папку указал RecompLauncher. Она не используется, пока вы используете свою.", + "Saved. Backups and cloud saves use that folder again.": "Сохранено. Резервные копии и облачные сохранения снова используют эту папку.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "Папку сохранений можно изменить, только если для этой игры пропущена простая настройка.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Это папка самой игры, или в ней есть программы. Выберите папку, где лежат её сохранения.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "В этой папке слишком много всего, чтобы она была папкой сохранений, например домашняя папка или целый диск. Выберите папку, где лежат её сохранения.", "You said no.": "Вы отказали.", "You stopped following {name}.": "Вы отписались от {name}.", "You were signed out. Sign in again to use cloud saves.": "Выполнен выход из аккаунта. Войдите снова, чтобы пользоваться облачными сохранениями.", diff --git a/ui/i18n/th.json b/ui/i18n/th.json index f0ed3291..7785b459 100644 --- a/ui/i18n/th.json +++ b/ui/i18n/th.json @@ -1591,6 +1591,13 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "คุณเป็นผู้จัดการการติดตั้งนี้ ปุ่ม เล่น จะเปิดไฟล์โปรแกรมที่คุณเลือกตามที่เป็นอยู่ โดยไม่ใช้การตั้งค่าง่ายหรือขั้นตอนการตั้งค่าของตัวเปิดเกม", "You only have one library. Add a folder on another drive to move it there.": "คุณมีคลังเดียว เพิ่มโฟลเดอร์ในไดรฟ์อื่นเพื่อย้ายเกมไปที่นั่น", "You picked this folder": "คุณเลือกโฟลเดอร์นี้", + "You changed this folder": "คุณเปลี่ยนโฟลเดอร์นี้", + "Its developer names this folder. Not used while you use your own.": "ผู้พัฒนากำหนดโฟลเดอร์นี้ไว้ จะไม่ถูกใช้ขณะที่คุณใช้โฟลเดอร์ของคุณเอง", + "RecompLauncher names this folder. Not used while you use your own.": "RecompLauncher กำหนดโฟลเดอร์นี้ไว้ จะไม่ถูกใช้ขณะที่คุณใช้โฟลเดอร์ของคุณเอง", + "Saved. Backups and cloud saves use that folder again.": "บันทึกแล้ว ข้อมูลสำรองและเซฟบนคลาวด์กลับมาใช้โฟลเดอร์นั้นอีกครั้ง", + "Its save folder can only be changed when Easy Setup is skipped for it.": "เปลี่ยนโฟลเดอร์เซฟได้เฉพาะเมื่อข้ามการตั้งค่าง่ายสำหรับเกมนี้แล้วเท่านั้น", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "นี่คือโฟลเดอร์ของตัวเกมเอง หรือมีโปรแกรมอยู่ข้างใน เลือกโฟลเดอร์ที่เก็บเซฟของเกม", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "โฟลเดอร์นี้มีของมากเกินกว่าจะเป็นโฟลเดอร์เซฟได้ เช่น โฟลเดอร์หลักของคุณหรือทั้งไดรฟ์ เลือกโฟลเดอร์ที่เก็บเซฟของเกม", "You said no.": "คุณปฏิเสธแล้ว", "You stopped following {name}.": "เลิกติดตาม {name} แล้ว", "You were signed out. Sign in again to use cloud saves.": "คุณถูกออกจากระบบ ลงชื่อเข้าใช้อีกครั้งเพื่อใช้เซฟบนคลาวด์", diff --git a/ui/i18n/tr.json b/ui/i18n/tr.json index 7d4eac4e..10a4fd53 100644 --- a/ui/i18n/tr.json +++ b/ui/i18n/tr.json @@ -1591,6 +1591,13 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Bu kurulumu siz yönetiyorsunuz. Oyna, seçtiğiniz çalıştırılabilir dosyayı olduğu gibi başlatır; kolay kurulum ve başlatıcının kurulum adımları atlanır.", "You only have one library. Add a folder on another drive to move it there.": "Yalnızca bir kitaplığınız var. Oraya taşımak için başka bir sürücüde klasör ekleyin.", "You picked this folder": "Bu klasörü sen seçtin", + "You changed this folder": "Bu klasörü sen değiştirdin", + "Its developer names this folder. Not used while you use your own.": "Geliştiricisi bu klasörü belirtiyor. Kendi klasörünü kullandığın sürece kullanılmaz.", + "RecompLauncher names this folder. Not used while you use your own.": "RecompLauncher bu klasörü belirtiyor. Kendi klasörünü kullandığın sürece kullanılmaz.", + "Saved. Backups and cloud saves use that folder again.": "Kaydedildi. Yedekler ve bulut kayıtları yeniden o klasörü kullanıyor.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "Kayıt klasörü yalnızca bu oyun için kolay kurulum atlandıysa değiştirilebilir.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Bu, oyunun kendi klasörü ya da içinde programlar var. Kayıtlarının bulunduğu klasörü seç.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "Bu klasörde bir kayıt klasörü olmak için fazlasıyla çok şey var, örneğin ana klasörün ya da bütün bir sürücü. Kayıtlarının bulunduğu klasörü seç.", "You said no.": "Hayır dediniz.", "You stopped following {name}.": "Artık {name} takip edilmiyor.", "You were signed out. Sign in again to use cloud saves.": "Oturumunuz kapatıldı. Bulut kayıtlarını kullanmak için yeniden oturum açın.", diff --git a/ui/i18n/uk.json b/ui/i18n/uk.json index ab8c44e7..d62a532e 100644 --- a/ui/i18n/uk.json +++ b/ui/i18n/uk.json @@ -1591,6 +1591,13 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Цією інсталяцією керуєте ви. «Грати» запускає вибраний вами виконуваний файл як є, без простого налаштування і кроків налаштування лаунчера.", "You only have one library. Add a folder on another drive to move it there.": "У тебе лише одна бібліотека. Додай папку на іншому диску, щоб перенести гру туди.", "You picked this folder": "Ви вибрали цю папку", + "You changed this folder": "Ви змінили цю папку", + "Its developer names this folder. Not used while you use your own.": "Цю папку вказав розробник. Вона не використовується, поки ви використовуєте свою.", + "RecompLauncher names this folder. Not used while you use your own.": "Цю папку вказав RecompLauncher. Вона не використовується, поки ви використовуєте свою.", + "Saved. Backups and cloud saves use that folder again.": "Збережено. Резервні копії та хмарні збереження знову використовують цю папку.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "Папку збережень можна змінити, лише якщо для цієї гри пропущено просте налаштування.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Це папка самої гри, або в ній є програми. Виберіть папку, де лежать її збереження.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "У цій папці забагато всього, щоб вона була папкою збережень, наприклад домашня папка або цілий диск. Виберіть папку, де лежать її збереження.", "You said no.": "Відмовлено.", "You stopped following {name}.": "Ви більше не стежите за {name}.", "You were signed out. Sign in again to use cloud saves.": "Виконано вихід з акаунта. Увійди знову, щоб користуватися хмарними збереженнями.", diff --git a/ui/i18n/vi.json b/ui/i18n/vi.json index 13004c2a..cc4863e1 100644 --- a/ui/i18n/vi.json +++ b/ui/i18n/vi.json @@ -1591,6 +1591,13 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "Bạn tự quản lý bản cài đặt này. Nút Chơi khởi chạy tệp thực thi bạn đã chọn như hiện có, không dùng thiết lập dễ dàng hay các bước thiết lập của launcher.", "You only have one library. Add a folder on another drive to move it there.": "Bạn chỉ có một thư viện. Thêm thư mục trên ổ đĩa khác để chuyển trò chơi sang đó.", "You picked this folder": "Bạn đã chọn thư mục này", + "You changed this folder": "Bạn đã đổi thư mục này", + "Its developer names this folder. Not used while you use your own.": "Nhà phát triển chỉ định thư mục này. Không được dùng khi bạn dùng thư mục của mình.", + "RecompLauncher names this folder. Not used while you use your own.": "RecompLauncher chỉ định thư mục này. Không được dùng khi bạn dùng thư mục của mình.", + "Saved. Backups and cloud saves use that folder again.": "Đã lưu. Bản sao lưu và dữ liệu lưu đám mây lại dùng thư mục đó.", + "Its save folder can only be changed when Easy Setup is skipped for it.": "Chỉ có thể đổi thư mục lưu khi đã bỏ qua thiết lập dễ dàng cho trò chơi này.", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "Đó là thư mục của chính trò chơi, hoặc có chứa chương trình. Hãy chọn thư mục chứa dữ liệu lưu của nó.", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "Thư mục đó chứa quá nhiều thứ để làm thư mục lưu, như thư mục nhà của bạn hoặc cả một ổ đĩa. Hãy chọn thư mục chứa dữ liệu lưu của nó.", "You said no.": "Bạn đã từ chối.", "You stopped following {name}.": "Bạn đã bỏ theo dõi {name}.", "You were signed out. Sign in again to use cloud saves.": "Bạn đã bị đăng xuất. Hãy đăng nhập lại để dùng dữ liệu lưu đám mây.", diff --git a/ui/i18n/zh-Hans.json b/ui/i18n/zh-Hans.json index cebe1f10..824b2d05 100644 --- a/ui/i18n/zh-Hans.json +++ b/ui/i18n/zh-Hans.json @@ -1591,6 +1591,13 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "此安装由你自行管理。“开始游戏”会按原样启动你选择的可执行文件,不经过轻松配置或启动器的设置步骤。", "You only have one library. Add a folder on another drive to move it there.": "你只有一个游戏库。添加其他驱动器上的文件夹即可把游戏移过去。", "You picked this folder": "你选择了此文件夹", + "You changed this folder": "你更改了此文件夹", + "Its developer names this folder. Not used while you use your own.": "这是开发者指定的文件夹。在你使用自己的文件夹期间不会使用它。", + "RecompLauncher names this folder. Not used while you use your own.": "这是 RecompLauncher 指定的文件夹。在你使用自己的文件夹期间不会使用它。", + "Saved. Backups and cloud saves use that folder again.": "已保存。备份和云存档重新使用该文件夹。", + "Its save folder can only be changed when Easy Setup is skipped for it.": "只有为此游戏跳过轻松配置后,才能更改它的存档文件夹。", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "这是游戏本身的文件夹,或其中包含程序。请选择存放存档的文件夹。", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "该文件夹内容太多,不能作为存档文件夹,例如你的主文件夹或整个磁盘。请选择存放存档的文件夹。", "You said no.": "你已拒绝。", "You stopped following {name}.": "已取消关注 {name}。", "You were signed out. Sign in again to use cloud saves.": "你已被退出登录。重新登录即可使用云存档。", diff --git a/ui/i18n/zh-Hant.json b/ui/i18n/zh-Hant.json index 287076ee..ae3926f1 100644 --- a/ui/i18n/zh-Hant.json +++ b/ui/i18n/zh-Hant.json @@ -1591,6 +1591,13 @@ "You manage this install. Play starts the executable you picked, as it is, without Easy Setup or the launcher's setup steps.": "此安裝由你自行管理。「開始遊戲」會照原樣啟動你選擇的執行檔,不經過輕鬆設定或啟動器的設定步驟。", "You only have one library. Add a folder on another drive to move it there.": "您只有一個收藏庫。新增其他磁碟機上的資料夾,就能把遊戲移過去。", "You picked this folder": "你選擇了這個資料夾", + "You changed this folder": "你變更了這個資料夾", + "Its developer names this folder. Not used while you use your own.": "這是開發者指定的資料夾。在你使用自己的資料夾期間不會使用它。", + "RecompLauncher names this folder. Not used while you use your own.": "這是 RecompLauncher 指定的資料夾。在你使用自己的資料夾期間不會使用它。", + "Saved. Backups and cloud saves use that folder again.": "已儲存。備份和雲端存檔重新使用該資料夾。", + "Its save folder can only be changed when Easy Setup is skipped for it.": "只有為此遊戲略過輕鬆設定後,才能變更它的存檔資料夾。", + "That's the game's own folder, or it holds programs. Pick the folder its saves are in.": "這是遊戲本身的資料夾,或其中包含程式。請選擇存放存檔的資料夾。", + "That folder holds far too much to be a save folder, like your home folder or a whole drive. Pick the folder its saves are in.": "該資料夾內容太多,不能作為存檔資料夾,例如你的主資料夾或整個磁碟。請選擇存放存檔的資料夾。", "You said no.": "您已拒絕。", "You stopped following {name}.": "已取消追蹤 {name}。", "You were signed out. Sign in again to use cloud saves.": "您已被登出。請重新登入以使用雲端存檔。", diff --git a/ui/tv.css b/ui/tv.css index bc7cf1a4..5d87a1a0 100644 --- a/ui/tv.css +++ b/ui/tv.css @@ -1059,3 +1059,5 @@ body.linux .tv-boot .aurora i{filter:none;mix-blend-mode:normal} .tv-svp-set{display:inline-flex;align-items:center;gap:7px;font-weight:700;color:#3ee08f} .tv-svp-set svg{flex:none;width:20px;height:20px} .tv-svp-set.ours{color:#34F2E8} +/* The named folder while the player's own is used instead: greyed, as on the desktop. */ +.tv-item.tv-svp-unused .k{opacity:.6} diff --git a/ui/tv.js b/ui/tv.js index 8626dc21..8cb77b67 100644 --- a/ui/tv.js +++ b/ui/tv.js @@ -1377,6 +1377,19 @@ const side = r.current ? cur : r.incoming ? next : `${esc(t('Restore'))}`; return ``; } + // A save folder. A opens it, or, when the player may change it (Easy Setup skipped), asks + // whether to open it or pick another, as the desktop's Open and Change. + function savesSpotItem(id, p, i, sv) { + const from = esc(t(spotFrom(p, sv))); + const said = spotSet(p) ? `${SET_ICON}${from}` : from; + const act = sv.override ? 'gs-spot' : 'gs-open'; + return ``; + } + // The folder its developer or RecompLauncher names, while the player's own is used: A goes back to it. + function savesNamedItem(id, o) { + const text = NAMED_UNUSED[o.by] || NAMED_UNUSED.developer; + return ``; + } function pageGameSaves(id) { const a = libAppOf(id), g = S.library[id] || {}; const s0 = TV.saves[id]; @@ -1406,7 +1419,8 @@ ${shareTitle ? `

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

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

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

`} - ${(sv.spots || []).map((p, i) => ``).join('')} + ${(sv.spots || []).map((p, i) => savesSpotItem(id, p, i, sv)).join('')} + ${overrideOn(sv) ? savesNamedItem(id, sv.override) : ''}
`; } return `${backdrop(a, 'game')}${gameBar()} @@ -2900,6 +2914,16 @@ draw(); } + // The same pick as the desktop's Where it saves: the player's folder from now on, or in place + // of the named one for a game set up without Easy Setup. + async function pickSavesFolder(id) { + const p = await pickFile({ title: t('The folder where the game keeps its saves'), directory: true }).catch(fail); + if (!p) return; + try { S.library[id] = await invoke(placeCommand(TV.saves[id]), { id, path: typeof p === 'string' ? p : p.path }); } catch (e) { return fail(e); } + toast(t('Saved. Backups and cloud saves use that folder now.')); + return loadGameSaves(id); + } + async function activate(el) { if (!el || el.disabled) return; // With a sheet open, only what's on it can be picked. @@ -3043,12 +3067,17 @@ return loadGameSaves(id); } case 'gs-open': return invoke('saves_open', { id }).catch(fail); - case 'gs-place': { - // The same pick as the desktop's Where it saves: the player's folder from now on. - const p = await pickFile({ title: t('The folder where the game keeps its saves'), directory: true }).catch(fail); - if (!p) return; - try { S.library[id] = await invoke('saves_set_place', { id, path: typeof p === 'string' ? p : p.path }); } catch (e) { return fail(e); } - toast(t('Saved. Backups and cloud saves use that folder now.')); + case 'gs-place': return pickSavesFolder(id); + case 'gs-spot': { + sfx('open'); + const open = { label: t('Open'), sub: t('Where the game keeps its saves'), icon: 'folder', run: () => invoke('saves_open', { id }).catch(fail) }; + const change = { label: t('Change'), sub: t('The folder where the game keeps its saves'), icon: 'folder', run: () => pickSavesFolder(id) }; + return sheet(t('Where it saves'), el.dataset.exists ? [open, change] : [change]); + } + case 'gs-named': { + sfx('select'); + try { S.library[id] = await invoke('saves_set_override', { id, path: null }); } catch (e) { return fail(e); } + toast(t('Saved. Backups and cloud saves use that folder again.')); return loadGameSaves(id); } case 'gs-restore': {