Play your Steam library's Windows games on a jailbroken PS5.
C++
Clarify game setup states on the details page
Leonardo Lobato0c6ec4ea764b
diff --git a/src/homebrew/controller.cpp b/src/homebrew/controller.cppindex 94314ef..8d8e267 100644--- a/src/homebrew/controller.cpp+++ b/src/homebrew/controller.cpp@@ -977,6 +977,7 @@ void Controller::TickRuntime() {for (const auto& view : snapshot.installs) if (view.app_id == id) record = &view;const auto refusal = snapshot.refusals.find(id);game.has_title = record != nullptr;+ if (record) game.failure_code = record->failure_code;if (snapshot.status == RuntimeHostStatus::kStarting) {game.status = "Checking";} else if (snapshot.status != RuntimeHostStatus::kReady) {@@ -998,8 +999,8 @@ void Controller::TickRuntime() {game.status = "Preparing"; game.detail = PreparationProgressWords(record != nullptr, record ? record->step : std::string{});} else if (record && record->state == runtime::PreparationState::kReady && !record->recovery_pending &&!record->title_current) {- game.status = "Update available"; game.can_prepare = usable;- game.detail = "Play or Update runtime updates it first; the game and its saves stay as they are";+ game.status = "Kit update available"; game.can_prepare = usable;+ game.detail = "Play updates the compatibility kit first; the game and its saves stay as they are";} else if (record && record->state == runtime::PreparationState::kReady && !record->recovery_pending &&record->admission != "ok") {game.status = "Needs repair"; game.can_prepare = usable;@@ -1028,10 +1029,16 @@ void Controller::TickRuntime() {record->state == runtime::PreparationState::kUnavailable)) {game.status = "Failed"; game.detail = record->failure; game.can_prepare = usable;} else {- game.status = "Not prepared";+ game.status = usable ? "Not prepared" : "No kit";game.detail = usable ? "Play prepares it: a private bottle and the game's own PS5 title" : snapshot.kit_reason;game.can_prepare = usable;}+ // Preparation and its recovery checks require the kit. Keep actions that+ // launch or remove an existing title, and route blocked setup to Settings.+ if (snapshot.status == RuntimeHostStatus::kReady && !usable &&+ (game.status == "Kit update available" || game.status == "Needs repair" ||+ game.status == "Needs recovery" || game.status == "Failed" || game.status == "Registration pending"))+ game.status = "No kit";if (refusal != snapshot.refusals.end() && !game.ready) game.detail = refusal->second;if (const auto refused = snapshot.play_refusals.find(id); refused != snapshot.play_refusals.end())game.play_detail = "Could not start: " + refused->second;@@ -1075,6 +1082,8 @@ void Controller::TickRuntime() {: *step == UninstallStep::kRemoveTitle ? "Removing PS5 title…" : "Uninstalling…";game.can_play = false; game.can_prepare = false;}+ // A retry is in flight: do not republish its previous refusal as a new outcome.+ if (play_queued_.count(id) || sync_before_play_.count(id)) game.play_detail.clear();if (game.ready && cloud_busy_.count(id) && game.play_detail.empty()) game.play_detail = "Waiting for Cloud saves to finish.";if (snapshot.work_progress && (snapshot.preparing_app == id || snapshot.removing_app == id))game.progress = snapshot.work_progress;diff --git a/src/homebrew/runtime_host.cpp b/src/homebrew/runtime_host.cppindex 4d05c01..6d75aa2 100644--- a/src/homebrew/runtime_host.cpp+++ b/src/homebrew/runtime_host.cpp@@ -827,7 +827,10 @@ void RuntimeHost::PublishInstalls(const Composition& composition, const std::strif (record.journal) view.step = record.journal->step;view.recovery_pending = record.journal.has_value();view.awaiting_registration = AwaitingRegistration(record);- if (record.last_failure) view.failure = record.last_failure->message;+ if (record.last_failure) {+ view.failure = record.last_failure->message;+ view.failure_code = record.last_failure->code;+ }if (const auto kept = checked.find(record.install_id); !only.empty() && record.install_id != only && kept != checked.end())view.title_current = kept->second;else if (record.state == rt::PreparationState::kReady && composition.kit)diff --git a/src/homebrew/runtime_host.hpp b/src/homebrew/runtime_host.hppindex 65534c6..234be92 100644--- a/src/homebrew/runtime_host.hpp+++ b/src/homebrew/runtime_host.hpp@@ -172,6 +172,7 @@ struct RuntimeInstallView {// Save backups kept for the game, and when the newest was made (Unix time).std::size_t save_backups = 0;std::int64_t latest_save_backup = 0;+ std::string failure_code; // Recorded preparation failure; the message remains available in diagnostics.};// Work on a prepared game's files, run while its PS5 title is stopped.diff --git a/src/homebrew/simulation.cpp b/src/homebrew/simulation.cppindex 3ce51ed..0cc5579 100644--- a/src/homebrew/simulation.cpp+++ b/src/homebrew/simulation.cpp@@ -1191,6 +1191,17 @@ void Simulation::UpdateRuntime(RuntimeState runtime, const std::vector<LiveRuntifor (const auto& [id, game] : next) {if (game.status != "Not prepared") rechosen_after_refusal_.erase(id);const auto before = state_.runtime_games.find(id);+ // Launch outcomes are separate from setup readiness. Surface a new actionable+ // refusal once through the existing notice path, keeping diagnostics off Details.+ if (!game.play_detail.empty() &&+ (before == state_.runtime_games.end() || before->second.play_detail != game.play_detail)) {+ if (game.play_detail.rfind("Could not start:", 0) == 0 || game.play_detail == "The game could not start.")+ NotifyPlayStopped(id, "The game could not start. Open Logs in Settings for details.");+ else if (game.play_detail == "The game's PS5 title may still be running. Close it, then press Play." ||+ game.play_detail == "Choose which Cloud saves to keep, or press Play again to start without syncing." ||+ game.play_detail == "Cloud saves could not be checked. Press Play again to start without syncing.")+ NotifyPlayStopped(id, game.play_detail);+ }if (before == state_.runtime_games.end()) continue;const auto* known = find_game(state_, id);const std::string title = known ? known->title : "The game";@@ -2724,7 +2735,7 @@ bool Simulation::scenario(const std::string& name) {state_.navigation.detail_id = 900001;state_.navigation.selected_game_id = 900001;if (auto* installation = find_installation(state_, 900001)) installation->runtime_ready = false;- state_.navigation.focus_key = "details-runtime";+ state_.navigation.focus_key = "details-play";} else if (name == "launch-failure" || name == "crash" || name == "stop-failure") {state_.navigation.route = Route::Session;state_.session_game_id = 900001;@@ -3615,87 +3626,63 @@ void Simulation::rebuild_view() {const bool installed = installation && (live() || installation->installed_bytes > 0);if (!live()) {auto& primary = row(installed ? "details-play" : "details-install", RowKind::Action,- installed ? (installation->runtime_ready ? "Play" : "Runtime unavailable") : "Install",- installed ? (installation->runtime_ready ? "launch" : "runtime-status") : "install");+ installed ? (installation->runtime_ready ? "Play" : "Open Settings") : "Install",+ installed ? (installation->runtime_ready ? "launch" : "details-kit-settings") : "install");primary.enabled = true;}if (live() && game) {// Real install state: an install job, a finished install, or what Steam allows.const auto* job = find_job(state_, std::to_string(game->id));if (installed) {- const auto* volume = find_volume(state_, installation->volume_id);- const std::string label = volume ? volume->label : "its storage";- auto& status = row("details-installed", RowKind::Status,- installation->available ? "Installed" : "Storage disconnected", "");- status.value = installation->installed_bytes > 0 ? format_bytes(installation->installed_bytes) : "";- status.subtitle = installation->available ? "On " + label : "Connect " + label + " to use this game";+ if (!installation->available) {+ const auto* volume = find_volume(state_, installation->volume_id);+ auto& status = row("details-installed", RowKind::Status, "Storage disconnected", "");+ status.subtitle = "Connect " + (volume ? volume->label : std::string("its storage")) + " to use this game";+ status.enabled = false;+ }if (installation->available) {- // Play the game's own PS5 title. A game that is not prepared yet is prepared- // first and then starts, so the player never has to prepare it by hand.- // One button does the next useful thing: Play, preparing, updating or repairing the- // PS5 title first when it needs it, or Resume / Retry / Check again when the title needs- // the player's attention.+ // The primary action says what pressing does; setup facts and a single+ // player-facing hint carry its state without repeating technical diagnostics.const auto play_game = state_.runtime_games.find(game->id);if (play_game != state_.runtime_games.end()) {const auto& value = play_game->second;+ const bool kit_update = value.status == "Kit update available" || value.status == "Update available";+ const bool no_kit = value.status == "No kit";const bool prepares_first = !value.ready && value.can_prepare &&- (value.status == "Not prepared" || value.status == "Update available" ||- value.status == "Needs repair");- const std::string attention = !value.can_prepare ? ""- : value.status == "Removal incomplete" || value.status == "Failed" ? "Retry"- : value.status == "Needs recovery" ? "Resume"- : value.status == "Registration pending" ? "Check again" : "";- const bool enabled = value.can_play || prepares_first || value.awaiting_registration ||- !attention.empty();- auto& play = row("details-play", RowKind::Action, attention.empty() ? "Play" : attention,- value.awaiting_registration ? "quit-to-home"- : !attention.empty() ? (value.status == "Removal incomplete" ? "runtime-remove-retry"- : "runtime-prepare")- : enabled ? "runtime-play" : "");- // Otherwise Play names what holds it (Preparing, Update available…); the PS5 title row says why.- play.value = !value.play_status.empty() || value.ready || prepares_first ? value.play_status- : value.status;+ (value.status == "Not prepared" || kit_update || value.status == "Needs repair");+ const bool recovery = value.status == "Needs recovery" || value.status == "Failed";+ const bool removing = value.status == "Removal incomplete";+ const bool pending = value.status == "Registration pending";+ const bool attention = value.can_prepare && (recovery || removing || pending);+ const bool enabled = no_kit || value.can_play || prepares_first || value.awaiting_registration || attention;+ auto& play = row("details-play", RowKind::Action,+ no_kit ? "Open Settings" : removing ? "Finish removing" : pending ? "Check again"+ : recovery || value.awaiting_registration ? "Finish setup" : "Play",+ no_kit ? "details-kit-settings" : value.awaiting_registration ? "quit-to-home"+ : attention ? (removing ? "runtime-remove-retry" : "runtime-prepare")+ : enabled ? "runtime-play" : "");+ play.value = value.awaiting_registration ? "Quits to Home"+ : !value.play_status.empty() ? value.play_status+ : prepares_first ? (kit_update ? "Kit update first" : value.status == "Needs repair" ? "Repairs first" : "Sets up first")+ : value.status == "Preparing" ? value.detail+ : value.status == "Checking" || value.status == "Removing" || value.status == "Unavailable" ? value.status+ : std::string{};+ play.enabled = enabled && value.uninstall_status.empty();if (!value.uninstall_status.empty()) {play.value = value.uninstall_status;play.action.clear();- play.enabled = false;}- play.subtitle = !value.play_detail.empty() ? value.play_detail- : !attention.empty() ? value.detail- : (value.status == "Update available" || value.status == "Needs repair") && prepares_first- ? value.detail- : prepares_first ? "The first start sets the game up and adds it to the PS5 Home screen"- : std::string{};- if (!attention.empty() && value.play_status.empty()) play.value.clear();- if (value.awaiting_registration) {- play.value = "Ready to play";- play.subtitle = "Play quits to the PS5 Home screen, where the game appears";- }- play.enabled = enabled && value.uninstall_status.empty();- // The runtime prepares one game at a time: a Play or Resume held behind another game's- // preparation says so, instead of a greyed button with this game's old status.if (!play.enabled && value.uninstall_status.empty() && value.status != "Preparing") {const auto other = std::find_if(state_.runtime_games.begin(), state_.runtime_games.end(),[&](const auto& entry) { return entry.first != game->id && entry.second.status == "Preparing"; });- if (other != state_.runtime_games.end()) {- const auto* busy = find_game(state_, other->first);- play.value = "Waiting";- play.subtitle = "Waits for " + (busy ? busy->title : std::string("another game")) +- " to finish preparing";- }+ if (other != state_.runtime_games.end()) play.value = "Waiting";}- // A copy or deletion with a known fraction shows a bar and its percentage; other steps- // only their words.if (value.progress) {play.progress = std::max(*value.progress, 0.001F);if (!play.value.empty())play.value = trimmed(play.value.substr(0, play.value.find("…"))) + " " +std::to_string(static_cast<int>(*value.progress * 100.0F)) + "%";}- // A title made with an earlier kit's runtime can be updated without starting the- // game; Play still updates it first. A repair stays on Play: that title is broken.- if (value.status == "Update available" && value.can_prepare && value.uninstall_status.empty())- row("details-update-runtime", RowKind::Action, "Update runtime", "runtime-update");}// Steam Cloud saves: sync on demand; a pending choice opens its dialog.const auto cloud = state_.cloud.find(game->id);@@ -3713,19 +3700,6 @@ void Simulation::rebuild_view() {: "Synced";if (cloud != state_.cloud.end()) saves.subtitle = cloud->second.message;saves.enabled = !busy;- // Per-game runtime: a private bottle and the game's own PS5 title. Its state is the- // note under the install line; Play carries its actions.- const auto runtime_game = state_.runtime_games.find(game->id);- if (runtime_game != state_.runtime_games.end()) {- const auto& value = runtime_game->second;- auto& runtime = row("details-runtime", RowKind::Status, "PS5 title", "");- runtime.value = value.status == "Update available" ? "Runtime update available"- : value.status == "Needs repair" ? "Runtime needs repair" : value.status;- runtime.subtitle = rechosen_after_refusal_.count(game->id) && value.status == "Not prepared"- ? "Play prepares it with your choices from Game settings" : value.detail;- runtime.enabled = false;- if (value.progress) runtime.progress = std::max(*value.progress, 0.001F);- }}} else if (job) {auto& status = row("details-download", RowKind::Action, "Download", "open-downloads");@@ -3759,6 +3733,47 @@ void Simulation::rebuild_view() {row("details-kept-delete", RowKind::Action, "Delete saves", "kept-delete-" + std::to_string(game->id)).dangerous = true;}}+ if (installed) {+ const auto found = state_.runtime_games.find(game->id);+ const auto* runtime = found == state_.runtime_games.end() ? nullptr : &found->second;+ const std::string status = !installation->available ? "Unavailable"+ : runtime && !runtime->uninstall_status.empty() ? "Removing"+ : runtime ? runtime->status : !live() ? (installation->runtime_ready ? "Ready" : "No kit") : "Checking";+ const bool waiting = runtime && runtime->awaiting_registration && installation->available && runtime->uninstall_status.empty();+ const bool kit_update = status == "Kit update available" || status == "Update available";+ const std::string tone = waiting || kit_update ? "busy" : status == "Ready" ? "good"+ : status == "Failed" || status == "No kit" ? "problem"+ : status == "Needs repair" || status == "Needs recovery" || status == "Registration pending" ||+ status == "Removal incomplete" ? "attention" : "quiet";+ auto& setup = row("details-setup", RowKind::Status, "Setup", "");+ setup.value = waiting ? "Waiting for the PS5" : kit_update ? "Kit update available"+ : status == "Not prepared" ? "Not set up" : status == "Needs recovery" ? "Interrupted"+ : status == "Registration pending" ? "Not confirmed" : status == "Removal incomplete" ? "Removing"+ : status == "Preparing" && runtime && !runtime->detail.empty() ? runtime->detail : status;+ setup.tone = tone;+ setup.enabled = false;+ std::string hint;+ if (waiting) hint = "Quit Playden and " + game->title + " appears on the PS5 Home screen.";+ else if (status == "Registration pending") hint = "The PS5 hasn't confirmed " + game->title + " yet.";+ else if (status == "Removal incomplete") hint = "Removing " + game->title + " from the PS5 Home screen stopped partway.";+ else if (status == "Needs repair") hint = "Some of " + game->title + "'s setup files changed.";+ else if (status == "No kit") hint = "Playden needs its compatibility kit to set up games.";+ else if (runtime && (status == "Needs recovery" || status == "Failed")) {+ const bool stopped = status == "Needs recovery";+ if (runtime->failure_code.rfind("kit-", 0) == 0 ||+ runtime->detail == "kit source is missing, linked, or has wrong mode")+ hint = "The compatibility kit is damaged. Reinstall it.";+ else if (runtime->failure_code == "space-unavailable" ||+ runtime->detail == "insufficient verified free space for package copy")+ hint = stopped ? "Setup stopped early: console storage was full." : "Setup failed: console storage was full.";+ else hint = stopped ? "Setup stopped early." : "Setup failed.";+ }+ if (!hint.empty()) {+ auto& note = row("details-hint", RowKind::Status, hint, "");+ note.tone = tone;+ note.enabled = false;+ }+ }row("details-favorite", RowKind::Toggle, "Favorite", "favorite").selected = game && state_.library.favorites.contains(game->id);if (!live()) row("details-simulate-launch", RowKind::Action, "Simulate launch", "launch");row("details-more", RowKind::Action, "More", "context");@@ -4086,7 +4101,7 @@ void Simulation::rebuild_view() {return std::any_of(view_.rows.begin(), view_.rows.end(), [key](const ViewRow& item) { return item.key == key; });};const auto play = std::find_if(view_.rows.begin(), view_.rows.end(), [](const ViewRow& item) { return item.key == "details-play"; });- const bool awaiting_play = has("details-installed") && (play == view_.rows.end() || !play->enabled);+ const bool awaiting_play = has("details-setup") && (play == view_.rows.end() || !play->enabled);if (!has("details-checking") && !awaiting_play) details_primary_pending_ = false;}auto focused = std::find_if(view_.rows.begin(), view_.rows.end(), [this](const ViewRow& item) { return item.key == state_.navigation.focus_key; });@@ -5286,7 +5301,13 @@ void Simulation::activate() {push_notice({"runtime-cleanup", "Unused game settings data cleaned up", "", false, kLiveNoticeSeconds, false, ""});} else if (live() && action_name == "runtime-play") {const auto id = state_.navigation.detail_id.value_or(state_.navigation.selected_game_id);- if (id != 0) pending_runtime_play_requests_.push_back(id);+ if (id != 0) {+ // A new attempt may fail for the same reason; only background refreshes+ // should be deduplicated against the previous outcome.+ if (auto previous = state_.runtime_games.find(id); previous != state_.runtime_games.end())+ previous->second.play_detail.clear();+ pending_runtime_play_requests_.push_back(id);+ }} 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);@@ -5981,6 +6002,14 @@ void Simulation::activate() {{"inject-qr-approved", "inject-qr-expired", "inject-qr-failure", "inject-qr-denied", "advance-clock", "cancel"}, 0, false});else if (action_name == "simulation-controls") open_modal({"simulation-controls", "Simulation controls", state_.navigation.focus_key,{"advance-clock", "inject-download-failed", "inject-verification-failed", "inject-uninstall-failed", "inject-storage-disconnect", "inject-storage-reconnect", "inject-controller-disconnect", "inject-controller-reconnect", "inject-launch-failure", "inject-stop-failure", "inject-runtime-failed", "inject-save-failure", "inject-logs-loading", "inject-logs-empty", "inject-logs-failure", "inject-logs-ready", "inject-delayed-art", "inject-failed-art", "inject-library-refresh", "inject-startup-loading", "cancel"}, 0, false});+ else if (action_name == "details-kit-settings") {+ state_.navigation.route = Route::Settings;+ state_.navigation.settings_rail_focused = false;+ state_.navigation.focus_key = "settings-about";+ settings_focus_section_ = "About";+ open_modal({"about", live() ? "About Playden" : "About Playden UI simulation", "settings-about",+ {"about-version", "about-build", "about-framework", "about-platform", "about-kit", "about-kit-source", "about-back"}, 4, false});+ }else if (action_name == "about") open_modal({"about", live() ? "About Playden" : "About Playden UI simulation", state_.navigation.focus_key,{"about-version", "about-build", "about-framework", "about-platform", "about-kit", "about-kit-source", "about-back"}, 0, false});else if (action_name == "about-back") close_modal();diff --git a/src/homebrew/simulation.hpp b/src/homebrew/simulation.hppindex d8584c4..28056e6 100644--- a/src/homebrew/simulation.hpp+++ b/src/homebrew/simulation.hpp@@ -158,6 +158,7 @@ struct LiveRuntimeGame {// Save backups kept for the game and when the newest was made (Unix time).std::size_t save_backups = 0;std::int64_t latest_save_backup = 0;+ std::string failure_code; // Recorded preparation failure; detail remains available in diagnostics.};// Saves and settings kept from an uninstalled game (its private bottle).struct LiveKeptBottle {diff --git a/src/homebrew/view.cpp b/src/homebrew/view.cppindex 53af572..7bc712c 100644--- a/src/homebrew/view.cpp+++ b/src/homebrew/view.cpp@@ -2231,11 +2231,12 @@ class Render::Impl}// A label over its value, as the macOS details metadata.- void detail_cell(std::string_view label, std::string_view value, float x, float y, float width)+ void detail_cell(std::string_view label, std::string_view value, float x, float y, float width,+ gfx::Color tone = kText){ui::text(scene_, fonts_.display, ui::upper(label), x, y + 14.0F, 17.0F, kSecondary, gfx::Align::left, 1.7F);const ui::FontRef &face = font_for(value, fonts_.semibold);- ui::text(scene_, face, face.font->fit(value, 26.0F, width), x, y + 50.0F, 26.0F, kText);+ ui::text(scene_, face, face.font->fit(value, 26.0F, width), x, y + 50.0F, 26.0F, tone);}// The macOS game page: the game's hero across the top with its logo, a row of actions,@@ -2696,15 +2697,29 @@ class Render::Implx += width + 26.0F;}- // Left column: install status, the description and genres.+ // The setup hint belongs to the actions, with a smaller face and a coloured dot.+ // Leave a clear gap before the description; ready games have no hint.float y = 774.0F;+ for (const ViewRow &row : view.rows)+ {+ if (row.key != "details-hint" || row.title.empty())+ continue;+ scene_.circle(kSafeX + 6.0F, 752.0F, 6.0F, save_tone(row.tone));+ const ui::FontRef &face = font_for(row.title, fonts_.semibold);+ ui::text(scene_, face, face.font->fit(row.title, 23.0F, 1100.0F), kSafeX + 26.0F, 760.0F,+ 23.0F, kText);+ y += 52.0F;+ break;+ }+ // Non-installed games retain their download, destination and kept-save notes.if (!state.simulation_mode){std::string note;gfx::Color tone = kSecondary;for (const ViewRow &row : view.rows){- if (row.key.rfind("details-", 0) != 0 || row.key == "details-kept")+ if (row.key.rfind("details-", 0) != 0 || row.key == "details-kept" ||+ row.key == "details-hint" || row.key == "details-setup")continue;if (row.kind == RowKind::Status){@@ -2750,38 +2765,11 @@ class Render::Impl22.0F, kSecondary);y += 42.0F;}- // The game's PS5 title state, under the install note.- for (const ViewRow &row : view.rows)- {- if (row.key != "details-runtime" || row.subtitle.empty())- continue;- // Its percentage is on the Play button.- const std::string runtime_note = "PS5 title · " + row.value + " · " + row.subtitle;- ui::text(scene_, fonts_.semibold, fit(fonts_.semibold, runtime_note, 22.0F, 1128.0F), kSafeX, y + 4.0F,- 22.0F, kSecondary);- y += 42.0F;- }- // What Play will do first, or why it stopped ("Could not start: …"), under the PS5 title note.- std::string runtime_reason;- for (const ViewRow &row : view.rows)- if (row.key == "details-runtime")- runtime_reason = row.subtitle;- for (const ViewRow &row : view.rows)- {- if (row.key != "details-play" || row.subtitle.empty() || row.subtitle == runtime_reason)- continue;- const bool stopped = row.subtitle.rfind("Could not start", 0) == 0 ||- row.subtitle.rfind("The game could not", 0) == 0;- ui::text(scene_, fonts_.semibold, fit(fonts_.semibold, row.subtitle, 22.0F, 1128.0F), kSafeX, y + 4.0F,- 22.0F, stopped ? kAmber : kSecondary);- y += 42.0F;- }}const std::string description = game == nullptr || game->description.empty() ?"Description unavailable." : game->description;const auto detail_scroll = state.navigation.scroll_offsets.find("details-content");- // The left column ends above the footer hints. Live pages carry status lines above the- // description, so it shows two lines a page (the model pages by the same size).+ // Keep description pagination aligned with the model and above the footer hints.constexpr float column_bottom = 975.0F;const int description_lines = state.simulation_mode ? 3 : 2;const std::size_t page_size = DetailsDescriptionPage(state.simulation_mode);@@ -2859,15 +2847,23 @@ class Render::Implcontroller.front() = static_cast<char>(std::toupper(static_cast<unsigned char>(controller.front())));constexpr float left = 1304.0F;constexpr float right = 1584.0F;- detail_cell("Playtime", playtime, left, 754.0F, 240.0F);- detail_cell("Size", size, right, 754.0F, 240.0F);- detail_cell("Store", game->source.empty() ? "Steam" : game->source, left, 830.0F, 240.0F);- detail_cell("Location", location, right, 830.0F, 240.0F);- detail_cell("Compatibility", compat, left, 906.0F, 240.0F);- if (game->last_played)- detail_cell("Last played", relative_time(game->last_played, state.clock_ticks), right, 906.0F, 240.0F);+ const auto setup = std::find_if(view.rows.begin(), view.rows.end(), [](const ViewRow &row) {+ return row.key == "details-setup";+ });+ const float facts_top = setup == view.rows.end() ? 754.0F : 694.0F;+ detail_cell("Playtime", playtime, left, facts_top, 240.0F);+ detail_cell("Size", size, right, facts_top, 240.0F);+ detail_cell("Store", game->source.empty() ? "Steam" : game->source, left, facts_top + 76.0F, 240.0F);+ detail_cell("Location", location, right, facts_top + 76.0F, 240.0F);+ detail_cell("Compatibility", compat, left, facts_top + 152.0F, 240.0F);+ if (game->last_played && setup == view.rows.end())+ detail_cell("Last played", relative_time(game->last_played, state.clock_ticks), right,+ facts_top + 152.0F, 240.0F);else- detail_cell("Controller", controller, right, 906.0F, 240.0F);+ detail_cell("Controller", controller, right, facts_top + 152.0F, 240.0F);+ if (setup != view.rows.end())+ detail_cell("Setup", setup->value, left, facts_top + 228.0F, 520.0F,+ setup->tone.empty() || setup->tone == "quiet" ? kText : save_tone(setup->tone));}void draw_session(ui::Canvas &, const ViewData &view, const State &state)diff --git a/tests/homebrew_library_graphical_test.cpp b/tests/homebrew_library_graphical_test.cppindex 8707abb..e5a5b46 100644--- a/tests/homebrew_library_graphical_test.cpp+++ b/tests/homebrew_library_graphical_test.cpp@@ -185,7 +185,7 @@ int main(int argc,char** argv) {capture_live("details-preparing-progress.png");}{- // Prepared and waiting for the PS5: Play reads Ready to play, and the prompt offers it.+ // Prepared and waiting for the PS5: Finish setup explains quitting to Home.LiveRuntimeGame waiting; waiting.game_id=42; waiting.status="Waiting for the PS5"; waiting.has_title=true;waiting.awaiting_registration=true; waiting.can_prepare=true;waiting.detail="Waiting for the PS5, which adds the game to Home when Playden quits";@@ -195,6 +195,18 @@ int main(int argc,char** argv) {capture_live("ready-to-play-prompt.png");assert(live.action("focus:ready-later") && live.action("cross"));}+ // The details state gallery covers button widths, hint colours and the seventh fact.+ for (const auto& [status, filename] : std::vector<std::pair<std::string, std::string>>{+ {"Not prepared", "details-not-prepared.png"}, {"Kit update available", "details-kit-update.png"},+ {"Needs repair", "details-needs-repair.png"}, {"Needs recovery", "details-interrupted.png"},+ {"Failed", "details-failed.png"}, {"Registration pending", "details-not-confirmed.png"},+ {"Removal incomplete", "details-removing.png"}, {"No kit", "details-no-kit.png"}}) {+ LiveRuntimeGame state; state.game_id=42; state.status=status;+ state.can_prepare=status!="No kit"; state.has_title=status!="No kit" && status!="Not prepared";+ if (status=="Needs recovery" || status=="Failed") state.detail="insufficient verified free space for package copy";+ live.UpdateRuntime(RuntimeState::Ready, {state});+ capture_live(filename.c_str());+ }ready.can_play=true; ready.play_status.clear();live.UpdateRuntime(RuntimeState::Ready, {ready});assert(live.action("focus:details-more") && live.action("cross"));diff --git a/tests/homebrew_library_model_test.cpp b/tests/homebrew_library_model_test.cppindex ecd139c..62742a7 100644--- a/tests/homebrew_library_model_test.cpp+++ b/tests/homebrew_library_model_test.cpp@@ -296,33 +296,30 @@ void live_install_requests_and_projection() {requests = model.TakeInstallRequests();check(requests.size() == 1 && requests[0].kind == playden::homebrew::InstallRequestKind::Pause, "Pause goes to the service");model.UpdateInstalls({}, {{42, 600'000'000}});- check(model.action("details:42") && has_row(model, "details-installed"), "a finished install shows Installed");+ check(model.action("details:42") && has_row(model, "details-setup"), "a finished install shows setup readiness");check(!has_row(model, "details-runtime"), "no runtime row before the runtime host reports");model.UpdateRuntime(playden::homebrew::RuntimeState::Ready,{{42, "Not prepared", "Makes a private bottle and its own PS5 title", true, false}});- check(model.action("details:42") && has_row(model, "details-runtime"), "an installed game offers Prepare");+ check(model.action("details:42") && has_row(model, "details-play"), "an installed game offers Play");const auto* play = find_row(model, "details-play");check(play && play->enabled && play->action == "runtime-play", "Play is offered before the game is prepared");activate(model, "details-play");const auto plays = model.TakeRuntimePlayRequests();check(plays.size() == 1 && plays[0] == 42, "Play on an unprepared game goes to the controller, which prepares first");- // The PS5 title's state is a note under the install line, not a second button: Play prepares.- const auto* runtime_note = find_row(model, "details-runtime");- check(runtime_note && runtime_note->kind == playden::homebrew::RowKind::Status && runtime_note->action.empty() &&- runtime_note->value == "Not prepared",- "the PS5 title state is a note");+ check(find_row(model, "details-setup") && find_row(model, "details-setup")->value == "Not set up",+ "setup readiness appears as a fact");model.RequestRuntimePrepare(42);check(model.TakeRuntimePrepareRequests().size() == 1, "Prepare can be queued without a button press");model.UpdateRuntime(playden::homebrew::RuntimeState::Ready, {{42, "Preparing", "Copying the bottle", false, false}});check(model.action("details:42"), "details reopen");- check(find_row(model, "details-play")->progress == 0.0F && find_row(model, "details-runtime")->progress == 0.0F,+ check(find_row(model, "details-play")->progress == 0.0F,"a step without a known fraction shows no bar");{playden::homebrew::LiveRuntimeGame copying{42, "Preparing", "Copying the Windows environment", false, false};copying.progress = 0.42F;model.UpdateRuntime(playden::homebrew::RuntimeState::Ready, {copying});- check(find_row(model, "details-play")->progress == 0.42F && find_row(model, "details-runtime")->progress == 0.42F,- "a copy with a known fraction shows it on Play and the PS5 title");+ check(find_row(model, "details-play")->progress == 0.42F,+ "a copy with a known fraction shows it on Play");model.UpdateRuntime(playden::homebrew::RuntimeState::Ready, {{42, "Preparing", "Copying the bottle", false, false}});}check(model.state().installations.size() == 1 && !model.state().installations[0].runtime_ready, "preparing is not ready");@@ -404,7 +401,7 @@ void live_install_volumes() {// Details show where a game is and where a new install goes.check(model.action("details:42"), "installed game opens");const auto* installed = find_row(model, "details-installed");- check(installed && installed->title == "Installed" && installed->subtitle == "On Console storage", "an installed game names its drive");+ check(!installed, "installed size and location are shown only in facts");check(model.action("details:44"), "game on an absent drive opens");installed = find_row(model, "details-installed");check(installed && installed->title == "Storage disconnected" && installed->subtitle == "Connect USB drive to use this game",@@ -963,20 +960,23 @@ void live_uninstall_removes_title_and_keeps_saves() {check(requests.size() == 1 && requests[0].kind == InstallRequestKind::Uninstall && requests[0].game_id == 42 &&requests[0].delete_saves, "Uninstall carries the saves choice");- // While it runs, Play waits; an interrupted removal offers Retry on the PS5 title row.+ // While it runs, Play waits; an interrupted removal offers Finish removing.ready.uninstall_status = "Removing PS5 title…"; ready.can_play = false;model.UpdateRuntime(playden::homebrew::RuntimeState::Ready, {ready, plain});check(model.action("details:42"), "details reopen");const auto* play = find_row(model, "details-play");check(play && !play->enabled && play->value == "Removing PS5 title…", "Play shows the uninstall in progress");+ check(find_row(model, "details-setup") && find_row(model, "details-setup")->value == "Removing",+ "active uninstall replaces Ready with Removing in setup facts");+ check(!has_row(model, "details-hint"), "active uninstall has no interrupted setup hint");LiveRuntimeGame stuck;stuck.game_id = 42; stuck.status = "Removal incomplete"; stuck.can_prepare = true; stuck.has_title = true;stuck.detail = "The console has not confirmed that the PS5 title is gone. Retry checks again.";model.UpdateRuntime(playden::homebrew::RuntimeState::Ready, {stuck, plain});check(model.action("details:42"), "details reopen");const auto* retry = find_row(model, "details-play");- check(retry && retry->title == "Retry" && retry->enabled && retry->action == "runtime-remove-retry",- "an unfinished removal turns Play into Retry");+ check(retry && retry->title == "Finish removing" && retry->enabled && retry->action == "runtime-remove-retry",+ "an unfinished removal offers Finish removing");activate(model, "details-play");requests = model.TakeInstallRequests();check(requests.size() == 1 && requests[0].kind == InstallRequestKind::Uninstall && !requests[0].delete_saves,@@ -1504,11 +1504,11 @@ void live_ready_to_play_quits_to_home() {waiting.detail = "Waiting for the PS5, which adds the game to Home when Playden quits";model.UpdateRuntime(RuntimeState::Ready, {waiting});- // Details: Play is ready and quits to Home without asking; the PS5 title row checks again.+ // Details: Finish setup quits to Home without asking; SETUP explains the pending registration.check(model.action("details:42"), "details open");const auto* play = find_row(model, "details-play");- check(play && play->enabled && play->action == "quit-to-home" && play->value == "Ready to play", "Play reads Ready to play");- check(find_row(model, "details-runtime")->value == "Waiting for the PS5", "the note says the title waits for the PS5");+ check(play && play->enabled && play->action == "quit-to-home" && play->title == "Finish setup" && play->value == "Quits to Home", "Finish setup explains quitting to Home");+ check(find_row(model, "details-setup")->value == "Waiting for the PS5", "setup says the title waits for the PS5");check(model.state().navigation.focus_key == "details-play", "focus rests on Play");// Its saves sync first (#50): Play waits in a dialog, then quits once they are in step.model.UpdateCloud({{42, CloudStatus::UpToDate, "Saves are up to date"}});@@ -1648,8 +1648,8 @@ void live_ready_to_play_quits_to_home() {check(held.action("details:42"), "details open");const auto* held_play = find_row(held, "details-play");check(held_play && !held_play->enabled && held_play->value == "Waiting" &&- held_play->subtitle == "Waits for Other to finish preparing",- "a held Resume names the game it waits for");+ held_play->subtitle.empty(),+ "a held setup action waits without adding a second status line");auto dropped = make_live();dropped.UpdateAccount({AuthState::SignedIn, "123", "Synthetic", {}, {}, true});check(dropped.UpdateLibrary({{game(42, "Synthetic")}, false, {}, false, false, {}}), "library loaded");@@ -1697,56 +1697,139 @@ void live_play_does_the_next_useful_thing() {model.UpdateAccount({AuthState::SignedIn, "123", "Synthetic", {}, {}, true});check(model.UpdateLibrary({{game(42, "Synthetic")}, false, {}, false, false, {}}), "library loaded");model.UpdateInstalls({}, {{42, 600'000'000}});- const auto show = [&](const std::string& status, bool ready, bool can_prepare) {- LiveRuntimeGame value; value.game_id = 42; value.status = status; value.detail = status + " detail";- value.ready = ready; value.can_play = ready; value.can_prepare = can_prepare; value.has_title = true;- model.UpdateRuntime(RuntimeState::Ready, {value});- check(model.action("details:42"), "details open");- return find_row(model, "details-play");+ struct Case {+ const char* status; const char* label; const char* value; const char* hint;+ const char* setup; const char* tone; const char* action;+ };+ const std::vector<Case> cases{+ {"Ready", "Play", "", "", "Ready", "good", "runtime-play"},+ {"Not prepared", "Play", "Sets up first", "", "Not set up", "quiet", "runtime-play"},+ {"Kit update available", "Play", "Kit update first", "", "Kit update available", "busy", "runtime-play"},+ {"Needs repair", "Play", "Repairs first", "Some of Synthetic's setup files changed.", "Needs repair", "attention", "runtime-play"},+ {"Needs recovery", "Finish setup", "", "Setup stopped early.", "Interrupted", "attention", "runtime-prepare"},+ {"Waiting for the PS5", "Finish setup", "Quits to Home", "Quit Playden and Synthetic appears on the PS5 Home screen.", "Waiting for the PS5", "busy", "quit-to-home"},+ {"Failed", "Finish setup", "", "Setup failed.", "Failed", "problem", "runtime-prepare"},+ {"Registration pending", "Check again", "", "The PS5 hasn't confirmed Synthetic yet.", "Not confirmed", "attention", "runtime-prepare"},+ {"Removal incomplete", "Finish removing", "", "Removing Synthetic from the PS5 Home screen stopped partway.", "Removing", "attention", "runtime-remove-retry"},+ {"No kit", "Open Settings", "", "Playden needs its compatibility kit to set up games.", "No kit", "problem", ""},};- // An update or a repair happens on the way to the game: Play stays Play and says so.- for (const std::string status : {"Update available", "Needs repair"}) {- const auto* play = show(status, false, true);- check(play && play->title == "Play" && play->enabled && play->action == "runtime-play" &&- play->subtitle == status + " detail",- "Play updates or repairs first, saying so");- check(find_row(model, "details-runtime")->value ==- (status == "Update available" ? "Runtime update available" : "Runtime needs repair"),- "the note names the runtime, not the game");- activate(model, "details-play");- check(model.TakeRuntimePlayRequests() == std::vector<playden::GameId>{42}, "Play goes to the controller");- // Only an update can happen without starting the game; a broken title is repaired by Play.- const auto* update = find_row(model, "details-update-runtime");- if (status == "Update available") {- check(update && update->title == "Update runtime" && update->enabled && update->action == "runtime-update",- "Update runtime sits beside Play");- activate(model, "details-update-runtime");- check(model.TakeRuntimePrepareRequests() == std::vector<playden::GameId>{42} &&- model.TakeRuntimePlayRequests().empty(),- "Update runtime updates without starting the game");- check(model.state().navigation.focus_key == "details-play", "focus moves to Play, which shows the progress");+ for (const auto& expected : cases) {+ LiveRuntimeGame state; state.game_id = 42; state.status = expected.status;+ state.detail = "raw technical detail for bug reports";+ state.ready = state.status == "Ready"; state.can_play = state.ready;+ state.can_prepare = !state.ready && state.status != "No kit";+ state.has_title = state.status != "No kit" && state.status != "Not prepared";+ state.awaiting_registration = state.status == "Waiting for the PS5";+ model.UpdateRuntime(RuntimeState::Ready, {state});+ check(model.action("details:42"), "details open");+ const auto* play = find_row(model, "details-play");+ check(play && play->enabled && play->title == expected.label && play->value == expected.value,+ (state.status + ": main action names the next step").c_str());+ check(play->subtitle.empty(), "main action does not repeat the hint or technical detail");+ const auto* hint = find_row(model, "details-hint");+ if (std::string(expected.hint).empty()) check(!hint, "ready and routine setup have no attention hint");+ else check(hint && hint->title == expected.hint && hint->tone == expected.tone && !hint->enabled,+ (state.status + ": one plain, coloured hint").c_str());+ const auto* setup = find_row(model, "details-setup");+ check(setup && setup->value == expected.setup && setup->tone == expected.tone && !setup->enabled,+ (state.status + ": setup fact states readiness").c_str());+ check(!has_row(model, "details-runtime") && !has_row(model, "details-installed") &&+ !has_row(model, "details-update-runtime"), "details avoid duplicated facts and separate kit update action");+ if (state.status == "No kit") {+ activate(model, "details-play");+ check(model.state().navigation.route == Route::Settings, "missing kit opens Settings");+ check(model.TakeRuntimePlayRequests().empty() && model.TakeRuntimePrepareRequests().empty(),+ "missing kit does not queue an impossible preparation");+ check(model.state().navigation.focus_key == "about-kit", "missing kit opens Compatibility kit in About");+ while (!model.state().navigation.modals.empty()) check(model.action("circle"), "close kit information");} else {- check(!update, "a repair offers no separate button");+ check(play->action == expected.action, "redesigned action preserves existing behavior");+ if (play->action == "runtime-play" || play->action == "runtime-prepare") {+ const bool starts = play->action == "runtime-play";+ activate(model, "details-play");+ check((starts ? model.TakeRuntimePlayRequests() : model.TakeRuntimePrepareRequests()) ==+ std::vector<playden::GameId>{42}, "action requests the selected game");+ }+ }+ }+ // Raw failures must not leak into the page, even when they contain paths or jargon.+ for (const std::string status : {"Needs recovery", "Failed"}) {+ for (const auto& [detail, expected] : std::vector<std::pair<std::string, std::string>>{+ {"insufficient verified free space for package copy", status == "Failed"+ ? "Setup failed: console storage was full." : "Setup stopped early: console storage was full."},+ {"kit source is missing, linked, or has wrong mode", "The compatibility kit is damaged. Reinstall it."},+ {"unknown failure /private/technical/path", status == "Failed" ? "Setup failed." : "Setup stopped early."},+ {"", status == "Failed" ? "Setup failed." : "Setup stopped early."}}) {+ LiveRuntimeGame state; state.game_id = 42; state.status = status; state.detail = detail; state.can_prepare = true;+ model.UpdateRuntime(RuntimeState::Ready, {state});+ check(model.action("details:42"), "failed details open");+ const auto* hint = find_row(model, "details-hint");+ check(hint && hint->title == expected, (status + ": " + detail + " -> " + (hint ? hint->title : "missing hint")).c_str());+ check(model.state().runtime_games.at(42).detail == detail, "raw failure remains available for diagnostics");+ }+ }+ for (const std::string status : {"Needs recovery", "Failed"}) {+ for (const std::string code : {"space-unavailable", "kit-source", "kit-invalid-mode", "unknown-code"}) {+ LiveRuntimeGame state; state.game_id = 42; state.status = status; state.can_prepare = true;+ state.detail = "technical failure context"; state.failure_code = code;+ model.UpdateRuntime(RuntimeState::Ready, {state});+ const std::string expected = code == "space-unavailable"+ ? (status == "Failed" ? "Setup failed: console storage was full." : "Setup stopped early: console storage was full.")+ : code.starts_with("kit-") ? "The compatibility kit is damaged. Reinstall it."+ : status == "Failed" ? "Setup failed." : "Setup stopped early.";+ check(find_row(model, "details-hint") && find_row(model, "details-hint")->title == expected,+ "recorded failure code determines the plain hint");}}- // While the runtime cannot act on it (queued, being played, uninstalling), there is no Update button.- show("Update available", false, false);- check(!find_row(model, "details-update-runtime"), "no Update runtime while the game cannot be prepared");- // A title that needs the player's attention turns Play into that action.- for (const auto& [status, label] : std::vector<std::pair<std::string, std::string>>{- {"Needs recovery", "Resume"}, {"Failed", "Retry"}, {"Registration pending", "Check again"}}) {- const auto* play = show(status, false, true);- check(play && play->title == label && play->enabled && play->action == "runtime-prepare" &&- play->subtitle == status + " detail",- "Play becomes the attention action");- activate(model, "details-play");- check(model.TakeRuntimePrepareRequests() == std::vector<playden::GameId>{42}, "the action goes to the runtime host");+ LiveRuntimeGame preparing; preparing.game_id = 42; preparing.status = "Preparing";+ preparing.detail = "Step 3 of 6 · Copying the Windows environment";+ model.UpdateRuntime(RuntimeState::Ready, {preparing});+ check(find_row(model, "details-play") && !find_row(model, "details-play")->enabled, "preparing cannot start again");+ check(find_row(model, "details-setup") && find_row(model, "details-setup")->value == preparing.detail,+ "setup fact uses the existing preparation progress words");+ for (const auto& [runtime_state, status] : std::vector<std::pair<RuntimeState, std::string>>{+ {RuntimeState::Checking, "Checking"}, {RuntimeState::Unavailable, "Unavailable"}}) {+ LiveRuntimeGame transient; transient.game_id = 42; transient.status = status;+ model.UpdateRuntime(runtime_state, {transient});+ check(find_row(model, "details-setup") && find_row(model, "details-setup")->value == status,+ "transient runtime availability has a setup fact");+ check(!find_row(model, "details-play")->enabled && !has_row(model, "details-hint"),+ "transient runtime availability does not offer an impossible action or attention hint");}- // Ready plays; while the runtime cannot act, Play is off and the note says why.- check(show("Ready", true, false)->title == "Play" && find_row(model, "details-play")->enabled, "Ready plays");- const auto* off = show("Preparing", false, false);- check(off && off->title == "Play" && !off->enabled, "nothing to do leaves Play off");- check(find_row(model, "details-runtime")->kind == playden::homebrew::RowKind::Status, "the PS5 title is a note");+ model.UpdateInstalls({}, {});+ check(!has_row(model, "details-setup") && !has_row(model, "details-hint"), "uninstalled games have no setup facts or hints");+}++void live_launch_failure_remains_visible_without_a_details_status_line() {+ using playden::homebrew::LiveRuntimeGame;+ using playden::homebrew::RuntimeState;+ auto model = make_live();+ model.UpdateAccount({AuthState::SignedIn, "123", "Synthetic", {}, {}, true});+ check(model.UpdateLibrary({{game(42, "Synthetic")}, false, {}, false, false, {}}), "library loaded");+ model.UpdateInstalls({}, {{42, 600'000'000}});+ LiveRuntimeGame ready; ready.game_id = 42; ready.status = "Ready"; ready.ready = true; ready.can_play = true;+ model.UpdateRuntime(RuntimeState::Ready, {ready});+ check(model.action("details:42"), "details open");+ ready.play_detail = "Could not start: technical /private/launch/path";+ model.UpdateRuntime(RuntimeState::Ready, {ready});+ check(model.state().navigation.modals.size() == 1 && model.state().navigation.modals.back().title == "Can't play",+ "a failed launch remains visible after removing the details subtitle");+ check(model.state().navigation.modals.back().body.find("/private/launch/path") == std::string::npos,+ "launch failure notice keeps technical paths out of player copy");+ activate(model, "alert-ok");+ model.UpdateRuntime(RuntimeState::Ready, {ready});+ check(model.state().navigation.modals.empty(), "an unchanged launch refusal is not repeated on refresh");+ check(!has_row(model, "details-hint"), "a ready game's launch refusal does not invent a setup hint");+ activate(model, "details-play");+ check(model.TakeRuntimePlayRequests() == std::vector<playden::GameId>{42}, "retry requests another play");+ model.UpdateRuntime(RuntimeState::Ready, {ready});+ check(model.state().navigation.modals.size() == 1, "a fresh attempt can report the same refusal again");+ activate(model, "alert-ok");+ ready.play_detail = "Cloud saves could not be checked. Press Play again to start without syncing.";+ model.UpdateRuntime(RuntimeState::Ready, {ready});+ check(model.state().navigation.modals.size() == 1 &&+ model.state().navigation.modals.back().body.find(ready.play_detail) != std::string::npos,+ "Cloud retry guidance remains reachable after removing the details subtitle");}void live_store_details_fill_the_description() {@@ -2101,6 +2184,7 @@ void live_sign_in_on_full_storage_offers_uninstall() {}int main() {+ live_launch_failure_remains_visible_without_a_details_status_line();live_download_reorder_reaches_service();live_play_does_the_next_useful_thing();live_store_details_fill_the_description();diff --git a/tests/homebrew_runtime_host_test.cpp b/tests/homebrew_runtime_host_test.cppindex 38b8367..c61442f 100644--- a/tests/homebrew_runtime_host_test.cpp+++ b/tests/homebrew_runtime_host_test.cpp@@ -820,6 +820,8 @@ void RetryAfterKitRespinBindsTheNewArtifacts() {return !s.preparing_app && !s.installs.empty() && s.installs[0].state == PreparationState::kFailed;}, 60);CHECK(failed.installs[0].state == PreparationState::kFailed);+ CHECK(failed.installs[0].failure_code == "space-unavailable");+ CHECK(failed.installs[0].failure == "insufficient verified free space for package copy");host.Shutdown();}const auto rebuilt = SyntheticKit(fixture.root / "kit-rebuilt", "native", "kit-1", 'd', "runtime-neutral", "rev-neutral");