Skip to content

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

C++

Keep the Run a program once row's labels short

Leonardo Lobato4dcf29eff26f
diff --git a/README.md b/README.md
index a8a7054..8c3628d 100644
--- a/README.md
+++ b/README.md
@@ -352,7 +352,7 @@ build/homebrew-host/playden-homebrew --simulation --scenario signed-out
- Godot games (Slay the Spire 2) need `--rendering-driver opengl3` in Game settings › Extra arguments. Playden picks
Godot's Vulkan renderer, which did not work on this kit.
- Some games start only after their own settings program has run once. On the game's page, use Options ›
- **Run a program once…**, pick that program, change the settings, close it, then press Play. Its own Play button
+ **Run a program once**, pick that program, change the settings, close it, then press Play. Its own Play button
can't start the game on the PS5. Until Playden opens again, the game's Home tile starts that program too.
- The 120 Hz choice of the "Refresh rate" game setting needs a newer runtime kit; it is not available with this kit.
- When you close a game from the PS5 menu, it can stay suspended. Pressing Play again resumes it instead of starting
diff --git a/src/homebrew/simulation.cpp b/src/homebrew/simulation.cpp
index a9b4006..ffe02af 100644
--- a/src/homebrew/simulation.cpp
+++ b/src/homebrew/simulation.cpp
@@ -521,7 +521,7 @@ std::string action_label(const std::string& key) {
{"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"},
@@ -6102,7 +6102,6 @@ void Simulation::rebuild_view() {
item.subtitle = "Changes apply on next launch";
}
} else if (action_key == "run-once") {
- item.subtitle = "Starts a program from the game folder, such as its settings launcher, one time. Play doesn't change.";
// Only a game known to run waits: opening the list asks whether it runs, and Run once checks again.
std::string refusal;
const auto runtime_game = state_.runtime_games.find(state_.navigation.selected_game_id);
@@ -6110,7 +6109,7 @@ void Simulation::rebuild_view() {
runtime_game->second.activity == TitleActivity::Unknown;
if (live() && !checking && !game_closed(state_.navigation.selected_game_id, &refusal)) {
item.enabled = false;
- item.subtitle = refusal;
+ item.value = "Game running";
}
} else if (modal.id == "setup-programs" && action_key.rfind("setup-program-", 0) == 0) {
item.kind = RowKind::Choice;
diff --git a/src/homebrew/simulation.hpp b/src/homebrew/simulation.hpp
index 6de9ea7..c79afb3 100644
--- a/src/homebrew/simulation.hpp
+++ b/src/homebrew/simulation.hpp
@@ -1410,7 +1410,7 @@ private:
// A game whose setup waits for its program (LiveGameSetup::steam_choices): the sheet that asks,
// installers and tools last, and the choice, which sets the game up again.
void open_steam_programs(GameId id);
- // Run a program once…: the game folder's programs, then a confirmation.
+ // Run a program once: the game folder's programs, then a confirmation.
void open_setup_programs();
void choose_steam_launch(GameId id, const std::string& program);
std::vector<LaunchProgram> steam_programs_shown_;
diff --git a/tests/homebrew_live_model_test.cpp b/tests/homebrew_live_model_test.cpp
index 3c96fda..4a005bb 100644
--- a/tests/homebrew_live_model_test.cpp
+++ b/tests/homebrew_live_model_test.cpp
@@ -662,7 +662,7 @@ void live_program_change_applies_like_other_settings(const std::filesystem::path
"program: the reset applies the same way");
}
-// Run a program once… (Game actions): a program from the game folder, its settings launcher, starts once through
+// Run a program once (Game actions): a program from the game folder, its settings launcher, starts once through
// Play's own request, which carries the program; Game settings and the next Play stay the game's.
void live_runs_setup_program_once(const std::filesystem::path& base) {
using playden::homebrew::GameId;
@@ -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");