Play your Steam library's Windows games on a jailbroken PS5.
C++
Always open the install sheet and mark buttons that ask
Leonardo Lobatoed88ec6a253c
diff --git a/src/homebrew/simulation.cpp b/src/homebrew/simulation.cppindex 0934a01..df8fa62 100644--- a/src/homebrew/simulation.cpp+++ b/src/homebrew/simulation.cpp@@ -511,17 +511,17 @@ std::string action_label(const std::string& key) {static const std::map<std::string, std::string> labels = {{"cancel", "Cancel"}, {"confirm-destructive", "Confirm"}, {"ready-later", "Later"}, {"alert-ok", "OK"}, {"alert-settings", "Game settings"}, {"runtime-cleanup-confirm", "Clean up"}, {"quit-to-home", "Play"}, {"favorite", "Favorite"},{"collection", "Collections"}, {"note", "Compatibility and note"}, {"verify", "Verify files"},- {"uninstall", "Uninstall"}, {"import-remove", "Remove from library"}, {"uninstall-delete-saves", "Delete saves too"}, {"logs", "Open logs"}, {"logs-back", "Back"},+ {"uninstall", "Uninstall…"}, {"import-remove", "Remove from library…"}, {"uninstall-delete-saves", "Delete saves too"}, {"logs", "Open logs"}, {"logs-back", "Back"},{"logs-pick", "Logs"}, {"log-install", "Install log"}, {"log-auth", "Sign-in log"},{"log-launch", "Launch log"}, {"log-cloud", "Cloud saves log"}, {"logs-refresh", "Refresh"},{"cloud-sync", "Cloud saves"}, {"cloud-choose", "Cloud saves"}, {"cloud-use-cloud", "Use Cloud saves"},{"cloud-use-local", "Use console saves"}, {"cloud-confirm-account", "Use this account"},{"cloud-confirm-account-all", "Upload all"},{"saves-delete-confirm", "Delete saves"}, {"manage-saves", "Manage saves"}, {"saves-leftover-confirm", "Remove"}, {"saves-quit-anyway", "Play without syncing"},- {"install-confirm", "Install"}, {"install-version", "Version"}, {"install-language", "Language"}, {"install-dlc", "Includes"}, {"update-confirm", "Download and install"}, {"storage-picker", "Change storage"},+ {"install-confirm", "Install"}, {"install-version", "Version"}, {"install-language", "Language"}, {"install-dlc", "Includes"}, {"update-confirm", "Download and install"}, {"storage-picker", "Change storage…"},{"value-edit", "Edit…"}, {"value-reset", "Reset to recipe"}, {"override-add", "Add an override…"},{"unlock-setting", "Change anyway"}, {"export-recipe", "Export as recipe"}, {"program-scan", "Looking for programs…"},- {"preset-picker", "Preset"}, {"game-settings", "Game settings"}, {"game-maintenance", "Maintenance"}, {"run-once", "Run a program once"}, {"run-once-start", "Run once"}, {"game-move", "Move to…"}, {"runtime-check-again", "Check again"}, {"reset-settings", "Reset all to preset"}, {"clear-shader-cache", "Clear shader cache"},+ {"preset-picker", "Preset"}, {"game-settings", "Game settings"}, {"game-maintenance", "Maintenance"}, {"run-once", "Run a program once…"}, {"run-once-start", "Run once"}, {"game-move", "Move to…"}, {"runtime-check-again", "Check again"}, {"reset-settings", "Reset all to preset"}, {"clear-shader-cache", "Clear shader cache"},{"section-compatibility", "Compatibility"}, {"section-advanced", "Advanced"}, {"heading-game", "Game"},{"heading-display", "Display"}, {"heading-controls", "Controls"}, {"heading-sound", "Sound"},{"heading-graphics", "Graphics"}, {"heading-windows", "Windows"},@@ -539,9 +539,9 @@ std::string action_label(const std::string& key) {{"inject-logs-empty", "Inject empty logs"}, {"inject-logs-failure", "Inject log failure"},{"inject-logs-ready", "Inject ready logs"}, {"account-auth", "Authentication"},{"account-last-sync", "Last library sync"}, {"account-sync", "Sync now"},- {"account-recover", "Reconnect account"}, {"account-switch", "Switch account"},+ {"account-recover", "Reconnect account"}, {"account-switch", "Switch account…"},{"account-reauth", "Sign in again"}, {"job-resume-all", "Resume all"}, {"job-clear-completed", "Clear completed"},- {"prep-clear-completed", "Clear completed"}, {"storage-close", "Close"}, {"collection-new", "New collection"}, {"collection-manage", "Manage collections"},+ {"prep-clear-completed", "Clear completed"}, {"storage-close", "Close"}, {"collection-new", "New collection…"}, {"collection-manage", "Manage collections"},{"about-version", "Version"}, {"self-update-install", "Download and install"},{"self-update-restart", "Restart Playden"}, {"self-update-cancel", "Cancel update"},{"kit-install", "Download"}, {"kit-cancel", "Cancel download"},@@ -554,9 +554,9 @@ std::string action_label(const std::string& key) {// Per-job actions carry the job id after the verb.for (const auto& [prefix, label] : std::initializer_list<std::pair<const char*, const char*>>{{"job-pause-", "Pause download"}, {"job-resume-", "Resume download"}, {"job-retry-", "Retry download"},- {"job-cancel-", "Cancel download"}, {"job-now-", "Download now"}, {"job-up-", "Move up"}, {"job-down-", "Move down"},+ {"job-cancel-", "Cancel download…"}, {"job-now-", "Download now"}, {"job-up-", "Move up"}, {"job-down-", "Move down"},{"job-open-", "Open game"}, {"job-dismiss-", "Dismiss"}, {"prep-next-", "Prepare next"},- {"prep-open-", "Game details"}, {"prep-retry-", "Try again"}, {"prep-recreate-", "Recreate bottle"},+ {"prep-open-", "Game details"}, {"prep-retry-", "Try again"}, {"prep-recreate-", "Recreate bottle…"},{"prep-dismiss-", "Dismiss"},{"uninstall-dismiss-", "Dismiss"}})if (key.rfind(prefix, 0) == 0) return label;@@ -570,7 +570,7 @@ std::string action_label(const std::string& key) {std::string move_action_label(const std::string& key) {for (const auto& [prefix, label] : std::initializer_list<std::pair<const char*, const char*>>{{"job-pause-", "Pause move"}, {"job-resume-", "Resume move"}, {"job-retry-", "Retry move"},- {"job-cancel-", "Cancel move"}, {"job-now-", "Move now"}})+ {"job-cancel-", "Cancel move…"}, {"job-now-", "Move now"}})if (key.rfind(prefix, 0) == 0) return label;return {};}@@ -2103,9 +2103,11 @@ void Simulation::build_manage_games_view() {}const auto count = tab.selected.size();+ // Uninstall always asks first; Update asks when a drive is short of room.+ const bool asks = count > 0 && (updates ? !manage_updates().short_drive.empty() : !moves);auto& primary = row("manage-primary", RowKind::Action,std::string(updates ? "Update" : moves ? "Move" : "Uninstall") +- (count > 0 ? " " + std::to_string(count) : std::string()),+ (count > 0 ? " " + std::to_string(count) : std::string()) + (asks ? "…" : ""),updates ? "manage-update" : moves ? "manage-move" : "manage-uninstall");primary.enabled = count > 0;primary.dangerous = !updates && !moves;@@ -5864,7 +5866,7 @@ void Simulation::rebuild_view() {const bool closed = game_closed(settings_game, &closed_reason);const bool busy = runtime && runtime->maintenance_running;if (action_key == "maintenance-reset") {- item.title = "Reset settings";+ item.title = "Reset settings…";item.subtitle = "Removes your changes; the preset and the program you chose stay.";item.enabled = settings_record != state_.game_settings.end() && has_resettable(settings_record->second.overrides);if (!item.enabled)@@ -5874,7 +5876,7 @@ void Simulation::rebuild_view() {} else if (kind == MaintenanceKind::UpdateRuntime) {// What Play does first for a title on an older kit's runtime ("Kit update available"), alone.const bool stale = runtime && (runtime->status == "Kit update available" || runtime->status == "Update available");- item.title = "Update runtime";+ item.title = "Update runtime…";item.subtitle = "Moves the game to the installed kit's runtime without starting it.";item.badge = "Game must be closed";item.enabled = stale && runtime->can_prepare && closed && !busy;@@ -5889,9 +5891,9 @@ void Simulation::rebuild_view() {else if (!updating && !closed) item.subtitle = closed_reason;else if (!updating && !runtime->can_prepare && !busy) item.subtitle = "Wait for the game's setup to finish.";} else {- item.title = kind == MaintenanceKind::Repair ? "Repair"- : kind == MaintenanceKind::ClearShaderCache ? "Clear shader cache"- : kind == MaintenanceKind::BackupSaves ? "Back up saves" : "Recreate bottle";+ item.title = kind == MaintenanceKind::Repair ? "Repair…"+ : kind == MaintenanceKind::ClearShaderCache ? "Clear shader cache…"+ : kind == MaintenanceKind::BackupSaves ? "Back up saves…" : "Recreate bottle…";item.subtitle = kind == MaintenanceKind::Repair ? "Fixes the files the game needs to start and writes its settings again.": kind == MaintenanceKind::ClearShaderCache ? "Shaders compile again on the next start.": kind == MaintenanceKind::BackupSaves ? "Copies the Windows user folders aside."@@ -6018,7 +6020,7 @@ void Simulation::rebuild_view() {item.enabled = import_wizard_subject.ascii_ok;}else if (modal.id == "import-choice" && action_key == "import-copy") {- item.title = "Import into Playden";+ item.title = "Import into Playden…";item.value = format_bytes(import_wizard_subject.bytes);item.subtitle = import_from_drop ? "Takes the game out of the drop folder. You pick the storage next.": "Copies the game. You pick the storage next.";@@ -6046,7 +6048,7 @@ void Simulation::rebuild_view() {else if (action_key == "kept-selection-delete") {std::uint64_t bytes = 0;for (const auto& kept : state_.kept_bottles) if (kept_selected_.contains(kept.game_id)) bytes += kept.bytes;- item.title = "Delete selected";+ item.title = "Delete selected…";item.dangerous = true;item.enabled = !kept_selected_.empty();if (!kept_selected_.empty()) item.value = kept_count(kept_selected_.size()) + " · " + format_bytes(bytes);@@ -6076,7 +6078,7 @@ void Simulation::rebuild_view() {else if (action_key == "leftover-selection-delete") {std::uint64_t bytes = 0;for (const auto& title : state_.leftover_titles) if (leftover_selected_.contains(title.title_id)) bytes += title.bytes;- item.title = "Delete selected";+ item.title = "Delete selected…";item.dangerous = true;item.enabled = !leftover_selected_.empty();if (!leftover_selected_.empty())@@ -6202,14 +6204,14 @@ void Simulation::rebuild_view() {item.value = games;item.selected = found->members.contains(state_.navigation.selected_game_id);} else if (index == 1) {- item.title = "Rename \u201c" + found->name + "\u201d";+ item.title = "Rename \u201c" + found->name + "\u201d\u2026";item.value = games;} else if (index == 2) {item.title = "Pin \u201c" + found->name + "\u201d on Home";item.selected = found->pinned;item.value = found->pinned ? "On" : "Off";} else {- item.title = "Delete \u201c" + found->name + "\u201d";+ item.title = "Delete \u201c" + found->name + "\u201d\u2026";item.dangerous = true;}}@@ -6453,7 +6455,7 @@ void Simulation::rebuild_view() {}if (!game->update.available()) return;const bool dlc = game->update.new_dlc;- auto& button = row("details-update", RowKind::Action, dlc ? "DLC available" : "Update", "details-update");+ auto& button = row("details-update", RowKind::Action, dlc ? "DLC available…" : "Update…", "details-update");button.game_id = game->id;auto& note = row("details-update-note", RowKind::Status, dlc ? "DLC available" : "Update available", "");// What the changed files download, once measured.@@ -6529,14 +6531,14 @@ void Simulation::rebuild_view() {if (!uninstalling) {if (const auto setup = game_setups_.find(game->id); setup != game_setups_.end() &&!setup->second.steam_choices.empty() && !value.ready && value.status != "Preparing") {- play.title = "Choose program";+ play.title = "Choose program…";play.action = "steam-programs";play.value.clear();play.enabled = true;}// Finish setup would fail as before over a title or bottle an earlier kit made: make it again.if (value.setup_other_kit) {- play.title = "Recreate bottle";+ play.title = "Recreate bottle…";play.action = "prep-recreate-" + ToKey(game->id);play.value = value.maintenance_running ? "Working…" : std::string{};play.enabled = !value.maintenance_running;@@ -6575,7 +6577,7 @@ void Simulation::rebuild_view() {const bool busy = cloud_status == CloudStatus::Checking || cloud_status == CloudStatus::Syncing;const bool choice = cloud_status == CloudStatus::Conflict || cloud_status == CloudStatus::NeedsAccount;// Stays a button while it works, disabled, so it keeps its place in the row.- auto& saves = row("details-cloud", RowKind::Action, "Cloud saves",+ auto& saves = row("details-cloud", RowKind::Action, choice ? "Cloud saves…" : "Cloud saves",busy || uninstalling ? "" : choice ? "cloud-choose" : "cloud-sync");saves.value = cloud_status == CloudStatus::None ? "Sync": busy ? (cloud_status == CloudStatus::Checking ? "Checking…" : "Syncing…")@@ -6592,7 +6594,7 @@ void Simulation::rebuild_view() {status.value = job_state_value(*job);status.progress = job->total_bytes == 0 ? 0.0F : static_cast<float>(job->completed_bytes) / static_cast<float>(job->total_bytes);} else if (game->windows_installable.value_or(false)) {- auto& install = row("details-install", RowKind::Action, "Install", "live-install");+ auto& install = row("details-install", RowKind::Action, "Install…", "live-install");install.value = game->install_bytes ? format_bytes(*game->install_bytes) : "Size unknown";if (const auto* volume = find_volume(state_, selected_volume_id_)) {const auto assessment = assess_install(state_, game->id, selected_volume_id_, steam::kInstallSpaceMargin);@@ -6616,7 +6618,7 @@ void Simulation::rebuild_view() {saves.value = format_bytes(kept.bytes);saves.subtitle = "Installing the game again brings them back.";saves.enabled = false;- row("details-kept-delete", RowKind::Action, "Delete saves", "kept-delete-" + ToKey(game->id)).dangerous = true;+ row("details-kept-delete", RowKind::Action, "Delete saves…", "kept-delete-" + ToKey(game->id)).dangerous = true;}}if (imported) {@@ -6636,14 +6638,14 @@ void Simulation::rebuild_view() {status.progress = copying->total_bytes == 0 ? 0.0F: static_cast<float>(copying->completed_bytes) / static_cast<float>(copying->total_bytes);// A copy that failed (or runs too long) can be cancelled here; the game plays in place again.- row("details-cancel-copy", RowKind::Action, "Cancel copy", "import-cancel-copy");+ row("details-cancel-copy", RowKind::Action, "Cancel copy…", "import-cancel-copy");} else if (const auto* external = in_place ? external_game(game->id) : nullptr; external && external->available) {// Its drive is there: a folder the PS5 can't play from (its name) can still be copied.- row("details-copy", RowKind::Action, "Import into Playden",+ row("details-copy", RowKind::Action, "Import into Playden…","import-copy-game");}if (in_place) {- row("details-remove", RowKind::Action, "Remove from library", "import-remove").enabled =+ row("details-remove", RowKind::Action, "Remove from library…", "import-remove").enabled =!copying && starting == import_transfers_starting_.end();// Where it plays from, under the buttons.for (const auto& candidate : state_.import_candidates)@@ -6652,7 +6654,7 @@ void Simulation::rebuild_view() {folder.enabled = false;}} else if (installed) {- row("details-uninstall", RowKind::Action, "Uninstall", "uninstall");+ row("details-uninstall", RowKind::Action, "Uninstall…", "uninstall");}}if (installed) {@@ -6817,7 +6819,7 @@ void Simulation::rebuild_view() {chip.selected = static_cast<int>(index) == state_.navigation.saves_filter;}if (const auto awaiting = saves_awaiting_account(); job.kind == SavesJobKind::None && !awaiting.empty())- row("saves-upload-all", RowKind::Action, "Upload all", "saves-upload-all").value = std::to_string(awaiting.size());+ row("saves-upload-all", RowKind::Action, "Upload all…", "saves-upload-all").value = std::to_string(awaiting.size());auto& sync_all = row("saves-sync-all", RowKind::Action, job.kind == SavesJobKind::None ? "Sync all" : "Stop", "saves-sync-all");sync_all.selected = job.kind != SavesJobKind::None;sync_all.enabled = !job.stopping && (job.kind != SavesJobKind::None || counts[0] > counts[3]);@@ -6892,9 +6894,9 @@ void Simulation::rebuild_view() {status == CloudStatus::Waiting ? (here ? "downloads Cloud saves" : "into the kept data") : "");}if (!here && kept) {- add("saves-leftover", "Remove leftover data", format_bytes(kept->bytes) + " with saves").dangerous = true;+ add("saves-leftover", "Remove leftover data…", format_bytes(kept->bytes) + " with saves").dangerous = true;} else if (here && status != CloudStatus::Unsupported && status != CloudStatus::None) {- add("saves-delete", "Delete saves on this console", "Cloud keeps its copy").dangerous = true;+ add("saves-delete", "Delete saves on this console…", "Cloud keeps its copy").dangerous = true;}if (view_.rows.empty()) row("saves-nothing", RowKind::Status, "Nothing to do", "").enabled = false;view_.legends = {"Cross Select", "Circle Back"};@@ -6917,7 +6919,7 @@ void Simulation::rebuild_view() {? (!live() || state_.account().last_sync > 0 ? "Steam connected · Synced" : "Steam connected"): "Connect Steam";if (state_.account().authentication != AuthState::SignedOut)- add("settings-signout", RowKind::Action, "Sign out", "signout-confirm").dangerous = true;+ add("settings-signout", RowKind::Action, "Sign out…", "signout-confirm").dangerous = true;section = "Library";{// Windows games in a drive's playden/import or the console drop folder: the Import sheet.@@ -7132,7 +7134,7 @@ void Simulation::rebuild_view() {}if (kOfferGoBack && live() && !state_.self_update.previous.empty() &&state_.self_update.phase != "downloading" && state_.self_update.phase != "unpacking") {- auto& back = add("settings-update-back", RowKind::Action, "Go back to Playden " + state_.self_update.previous,+ auto& back = add("settings-update-back", RowKind::Action, "Go back to Playden " + state_.self_update.previous + "…","self-update-back");back.subtitle = "Put the previous version and its runtime kit back";}@@ -7184,12 +7186,12 @@ void Simulation::rebuild_view() {add("settings-simulation", RowKind::Action, "Simulation controls", "simulation-controls");add("settings-scenarios", RowKind::Action, "Fixture scenarios", "scenario-picker");}- auto& reset = add("settings-reset", RowKind::Action, "Reset UI data", "reset-confirm");+ auto& reset = add("settings-reset", RowKind::Action, "Reset UI data…", "reset-confirm");reset.dangerous = true;reset.subtitle = "Forget favorites, collections and view state on this console";section = "Quit Playden";// As on macOS, the rail entry itself quits: the section has no rows to review.- auto& quit = add("settings-quit", RowKind::Action, "Quit Playden", "quit-confirm");+ auto& quit = add("settings-quit", RowKind::Action, "Quit Playden…", "quit-confirm");quit.dangerous = true;quit.rail_only = true;} else if (state_.navigation.route == Route::Session) {@@ -8840,21 +8842,12 @@ void Simulation::activate() {state_.navigation.focus_key = "details-play";} else if (live() && action_name == "live-install") {const auto id = state_.navigation.detail_id.value_or(state_.navigation.selected_game_id);- // Install at once when the game fits the default drive (or its size is checked later);- // otherwise the sheet says why and offers another drive for this install.+ // Every install opens the sheet: it says where the game goes and how much room it takes, and its+ // Storage row (with Language and Version when the game has a choice) sets them for this install.install_volume_id_.clear();install_language_.clear();install_version_.clear();- const auto* game = find_game(state_, id);- // A game in several languages or versions opens the sheet, where its Language and Version rows- // choose them for this install.- const bool languages = game && game->content_languages.size() >= 2;- const bool versions = game && game->versions.size() >= 2;- if (id.valid() && !languages && !versions &&- live_install_allowed(assess_install(state_, id, selected_volume_id_, steam::kInstallSpaceMargin).readiness,- free_space_supported_))- pending_install_requests_.push_back({InstallRequestKind::Install, id});- else if (id.valid())+ if (id.valid())open_modal({"install", "Install game", "details-install", live_install_sheet_actions(id), 0, false});} else if (live() && action_name == "steam-programs") {open_steam_programs(state_.navigation.detail_id.value_or(state_.navigation.selected_game_id));diff --git a/tests/homebrew_library_model_test.cpp b/tests/homebrew_library_model_test.cppindex 5072f31..a83b608 100644--- a/tests/homebrew_library_model_test.cpp+++ b/tests/homebrew_library_model_test.cpp@@ -304,8 +304,10 @@ void live_install_requests_and_projection() {check(find_row(model, "details-install")->subtitle == "To Console storage · 1.0 GB free","Install names the destination and its free space");activate(model, "details-install");+ check(model.view().surface == "install" && model.TakeInstallRequests().empty(),+ "Install opens the install sheet first, even when the game fits");+ activate(model, "install-confirm");auto requests = model.TakeInstallRequests();- check(model.view().surface != "install", "a game that fits installs without a confirmation sheet");check(requests.size() == 1 && requests[0].kind == playden::homebrew::InstallRequestKind::Install && requests[0].game_id == SteamId(42),"Install sends one request");model.UpdateInstalls({{SteamId(42), playden::homebrew::JobState::Downloading, 50, 200, {}}}, {});@@ -499,17 +501,19 @@ void live_install_confirmation_checks_space_and_unknowns() {check(model.state().volumes[1].reserved_bytes == 0, "completed downloads hold no reservation");model.UpdateInstalls({}, {});- // A game that fits installs at once, to the default drive.+ // A game that fits still opens the sheet; Install there sends it to the default drive.model.UpdateVolumes({{"internal", "Console storage", true, margin + 2'000, margin + 1'000}}, "internal");activate(model, "details-install");+ check(model.view().surface == "install" && model.TakeInstallRequests().empty(), "a game that fits opens the sheet too");+ activate(model, "install-confirm");requests = model.TakeInstallRequests();- check(model.view().surface != "install" && requests.size() == 1 && requests[0].volume_id.empty(),- "a game that fits installs without the sheet");+ check(requests.size() == 1 && requests[0].volume_id.empty(), "the sheet installs to the default drive");- // An unknown size installs at once when the drive has the margin; the downloader checks it.+ // An unknown size can be installed when the drive has the margin; the downloader checks it.model.UpdateAppDetails(SteamId(42), std::nullopt, std::nullopt, true);check(find_row(model, "details-install")->value == "Size unknown", "unknown size never displays zero");activate(model, "details-install");+ activate(model, "install-confirm");check(model.TakeInstallRequests().size() == 1, "unknown size installs with a pre-download check");model.UpdateVolumes({{"internal", "Console storage", true, margin + 2'000, 0}}, "internal");activate(model, "details-install");@@ -528,6 +532,7 @@ void live_install_confirmation_checks_space_and_unknowns() {model.SetFreeSpaceSupported(false);model.UpdateVolumes({{"internal", "Console storage", true, std::nullopt, std::nullopt}}, "internal");activate(model, "details-install");+ activate(model, "install-confirm");check(model.TakeInstallRequests().size() == 1, "a console that cannot read free space still installs, as before");}@@ -555,8 +560,9 @@ void live_install_dlc_row() {model.UpdateAppDetails(SteamId(42), 100, 600, true, {"german"}, 3);check(model.action("details:42"), "details open");activate(model, "details-install");- check(model.view().surface != "install" && model.TakeInstallRequests().size() == 1,- "a game with one language still installs at once");+ check(model.view().surface == "install" && find_row(model, "install-language") == nullptr &&+ model.TakeInstallRequests().empty(),+ "a game with one language opens the sheet without a Language row");}// A game in several languages: the install sheet's Language row chooses one for this install only.@@ -570,8 +576,10 @@ void live_install_language_row() {model.UpdateAppDetails(SteamId(43), 100, 600, true, {"german"});check(model.action("details:43"), "details open");activate(model, "details-install");- check(model.view().surface != "install" && model.TakeInstallRequests().size() == 1,- "a game with one language installs at once, as before");+ check(model.view().surface == "install" && find_row(model, "install-language") == nullptr &&+ find_row(model, "storage-picker") != nullptr && model.TakeInstallRequests().empty(),+ "a game with one language opens the sheet with its Storage row, without a Language row");+ activate(model, "cancel");model.UpdateAppDetails(SteamId(42), 100, 600, true, {"english", "german", "french"});check(model.action("details:42"), "details open");@@ -621,8 +629,10 @@ void live_install_version_row() {model.UpdateAppDetails(SteamId(43), 100, 600, true, {}, 0, {GameVersion{"public", "", 1760000000, 9000, 100, 600}});check(model.action("details:43"), "details open");activate(model, "details-install");- check(model.view().surface != "install" && model.TakeInstallRequests().size() == 1,- "a game with one version installs at once");+ check(model.view().surface == "install" && find_row(model, "install-version") == nullptr &&+ model.TakeInstallRequests().empty(),+ "a game with one version opens the sheet without a Version row");+ activate(model, "cancel");model.UpdateAppDetails(SteamId(42), 100, 600, true, {}, 0,{GameVersion{"public", "", 1760000000, 9000, 100, 600},@@ -1644,7 +1654,7 @@ void live_storage_section_and_installed_games() {check(!find_row(model, key)->selected, "Select all skips blocked games");check(find_row(model, "manage-select-all")->title == "Clear selection", "with all checked it clears instead");check(model.view().footer == "4 selected · frees 31.0 GB", "the footer names how many and how much");- check(find_row(model, "manage-primary")->title == "Uninstall 4", "the footer button counts the selection");+ check(find_row(model, "manage-primary")->title == "Uninstall 4…", "the footer button counts the selection");// A game that starts running leaves the selection.running.game_id = SteamId(13);model.UpdateRuntime(RuntimeState::Ready, {titled, running, preparing});@@ -2571,7 +2581,7 @@ void live_move_job_actions_say_move() {check(model.state().navigation.route == Route::Downloads, "move job: Queue open");activate(model, "job-42");check(find_row(model, "job-pause-42") && find_row(model, "job-pause-42")->title == "Pause move" &&- find_row(model, "job-cancel-42")->title == "Cancel move",+ find_row(model, "job-cancel-42")->title == "Cancel move…","move job: its actions say move");activate(model, "job-cancel-42");const auto& confirmation = model.state().navigation.modals.back();@@ -2707,7 +2717,7 @@ void game_collections_sheet_adds_and_removes_the_game() {check(model.action("details:42") && model.action("focus:details-more") && model.action("cross"), "game actions open");activate(model, "collection");check(model.state().navigation.modals.back().id == "collections" && has_row(model, "collection-new") &&- !has_row(model, "collection-manage") && find_row(model, "collection-new")->title == "New collection",+ !has_row(model, "collection-manage") && find_row(model, "collection-new")->title == "New collection…","with no collections the sheet offers New collection");activate(model, "collection-new");@@ -2729,14 +2739,14 @@ void game_collections_sheet_adds_and_removes_the_game() {activate(model, "collection-manage");const auto id = model.state().library.collections[0].id;- check(find_row(model, "collection-rename-" + id)->title == "Rename \u201cTo test\u201d" &&+ check(find_row(model, "collection-rename-" + id)->title == "Rename \u201cTo test\u201d\u2026" &&find_row(model, "collection-pin-" + id) && find_row(model, "collection-delete-" + id)->dangerous,"Manage collections renames, pins and deletes each collection");activate(model, "collection-rename-" + id);model.text(" later");check(model.action("done"), "the new name is entered");check(model.state().library.collections[0].name == "To test later" &&- find_row(model, "collection-rename-" + id)->title == "Rename \u201cTo test later\u201d",+ find_row(model, "collection-rename-" + id)->title == "Rename \u201cTo test later\u201d\u2026","a rename shows in the open sheet");}@@ -3143,7 +3153,7 @@ void live_refused_preparation_offers_uninstall() {model.action("r1");activate(model, "prep-attn-36");check(has_row(model, "prep-retry-36") && has_row(model, "prep-open-36") && has_row(model, "uninstall") &&- find_row(model, "uninstall")->title == "Uninstall" && find_row(model, "uninstall")->enabled,+ find_row(model, "uninstall")->title == "Uninstall…" && find_row(model, "uninstall")->enabled,"a refused installed game can be uninstalled from Queue");activate(model, "uninstall");check(model.state().navigation.modals.size() == 2 && model.state().navigation.modals.back().title == "Uninstall this game?",@@ -3195,7 +3205,7 @@ void live_setup_from_an_earlier_kit_offers_recreate() {activate(model, "prep-attn-34");check(has_row(model, "prep-recreate-34") && !has_row(model, "prep-retry-34") && has_row(model, "prep-open-34"),"Recreate bottle takes Try again's place");- check(find_row(model, "prep-recreate-34")->title == "Recreate bottle", "the action is named");+ check(find_row(model, "prep-recreate-34")->title == "Recreate bottle…", "the action is named");activate(model, "prep-recreate-34");check(model.state().navigation.modals.size() == 1 && model.state().navigation.modals.back().title == "Recreate the bottle?","it asks first, as Maintenance does");@@ -3219,7 +3229,7 @@ void live_setup_from_an_earlier_kit_offers_recreate() {model.UpdateRuntime(RuntimeState::Ready, {spire, broke});check(model.action("details:34"), "details open");const auto* play = find_row(model, "details-play");- check(play && play->enabled && play->title == "Recreate bottle" && play->action == "prep-recreate-34",+ check(play && play->enabled && play->title == "Recreate bottle…" && play->action == "prep-recreate-34","the game page offers Recreate bottle instead of Finish setup");check(find_row(model, "details-hint") &&find_row(model, "details-hint")->title ==@@ -3408,7 +3418,7 @@ void live_import_sheet_sends_requests() {model.view().subtitle.rfind("Starts with Delores.exe, which you can change in Game settings.", 0) == 0,"one program besides an installer skips the program list");check(model.view().surface == "import-choice" && find_row(model, "import-play-in-place")->title == "Play from the drop folder" &&- find_row(model, "import-copy")->title == "Import into Playden" && !has_row(model, "import-move"),+ find_row(model, "import-copy")->title == "Import into Playden…" && !has_row(model, "import-move"),"a drop-folder game plays from there or is imported into Playden");activate(model, "import-play-in-place");requests = model.TakeImportRequests();@@ -3525,7 +3535,7 @@ void live_import_choice_and_details() {model.UpdateInstalls({}, {});// Its page while it plays from the drive, then while it copies.- check(find_row(model, "details-copy") && find_row(model, "details-copy")->title == "Import into Playden" &&+ check(find_row(model, "details-copy") && find_row(model, "details-copy")->title == "Import into Playden…" &&find_row(model, "details-remove") && !has_row(model, "details-cloud") && !has_row(model, "details-uninstall"),"an imported game on a drive offers Copy into Playden and Remove from library");// The page's Import into Playden opens step 2 with the folder's size (from the scan, the game has none).@@ -3893,7 +3903,7 @@ void live_game_update() {const auto& rows = model.view().rows;const auto play_at = std::find_if(rows.begin(), rows.end(), [](const auto& row) { return row.key == "details-play"; });const auto update_at = std::find_if(rows.begin(), rows.end(), [](const auto& row) { return row.key == "details-update"; });- check(play_at != rows.end() && update_at == play_at + 1 && update_at->title == "Update" && update_at->enabled,+ check(play_at != rows.end() && update_at == play_at + 1 && update_at->title == "Update…" && update_at->enabled,"Update follows Play");const auto* note = find_row(model, "details-update-note");check(note && note->title == "Update available" && note->value == "1.2 GB", "the note says the update's size");@@ -3914,7 +3924,7 @@ void live_game_update() {// DLC bought since wins the label, even when an update downloads with it.model.UpdateAppDetails(SteamId(42), 100, 6'000'000'000, true, {}, 0, {}, GameUpdate{true, true, 300'000'000, 300'000'000, 2, true});- check(find_row(model, "details-update")->title == "DLC available" &&+ check(find_row(model, "details-update")->title == "DLC available…" &&find_row(model, "details-update-note")->title == "DLC available" &&find_row(model, "details-update-note")->value == "300 MB","new DLC says DLC available");diff --git a/tests/homebrew_live_model_test.cpp b/tests/homebrew_live_model_test.cppindex f8a0b68..c3cd124 100644--- a/tests/homebrew_live_model_test.cpp+++ b/tests/homebrew_live_model_test.cpp@@ -409,7 +409,7 @@ void live_update_runtime_from_maintenance(const std::filesystem::path& base) {model.TakeActivityRequests();model.UpdateRuntime(playden::homebrew::RuntimeState::Ready, {runtime});const auto* update = find_row(model, "maintenance-update");- check(update && update->enabled && update->title == "Update runtime" &&+ check(update && update->enabled && update->title == "Update runtime…" &&update->subtitle == "Moves the game to the installed kit's runtime without starting it." &&update->badge == "Game must be closed","Update runtime is offered for a closed game whose title waits for its kit update");@@ -720,7 +720,7 @@ void live_runs_setup_program_once(const std::filesystem::path& base) {// The folder's programs: the game's own is named, one the console can't start is not offered.activate(model, "details-more");- check(find_row(model, "run-once")->enabled && find_row(model, "run-once")->title == "Run a program once",+ check(find_row(model, "run-once")->enabled && find_row(model, "run-once")->title == "Run a program once…","setup program: Game actions offers it");activate(model, "run-once");check(model.state().navigation.modals.back().id == "setup-programs", "setup program: the picker opens");@@ -1013,7 +1013,7 @@ void live_self_update(const std::filesystem::path& base) {kept.previous = "0.2.0";going_back.UpdateSelfUpdate(kept);check(find_row(going_back, "settings-update-back") &&- find_row(going_back, "settings-update-back")->title == "Go back to Playden 0.2.0",+ find_row(going_back, "settings-update-back")->title == "Go back to Playden 0.2.0…","update: Settings offers going back");activate(going_back, "settings-update-back");check(!going_back.state().navigation.modals.empty() &&@@ -1400,7 +1400,7 @@ void live_setup_asks_for_a_steam_program(const std::filesystem::path& base) {check(model.action("details:449610"), "steam program: its page");const auto play = std::find_if(model.view().rows.begin(), model.view().rows.end(),[](const auto& row) { return row.key == "details-play"; });- check(play != model.view().rows.end() && play->title == "Choose program" && play->enabled, "steam program: Play asks");+ check(play != model.view().rows.end() && play->title == "Choose program…" && play->enabled, "steam program: Play asks");activate(model, "details-play");check(model.view().surface == "steam-programs" && model.state().navigation.modals.back().action_keys.size() == 4,"steam program: every program and Cancel");@@ -1707,6 +1707,7 @@ void live_manage_update_selected(const std::filesystem::path& base) {// first, and Cancel queues nothing.check(model.view().footer == "3 selected · 6.0 GB to download · needs 1.1 GB more on USB Drive","update selected: the footer names the drive that lacks room");+ check(find_row(model, "manage-primary")->title == "Update 3…", "update selected: the button says it asks first");model.action("triangle");check(model.TakeInstallRequests().empty(), "update selected: the warning comes before anything is queued");check(!navigation.modals.empty() && navigation.modals.back().title == "Update anyway?" &&diff --git a/tests/homebrew_simulation_test.cpp b/tests/homebrew_simulation_test.cppindex 4bd3126..9c9ca69 100644--- a/tests/homebrew_simulation_test.cpp+++ b/tests/homebrew_simulation_test.cpp@@ -726,14 +726,14 @@ void game_update_scenarios(const std::filesystem::path& fixtures, const std::filreturn nullptr;};check(simulation.scenario("update-available"), "update-available loads");- check(row("details-update") && row("details-update")->title == "Update" && row("details-update-note") &&+ check(row("details-update") && row("details-update")->title == "Update…" && row("details-update-note") &&row("details-update-note")->title == "Update available" && row("details-update-note")->value == "1.2 GB","update-available offers Update with its size");check(simulation.action("cross") && simulation.view().surface == "update" && row("update-confirm") &&row("update-confirm")->enabled && row("update-confirm")->value == "1.2 GB","Update opens the update sheet");check(simulation.action("circle"), "the sheet closes");- check(simulation.scenario("dlc-available") && row("details-update")->title == "DLC available",+ check(simulation.scenario("dlc-available") && row("details-update")->title == "DLC available…","dlc-available says DLC available");check(simulation.scenario("install-options") && simulation.view().surface == "install" && row("install-version") &&row("install-language") && row("install-dlc") && row("install-dlc")->value == "2 DLC",@@ -1299,7 +1299,7 @@ static void t17_import_sheet(const std::filesystem::path& fixtures, const std::fsimulation.view().subtitle == "You can import it into Playden later from the game's page." &&row("import-play-in-place")->title == "Play from the USB drive" &&row("import-play-in-place")->subtitle == "Nothing is copied. Keep the drive plugged in." &&- row("import-copy")->title == "Import into Playden" && row("import-copy")->value == "938 MB" &&+ row("import-copy")->title == "Import into Playden…" && row("import-copy")->value == "938 MB" &&row("import-copy")->subtitle == "Copies the game. You pick the storage next." &&simulation.state().navigation.focus_key == "import-copy","T17 choosing the program asks where the game files live, Import focused");@@ -1334,7 +1334,7 @@ static void t18_imported_game_page(const std::filesystem::path& fixtures, const};check(simulation.scenario("import-details"), "T18 import-details scenario");check(simulation.state().navigation.route == Route::Details && row("details-play") && row("details-play")->title == "Play" &&- row("details-copy")->title == "Import into Playden" && row("details-remove")->title == "Remove from library" &&+ row("details-copy")->title == "Import into Playden…" && row("details-remove")->title == "Remove from library…" &&row("details-folder")->title == "Plays from /mnt/usb0/playden/import/Night Sky" && !row("details-cloud"),"T18 an imported game's page plays in place and offers Import and Remove");// Import into Playden: the wizard's drive choice at once; Back closes it.@@ -1387,7 +1387,7 @@ static void t18_imported_game_page(const std::filesystem::path& fixtures, constpress("import-candidate-internal:playden-import/Hollow Knight");check(row("import-play-in-place")->title == "Play from the drop folder" &&row("import-play-in-place")->subtitle == "Nothing moves. The files stay in /data/playden-import." &&- row("import-copy")->title == "Import into Playden" && row("import-copy")->value == "8.9 GB" &&+ row("import-copy")->title == "Import into Playden…" && row("import-copy")->value == "8.9 GB" &&row("import-copy")->subtitle == "Takes the game out of the drop folder. You pick the storage next." &&!row("import-move") && !row("storage-picker"),"T18 a drop-folder game plays from there or is imported");