Play your Steam library's Windows games on a jailbroken PS5.
C++
Keep the setup step name off the Play button
Leonardo Lobato1e262b082264
diff --git a/src/homebrew/simulation.cpp b/src/homebrew/simulation.cppindex 2913a3e..da8fe33 100644--- a/src/homebrew/simulation.cpp+++ b/src/homebrew/simulation.cpp@@ -6805,7 +6805,9 @@ void Simulation::rebuild_view() {: 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+ // Only the step's number, if it has one: Setup says what it does, and the button keeps its width.+ : value.status == "Preparing" ? (value.detail.find(" · ") == std::string::npos+ ? std::string{} : value.detail.substr(0, value.detail.find(" · "))): value.status == "Checking" || value.status == "Removing" || value.status == "Unavailable" ? value.status: std::string{};play.enabled = enabled && !uninstalling;diff --git a/tests/homebrew_library_model_test.cpp b/tests/homebrew_library_model_test.cppindex d5305ce..8c08c3e 100644--- a/tests/homebrew_library_model_test.cpp+++ b/tests/homebrew_library_model_test.cpp@@ -2622,6 +2622,11 @@ void live_play_does_the_next_useful_thing() {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");+ check(find_row(model, "details-play")->value == "Step 3 of 6", "Play counts the steps; Setup names them");+ preparing.detail = "Removing the PS5 title made for the game's old drive";+ model.UpdateRuntime(RuntimeState::Ready, {preparing});+ check(find_row(model, "details-play")->value.empty() && find_row(model, "details-setup")->value == preparing.detail,+ "work without a step number is only named in Setup");for (const auto& [runtime_state, status] : std::vector<std::pair<RuntimeState, std::string>>{{RuntimeState::Checking, "Checking"}, {RuntimeState::Unavailable, "Unavailable"}}) {LiveRuntimeGame transient; transient.game_id = SteamId(42); transient.status = status;