Skip to content

Play your Steam library's Windows games on a jailbroken PS5.

C++

Call the kit the runtime kit everywhere

Leonardo Lobato354d3005ad27
diff --git a/.github/ISSUE_TEMPLATE/install-problem.yml b/.github/ISSUE_TEMPLATE/install-problem.yml
index e60c916..2b85887 100644
--- a/.github/ISSUE_TEMPLATE/install-problem.yml
+++ b/.github/ISSUE_TEMPLATE/install-problem.yml
@@ -20,7 +20,7 @@ body:
label: Where it fails
options:
- Copying Playden to the console (FTP or console_title_deploy.py)
- - Downloading the compatibility kit in Playden
+ - Downloading the runtime kit in Playden
- Copying the kit with console_kit_upload.py
- Playden doesn't start, or stays on the splash screen
- Playden starts and shows an error (runtime, kit or storage)
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index dce07eb..0e54a13 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -129,9 +129,9 @@ python3 tools/console_title_deploy.py --host <PS5 IP> deploy build/homebrew-ps5/
The tool backs up each console file it replaces. `restore` puts a backup back. It never touches game downloads,
logs or user data.
-### The compatibility kit
+### The runtime kit
-Games run with a compatibility kit: the Wine runtime, a prepared bottle template and the per-game title files. The
+Games run with a runtime kit: the Wine runtime, a prepared bottle template and the per-game title files. The
launcher accepts only the kit whose manifest is pinned in `dependencies.lock.json` and `src/runtime/kit_trust.cpp`.
Most people install the kit from a release download. To install a kit on the console:
diff --git a/README.md b/README.md
index c7515b4..1807c38 100644
--- a/README.md
+++ b/README.md
@@ -176,10 +176,10 @@ folders' modes right if they changed.
### The runtime kit
-The runtime kit (the "compatibility kit" in Playden) is what runs Windows games: Wine, Mesa and DXVK. Playden
+The runtime kit is what runs Windows games: Wine, Mesa and DXVK. Playden
downloads the kit its version was made for from this repository's releases, on its first start and whenever the
installed kit isn't that one. It installs in the background, shows on the Queue screen, and games can be prepared
-as soon as it is in place. If you choose Later, or the download fails, Settings › About › Compatibility kit starts
+as soon as it is in place. If you choose Later, or the download fails, Settings › About › Runtime kit starts
it again. Games pick up a new kit when you press Play.
You can also install the kit by hand, with Python 3: download `playden-kit-<version>.zip` from the release, unzip it
diff --git a/runtime/kits/README.md b/runtime/kits/README.md
index 00dc8c8..d6b9e31 100644
--- a/runtime/kits/README.md
+++ b/runtime/kits/README.md
@@ -1,4 +1,4 @@
-# prospero-win compatibility kits
+# prospero-win runtime kits
A kit is the Windows runtime Playden installs on the console: Wine and its PS5 libraries, DXVK, the template bottle every
game's bottle is copied from, the PS5 title shell and the shipped recipes. Kits are built outside this repository and
diff --git a/src/homebrew/controller.cpp b/src/homebrew/controller.cpp
index 5582753..26bcb20 100644
--- a/src/homebrew/controller.cpp
+++ b/src/homebrew/controller.cpp
@@ -1233,7 +1233,7 @@ void Controller::TickRuntime() {
} else if (record && record->state == runtime::PreparationState::kReady && !record->recovery_pending &&
!record->title_current) {
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";
+ game.detail = "Play updates the runtime 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;
diff --git a/src/homebrew/ps5.cpp b/src/homebrew/ps5.cpp
index e1b4d4d..444f856 100644
--- a/src/homebrew/ps5.cpp
+++ b/src/homebrew/ps5.cpp
@@ -451,7 +451,7 @@ int main() {
" prospero_win=" + revision + (admitted.source_dirty ? "-dirty" : "") +
" ignored_capabilities=" + (ignored.empty() ? "-" : ignored));
if (admitted.status != rt::KitManifestStatus::kVerified || !admitted.view) {
- *reason = "The compatibility kit is missing or incomplete.";
+ *reason = "The runtime kit is missing or incomplete.";
return std::nullopt;
}
return playden::homebrew::RuntimeKit{*admitted.view, admitted.capabilities, admitted.manifest_sha256,
diff --git a/src/homebrew/runtime_host.cpp b/src/homebrew/runtime_host.cpp
index eefefc2..572fd47 100644
--- a/src/homebrew/runtime_host.cpp
+++ b/src/homebrew/runtime_host.cpp
@@ -102,7 +102,7 @@ std::string KitLacksForRecipe(const rt::GameRecipe& recipe, const rt::VerifiedKi
if (recipe.id == kit.recipe.id) return {};
const auto unmet = rt::UnmetRecipeRequirements(recipe.requirements, kit);
return unmet.empty() ? std::string()
- : "The installed compatibility kit lacks what this game needs (" + unmet + "); install a newer kit.";
+ : "The installed runtime kit lacks what this game needs (" + unmet + "); install a newer kit.";
}
// Staged, its registration submitted, and only waiting for ShadowMountPlus, which
@@ -652,7 +652,7 @@ std::string RuntimeHost::KitReplaced(const Composition& c) const {
if (!c.kit || c.kit->manifest_sha256.empty() || !config_.package_operations.hash_file) return {};
const auto current = config_.package_operations.hash_file(c.kit->view.root / "manifest.json");
if (current && *current == c.kit->manifest_sha256) return {};
- return "The compatibility kit changed while Playden was running. Quit Playden and start it again.";
+ return "The runtime kit changed while Playden was running. Quit Playden and start it again.";
}
// What a game's preparation steps work from: its recipe and effective settings, its folder, the bottle
@@ -1425,7 +1425,7 @@ rt::PackageActionResult RuntimeHost::DrivePublication(Composition& c, const rt::
std::to_string(static_cast<int>(resumed.state)) + " code=" + resumed.code + " message=" + resumed.message);
return resumed;
}
- if (!c.kit) return failed("kit-unavailable", "No verified compatibility kit is installed.");
+ if (!c.kit) return failed("kit-unavailable", "No verified runtime kit is installed.");
const rt::GameRecipe* recipe = nullptr;
for (const auto& candidate : c.recipes)
@@ -1731,7 +1731,7 @@ std::string RuntimeHost::PublishSavedSettings(Composition& c, const rt::RuntimeI
// "Steam features" only swaps the game's own files, so it follows the saved value at once.
if (!force && saved.revision <= record.settings_revision && !moved && !unowned_upgrade)
return ApplyPreparationSteps(c, record, steam_account_known);
- if (!c.kit) return "No verified compatibility kit is installed.";
+ if (!c.kit) return "No verified runtime kit is installed.";
if (saved.revision < record.settings_revision)
return again("The game's saved settings are older than its PS5 title's; prepare it again.");
const rt::GameRecipe* recipe = nullptr;
@@ -2403,7 +2403,7 @@ rt::PackageActionResult RuntimeHost::WriteTitleMetadata(Composition& c, const rt
const auto failed = [](std::string message) {
return rt::PackageActionResult{rt::PackageActionState::kFailed, "title-metadata", std::move(message)};
};
- if (!c.kit) return failed("No verified compatibility kit is installed.");
+ if (!c.kit) return failed("No verified runtime kit is installed.");
const rt::KitTitleVariant* variant = rt::KitVariantFor(c.kit->view, record.title_id);
if (!variant) return failed("The kit has no title for this game.");
// The kit's param.json with the game's name in place of the kit's.
@@ -2867,7 +2867,7 @@ std::string RuntimeHost::RunPrepare(Composition& c, const RuntimePrepareRequest&
// would fail the same way: Recreate bottle removes the title and prepares the game again.
if (fresh_start && c.installer->SetupFromOtherKit(*existing)) {
Log("prepare refused app=" + std::to_string(request.runtime_number) + ": title or bottle from another kit");
- return std::string("This game's setup was started with another compatibility kit.") + kRecreateHint;
+ return std::string("This game's setup was started with another runtime kit.") + kRecreateHint;
}
if (fresh_start)
if (const auto initialized = initialize_reserved(*existing); !initialized.empty()) return initialized;
@@ -2899,7 +2899,7 @@ std::string RuntimeHost::RunPrepare(Composition& c, const RuntimePrepareRequest&
// Playden ships its recipes (runtime/recipes) and the kit carries a copy of one of them;
// only that one must agree with the kit, as the kit's shell was packaged for it.
if (recipe->id == c.kit->view.recipe.id && std::to_string(recipe->version) != c.kit->view.recipe.version)
- return "The installed compatibility kit was built for another version of this game's setup.";
+ return "The installed runtime kit was built for another version of this game's setup.";
if (const auto lacks = KitLacksForRecipe(*recipe, c.kit->view); !lacks.empty()) return lacks;
if (recipe->launch_entries.empty()) return "Steam lists no Windows program this console can start for this game.";
const auto settings = config_.settings_record ? config_.settings_record(GameOf(request)) : std::nullopt;
@@ -3736,7 +3736,7 @@ bool RuntimeHost::RunServices() {
installer->ShareBottleProfiles(rt::KitCapabilitiesFromManifest(c.kit->capabilities, true).bottle_profile_shared);
c.installer = std::move(installer);
} else {
- if (kit_reason.empty()) kit_reason = "No verified compatibility kit is installed.";
+ if (kit_reason.empty()) kit_reason = "No verified runtime kit is installed.";
c.installer = std::make_unique<UnavailablePackageInstaller>(kit_reason);
}
auto native = config_.native;
diff --git a/src/homebrew/simulation.cpp b/src/homebrew/simulation.cpp
index 54fc651..2becd8e 100644
--- a/src/homebrew/simulation.cpp
+++ b/src/homebrew/simulation.cpp
@@ -498,7 +498,7 @@ std::string action_label(const std::string& key) {
{"kit-install", "Download"}, {"kit-cancel", "Cancel download"},
{"self-update-back-confirm", "Go back"}, {"release-notes-ok", "OK"},
{"about-build", "Build"}, {"about-framework", "Framework"}, {"about-platform", "Platform"},
- {"about-kit", "Compatibility kit"}, {"about-kit-source", "Built from"},
+ {"about-kit", "Runtime kit"}, {"about-kit-source", "Built from"},
{"about-back", "Back"}, {"inject-library-refresh", "Refresh library fixture"},
{"inject-startup-loading", "Show startup loading"}};
if (const auto found = labels.find(key); found != labels.end()) return found->second;
@@ -1645,9 +1645,9 @@ void Simulation::UpdateSelfUpdate(const LiveSelfUpdate& update) {
pending_update_prompt_ = "kit";
} else if (update.kit_phase == "failed" && before.kit_phase != "failed" &&
(before.kit_phase == "downloading" || before.kit_phase == "unpacking")) {
- show_alert("Compatibility kit download stopped", update.kit_error);
+ show_alert("Runtime kit download stopped", update.kit_error);
} else if (update.kit_phase == "installed" && before.kit_phase != "installed") {
- push_notice({"kit-installed", "Compatibility kit installed", "", false, kLiveNoticeSeconds, false,
+ push_notice({"kit-installed", "Runtime kit installed", "", false, kLiveNoticeSeconds, false,
"Games can be prepared and played now"});
}
sync_self_update_job();
@@ -1674,15 +1674,15 @@ void Simulation::show_update_prompt() {
return;
const auto& update = state_.self_update;
if (kit && update.kit_phase == "available") {
- ModalEntry prompt{"confirmation", update.kit_replaces ? "Replace the compatibility kit?" : "Download the compatibility kit?",
+ ModalEntry prompt{"confirmation", update.kit_replaces ? "Replace the runtime kit?" : "Download the runtime kit?",
state_.navigation.focus_key, {"kit-install", "ready-later"}, 0, false};
const std::string size = update.kit_download_bytes ? "The download is " + format_bytes(update.kit_download_bytes) + ". "
: std::string();
prompt.body = (update.kit_replaces
- ? "The installed compatibility kit isn't the one Playden " + update.current +
+ ? "The installed runtime kit isn't the one Playden " + update.current +
" was made for, so games may not run as this version expects. Playden can put the "
"right one in its place. "
- : std::string("Playden needs its compatibility kit to prepare and play Windows games. ")) +
+ : std::string("Playden needs its runtime kit to prepare and play Windows games. ")) +
size + "You can sign in and keep using Playden while it downloads.";
open_modal(std::move(prompt));
} else if (pending_update_prompt_ == "available" && update.phase == "available") {
@@ -1690,7 +1690,7 @@ void Simulation::show_update_prompt() {
{"self-update-install", "ready-later"}, 0, false};
prompt.body = (update.notes.empty() ? std::string() : update.notes + "\n\n") + "The download is " +
format_bytes(update.download_bytes) +
- (update.kit_needed ? ", with a new compatibility kit." : ".") +
+ (update.kit_needed ? ", with a new runtime kit." : ".") +
" You can keep using Playden while it downloads.";
prompt.link = update.notes_url;
open_modal(std::move(prompt));
@@ -1717,10 +1717,10 @@ void Simulation::sync_self_update_job() {
job.id = "kit-install";
job.kind = "self-update";
job.queue_order = -1;
- job.title = "Compatibility kit";
+ job.title = "Runtime kit";
const bool downloading = update.kit_phase == "downloading";
job.state = downloading ? JobState::Downloading : JobState::Verifying;
- job.stage_text = downloading ? "Downloading the compatibility kit" : "Unpacking the compatibility kit";
+ job.stage_text = downloading ? "Downloading the runtime kit" : "Unpacking the runtime kit";
job.state_text = downloading ? "Downloading" : "Unpacking";
if (downloading) {
job.bytes_per_second = update.bytes_per_second;
@@ -1739,13 +1739,13 @@ void Simulation::sync_self_update_job() {
job.title = "Playden " + update.available;
if (update.phase == "downloading") {
job.state = JobState::Downloading;
- job.stage_text = kit ? "Downloading the compatibility kit" : "Downloading Playden";
+ job.stage_text = kit ? "Downloading the runtime kit" : "Downloading Playden";
job.state_text = "Downloading";
job.bytes_per_second = update.bytes_per_second;
job.eta_seconds = update.eta_seconds;
} else if (update.phase == "unpacking") {
job.state = JobState::Verifying;
- job.stage_text = kit ? "Unpacking the compatibility kit" : "Unpacking Playden";
+ job.stage_text = kit ? "Unpacking the runtime kit" : "Unpacking Playden";
job.state_text = "Unpacking";
} else {
job.state = JobState::Downloaded;
@@ -4056,7 +4056,7 @@ void Simulation::rebuild_view() {
const bool updating = busy && runtime->maintenance == MaintenanceKind::UpdateRuntime;
// A setup an earlier kit left has no title to update: it is made again.
if (!stale && !updating)
- item.subtitle = runtime && runtime->status == "No kit" ? "Needs a usable compatibility kit."
+ item.subtitle = runtime && runtime->status == "No kit" ? "Needs a usable runtime kit."
: runtime && runtime->setup_other_kit
? "Setup was started with an earlier kit. Use Recreate bottle to finish it; saves are kept."
: "Already up to date.";
@@ -4801,14 +4801,14 @@ void Simulation::rebuild_view() {
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 (status == "No kit") hint = "Playden needs its runtime kit to set up games.";
else if (runtime && runtime->setup_other_kit)
hint = "Setup started with an earlier kit. Recreate bottle makes it again; saves and settings are kept.";
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.";
+ hint = "The runtime 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.";
@@ -5129,7 +5129,7 @@ void Simulation::rebuild_view() {
update.phase == "unpacking" || update.phase == "staged";
if ((phase == "available" && !update_brings_kit) || phase == "checking" || phase == "downloading" ||
phase == "unpacking" || phase == "failed") {
- auto& kit = add("settings-kit", RowKind::Action, "Compatibility kit", "kit");
+ auto& kit = add("settings-kit", RowKind::Action, "Runtime kit", "kit");
if (phase == "available") {
kit.value = "Download";
kit.subtitle = update.kit_replaces ? "The installed kit isn't the one this version was made for"
@@ -5142,7 +5142,7 @@ void Simulation::rebuild_view() {
kit.subtitle = update.kit_error;
} else {
kit.value = update.kit_total ? std::to_string(update.kit_done * 100 / update.kit_total) + "%" : "Working…";
- kit.subtitle = phase == "downloading" ? "Downloading the compatibility kit" : "Unpacking the compatibility kit";
+ kit.subtitle = phase == "downloading" ? "Downloading the runtime kit" : "Unpacking the runtime kit";
}
}
}
@@ -5150,7 +5150,7 @@ void Simulation::rebuild_view() {
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,
"self-update-back");
- back.subtitle = "Put the previous version and its compatibility kit back";
+ back.subtitle = "Put the previous version and its runtime kit back";
}
if (live() && !state_.self_update.current_notes_url.empty()) {
auto& notes = add("settings-release-notes", RowKind::Action, "Release notes", "self-update-notes");
@@ -6297,7 +6297,7 @@ void Simulation::activate() {
} else if (action_name == "install-estimate-retry") {
state_.notices.push_back({"estimate", "Fixture estimate is still unavailable", "install-estimate-retry", true, 0});
} else if (action_name == "job-action" && selected.key == "job-kit-install") {
- open_modal({"job-actions", "Compatibility kit", selected.key, {"kit-cancel", "cancel"}, 0, false});
+ open_modal({"job-actions", "Runtime kit", selected.key, {"kit-cancel", "cancel"}, 0, false});
} else if (action_name == "job-action" && selected.key == "job-playden-update") {
const auto& phase = state_.self_update.phase;
std::vector<std::string> actions;
@@ -7127,7 +7127,7 @@ void Simulation::activate() {
body = "Your changes to " + title + "'s settings are removed. The chosen preset and program stay; saves are not touched.";
} else if (action_name == "maintenance-update") {
heading = "Update the runtime?";
- body = title + " moves to the runtime of the installed compatibility kit, and settings that need it apply. "
+ body = title + " moves to the installed runtime kit, and settings that need it apply. "
"The game doesn't start; saves are not touched.";
} else if (action_name == "maintenance-repair") {
heading = "Repair the game?";
@@ -7403,7 +7403,7 @@ void Simulation::activate() {
ModalEntry confirm{"confirmation", "Go back to Playden " + state_.self_update.previous + "?",
state_.navigation.focus_key, {"self-update-back-confirm", "cancel"}, 1, false};
confirm.body = "Playden closes, puts version " + state_.self_update.previous +
- " and its compatibility kit back, and opens again. If it doesn't open by itself, open it from the "
+ " and its runtime kit back, and opens again. If it doesn't open by itself, open it from the "
"Home screen.";
open_modal(std::move(confirm));
}
diff --git a/src/homebrew/simulation.hpp b/src/homebrew/simulation.hpp
index 6b28867..6279411 100644
--- a/src/homebrew/simulation.hpp
+++ b/src/homebrew/simulation.hpp
@@ -88,7 +88,7 @@ struct LiveVolume {
std::optional<std::uint64_t> free_bytes;
bool writable = true; // Playden can make its games folder there
};
-// The compatibility kit in use, for Settings > About. Every field is empty when no kit is usable.
+// The runtime kit in use, for Settings > About. Every field is empty when no kit is usable.
struct LiveKitInfo {
std::string kit_id;
std::string manifest_sha256;
@@ -592,7 +592,7 @@ struct State {
// empty until they choose.
std::string queue_expanded;
std::size_t runtime_leftover_requests = 0; // live: unused settings requests to clean up
- LiveKitInfo kit; // live: the compatibility kit in use
+ LiveKitInfo kit; // live: the runtime kit in use
LiveSelfUpdate self_update; // live: Playden's own update
std::vector<LiveKeptBottle> kept_bottles; // live: saves kept from uninstalled games
std::vector<LiveExternalGame> external_games; // live: games playing in place (imported)
diff --git a/src/update/update_service.cpp b/src/update/update_service.cpp
index 3e359a0..5185f5e 100644
--- a/src/update/update_service.cpp
+++ b/src/update/update_service.cpp
@@ -789,7 +789,7 @@ void UpdateService::DoCheckKit() {
};
std::string error;
const auto releases = FetchReleases(&error);
- if (!releases) return FailKit("Playden could not reach GitHub to download its compatibility kit.", error);
+ if (!releases) return FailKit("Playden could not reach GitHub to download its runtime kit.", error);
const Release* own = nullptr;
for (const auto& release : *releases)
if (!release.draft && release.version == config_.current) own = &release;
diff --git a/tests/homebrew_library_model_test.cpp b/tests/homebrew_library_model_test.cpp
index 8cbf2c0..a7f5685 100644
--- a/tests/homebrew_library_model_test.cpp
+++ b/tests/homebrew_library_model_test.cpp
@@ -1803,7 +1803,7 @@ void live_play_does_the_next_useful_thing() {
{"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", ""},
+ {"No kit", "Open Settings", "", "Playden needs its runtime kit to set up games.", "No kit", "problem", ""},
};
for (const auto& expected : cases) {
LiveRuntimeGame state; state.game_id = SteamId(42); state.status = expected.status;
@@ -1832,7 +1832,7 @@ void live_play_does_the_next_useful_thing() {
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");
+ check(model.state().navigation.focus_key == "about-kit", "missing kit opens Runtime kit in About");
while (!model.state().navigation.modals.empty()) check(model.action("circle"), "close kit information");
} else {
check(play->action == expected.action, "redesigned action preserves existing behavior");
@@ -1849,7 +1849,7 @@ void live_play_does_the_next_useful_thing() {
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."},
+ {"kit source is missing, linked, or has wrong mode", "The runtime 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 = SteamId(42); state.status = status; state.detail = detail; state.can_prepare = true;
@@ -1867,7 +1867,7 @@ void live_play_does_the_next_useful_thing() {
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."
+ : code.starts_with("kit-") ? "The runtime 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");
@@ -2551,7 +2551,7 @@ void live_queue_lists_preparations_needing_attention() {
LiveRuntimeGame refused; refused.game_id = SteamId(32); refused.status = "Not prepared"; refused.can_prepare = true;
LiveRuntimeGame fine; fine.game_id = SteamId(33); fine.status = "Ready"; fine.ready = true;
model.UpdateRuntime(RuntimeState::Ready, {waits, broke, refused, fine});
- model.UpdatePreparationQueue({std::nullopt, {}, {}, {{SteamId(32), "No verified compatibility kit is installed."}}});
+ model.UpdatePreparationQueue({std::nullopt, {}, {}, {{SteamId(32), "No verified runtime kit is installed."}}});
model.action("r1");
model.action("r1");
check((queue_keys(model) == std::vector<std::string>{"queue-preparation", "prep-attn-30", "prep-attn-31", "prep-attn-32"}),
@@ -2560,7 +2560,7 @@ void live_queue_lists_preparations_needing_attention() {
"they are not counted as waiting work");
check(queue_row(model, "prep-attn-30")->value == "Waiting for the PS5" &&
queue_row(model, "prep-attn-31")->subtitle == "Disk full" &&
- queue_row(model, "prep-attn-32")->subtitle == "No verified compatibility kit is installed.",
+ queue_row(model, "prep-attn-32")->subtitle == "No verified runtime kit is installed.",
"each says why");
activate(model, "prep-attn-31");
check(has_row(model, "prep-retry-31"), "a failed preparation can be tried again");
@@ -2570,7 +2570,7 @@ void live_queue_lists_preparations_needing_attention() {
check(!has_row(model, "prep-retry-30"), "a game waiting for the PS5 is not prepared again from here");
model.action("circle");
// Closed with one being prepared: what needs the player is never counted as queued.
- model.UpdatePreparationQueue({SteamId(33), {}, {}, {{SteamId(32), "No verified compatibility kit is installed."}}});
+ model.UpdatePreparationQueue({SteamId(33), {}, {}, {{SteamId(32), "No verified runtime kit is installed."}}});
check(model.action("focus:queue-preparation"), "the heading takes focus");
activate(model, "queue-preparation");
check(!has_row(model, "prep-attn-30") &&
diff --git a/tests/homebrew_live_model_test.cpp b/tests/homebrew_live_model_test.cpp
index d3c9ad8..18a4c6b 100644
--- a/tests/homebrew_live_model_test.cpp
+++ b/tests/homebrew_live_model_test.cpp
@@ -662,7 +662,7 @@ void live_kit_install(const std::filesystem::path& base) {
update.kit_download_bytes = 300000000;
model.UpdateSelfUpdate(update);
check(!model.state().navigation.modals.empty() &&
- model.state().navigation.modals.back().title == "Download the compatibility kit?" &&
+ model.state().navigation.modals.back().title == "Download the runtime kit?" &&
model.state().navigation.modals.back().body.find("sign in") != std::string::npos,
"kit: offered before sign-in, with the download size");
check(model.action("cross") && model.state().navigation.modals.empty() &&
@@ -681,8 +681,8 @@ void live_kit_install(const std::filesystem::path& base) {
model.UpdateSelfUpdate(update);
const auto job = std::find_if(model.state().jobs.begin(), model.state().jobs.end(),
[](const Job& item) { return item.id == "kit-install"; });
- check(job != model.state().jobs.end() && job->title == "Compatibility kit" && job->completed_bytes == 100 &&
- job->stage_text == "Downloading the compatibility kit",
+ check(job != model.state().jobs.end() && job->title == "Runtime kit" && job->completed_bytes == 100 &&
+ job->stage_text == "Downloading the runtime kit",
"kit: the download shows on the Queue");
// Signed in while it downloads: Settings shows the progress.
@@ -709,7 +709,7 @@ void live_kit_install(const std::filesystem::path& base) {
replace.kit_replaces = true;
other.UpdateSelfUpdate(replace);
check(!other.state().navigation.modals.empty() &&
- other.state().navigation.modals.back().title == "Replace the compatibility kit?",
+ other.state().navigation.modals.back().title == "Replace the runtime kit?",
"kit: replacing another kit is said");
other.action("circle");
replace.kit_phase = "downloading";
@@ -722,7 +722,7 @@ void live_kit_install(const std::filesystem::path& base) {
check(other.UpdateLibrary({{}, false, {}, false, true, 100}), "kit: library delivered");
other.action("r1"); // a queued alert shows after the next press
check(!other.state().navigation.modals.empty() &&
- other.state().navigation.modals.back().title == "Compatibility kit download stopped",
+ other.state().navigation.modals.back().title == "Runtime kit download stopped",
"kit: a failed download says why");
// An update on offer brings the kit itself: the kit isn't offered on top of it.
@@ -772,7 +772,7 @@ void live_self_update(const std::filesystem::path& base) {
model.UpdateSelfUpdate(update);
check(!model.state().navigation.modals.empty() &&
model.state().navigation.modals.back().title == "Playden 0.3.0 is available" &&
- model.state().navigation.modals.back().body.find("compatibility kit") != std::string::npos,
+ model.state().navigation.modals.back().body.find("runtime kit") != std::string::npos,
"update: a newer release is offered");
check(model.action("cross") && model.state().navigation.modals.empty() &&
model.TakeSelfUpdateRequests() == std::vector<std::string>{"install"},
@@ -789,7 +789,7 @@ void live_self_update(const std::filesystem::path& base) {
const auto job = std::find_if(model.state().jobs.begin(), model.state().jobs.end(),
[](const Job& item) { return item.id == "playden-update"; });
check(job != model.state().jobs.end() && job->title == "Playden 0.3.0" &&
- job->stage_text == "Downloading the compatibility kit" && job->completed_bytes == 100,
+ job->stage_text == "Downloading the runtime kit" && job->completed_bytes == 100,
"update: the download shows on Downloads");
check(find_row(model, "settings-update")->value == "25%", "update: Settings shows the progress");
model.UpdateInstalls({}, {});
diff --git a/tests/homebrew_runtime_host_test.cpp b/tests/homebrew_runtime_host_test.cpp
index 0c309de..19f8eb6 100644
--- a/tests/homebrew_runtime_host_test.cpp
+++ b/tests/homebrew_runtime_host_test.cpp
@@ -163,13 +163,13 @@ void NoKitRefusesPreparationWithoutDurableEffects() {
CHECK(host.Start());
const auto started = WaitFor(host, Started);
CHECK(started.status == RuntimeHostStatus::kReady);
- CHECK(!started.kit_available && started.kit_reason == "No verified compatibility kit is installed.");
+ CHECK(!started.kit_available && started.kit_reason == "No verified runtime kit is installed.");
CHECK(started.installs.empty());
struct stat info{};
CHECK(stat((fixture.root / "data/runtime-state").c_str(), &info) == 0 && (info.st_mode & 0777) == 0700);
host.Prepare(Hl2());
const auto refused = WaitFor(host, [](const RuntimeSnapshot& s) { return s.refusals.count(220) != 0; });
- CHECK(refused.refusals.at(220) == "No verified compatibility kit is installed.");
+ CHECK(refused.refusals.at(220) == "No verified runtime kit is installed.");
host.Shutdown();
CHECK(host.Snapshot().status == RuntimeHostStatus::kStopped);
CHECK(!fs::exists(fixture.root / "data/runtime-state/installs.json"));
@@ -188,7 +188,7 @@ void ReloadKitAdmitsAKitInstalledWhileRunning() {
config.admit_kit = [&](std::string* reason) -> std::optional<RuntimeKit> {
++admissions;
if (installed) return kit;
- *reason = "No verified compatibility kit is installed.";
+ *reason = "No verified runtime kit is installed.";
return std::nullopt;
};
RuntimeHost host(std::move(config));
@@ -205,7 +205,7 @@ void ReloadKitAdmitsAKitInstalledWhileRunning() {
// Preparation goes past the kit check now (this fixture has no game folder to prepare).
host.Prepare(Hl2());
const auto done = WaitFor(host, [](const RuntimeSnapshot& s) { return s.prepares_handled == 2; }, 60);
- CHECK(!done.refusals.count(220) || done.refusals.at(220) != "No verified compatibility kit is installed.");
+ CHECK(!done.refusals.count(220) || done.refusals.at(220) != "No verified runtime kit is installed.");
host.ReloadKit();
WaitFor(host, [&](const RuntimeSnapshot& s) { return Started(s) && admissions == 3; });
CHECK(host.Snapshot().kit_available);
@@ -227,7 +227,7 @@ void HoldsEffectiveUidWhileWorking() {
};
config.admit_kit = [&](std::string* reason) -> std::optional<RuntimeKit> {
admitted_while_held = holds > 0;
- *reason = "No verified compatibility kit is installed.";
+ *reason = "No verified runtime kit is installed.";
return std::nullopt;
};
RuntimeHost host(std::move(config));
@@ -298,7 +298,7 @@ void PrepareNextReordersWaitingPreparations() {
return nullptr;
};
config.admit_kit = [](std::string* reason) -> std::optional<RuntimeKit> {
- *reason = "No verified compatibility kit is installed.";
+ *reason = "No verified runtime kit is installed.";
return std::nullopt;
};
RuntimeHost host(std::move(config));
@@ -1048,7 +1048,7 @@ void SetupFromAnEarlierKitAsksForRecreate() {
CHECK(!failed.installs[0].setup_other_kit);
const auto again = prepare(host);
CHECK(!again.installs[0].setup_other_kit && again.installs[0].state == PreparationState::kFailed);
- CHECK(!again.refusals.count(220) || again.refusals.at(220).find("another compatibility kit") == std::string::npos);
+ CHECK(!again.refusals.count(220) || again.refusals.at(220).find("another runtime kit") == std::string::npos);
host.Shutdown();
}
*bottle_valid = true;
@@ -1063,7 +1063,7 @@ void SetupFromAnEarlierKitAsksForRecreate() {
CHECK(started.installs.size() == 1 && started.installs[0].setup_other_kit);
const auto records_before = Read(fixture.root / "data/runtime-state/installs.json");
const auto refused = prepare(host);
- CHECK(refused.refusals.count(220) && refused.refusals.at(220).find("another compatibility kit") != std::string::npos &&
+ CHECK(refused.refusals.count(220) && refused.refusals.at(220).find("another runtime kit") != std::string::npos &&
refused.refusals.at(220).find("Recreate bottle") != std::string::npos);
CHECK(refused.installs[0].setup_other_kit && refused.installs[0].state == PreparationState::kFailed);
// Nothing was rebound or retried.
diff --git a/tests/homebrew_simulation_test.cpp b/tests/homebrew_simulation_test.cpp
index 1ea9f32..75bd0a2 100644
--- a/tests/homebrew_simulation_test.cpp
+++ b/tests/homebrew_simulation_test.cpp
@@ -665,7 +665,7 @@ void t11_preferences_failure_and_controller_modal_recovery(const std::filesystem
const auto kit = std::find_if(rows.begin(), rows.end(), [](const auto& row) { return row.key == "about-kit"; });
check(kit != rows.end() && kit->value.rfind("hl2-fw1360-dev1 · ", 0) == 0 &&
kit->subtitle == "The kit this version of Playden was tested with",
- "T11 About names the compatibility kit and whether it is the tested one");
+ "T11 About names the runtime kit and whether it is the tested one");
}
}
diff --git a/tests/runtime_host_fixture.h b/tests/runtime_host_fixture.h
index 15d443a..17f3f2a 100644
--- a/tests/runtime_host_fixture.h
+++ b/tests/runtime_host_fixture.h
@@ -82,7 +82,7 @@ struct Fixture {
R"("source_available":true,"source_type":"folder","path":"/data/homebrew/FAKE78001"}]})";
};
config.admit_kit = [](std::string* reason) -> std::optional<RuntimeKit> {
- *reason = "No verified compatibility kit is installed.";
+ *reason = "No verified runtime kit is installed.";
return std::nullopt;
};
config.runtime_dir = g_runtime_dir;