Skip to content

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

C++

Rename Run a program once to Run launcher or setup

Leonardo Lobato66dcfcff3145
diff --git a/COMPATIBILITY.md b/COMPATIBILITY.md
index c8fbb10..8514a1c 100644
--- a/COMPATIBILITY.md
+++ b/COMPATIBILITY.md
@@ -42,7 +42,7 @@ uses: Direct3D 8–11 goes through DXVK to Vulkan, and Direct3D 12 through vkd3d
| [BALL x PIT](https://store.steampowered.com/app/2062430) | ✅ Works | 0.10 | Unity · D3D11 · 64-bit | Intro and the first cutscene. |
| [Ballionaire](https://store.steampowered.com/app/2667120) | ✅ Works | 0.12 | — | Default settings, DualSense. ([#122](https://github.com/leolobato/playden-ps5/issues/122), firmware 13.60) |
| [Bastion](https://store.steampowered.com/app/107100) | ✅ Works | 0.12 | XNA (Wine Mono, FNA) · OpenGL · Zink · 32-bit | Default settings; Playden selects OpenGL automatically. Controller menus, a new Normal Mode game, getting out of bed and walking along the opening platforms verified. Combat and sustained performance not tested. |
-| [Batman: Arkham Asylum GOTY Edition](https://store.steampowered.com/app/35140) | ✅ Works | 0.16 | UE3 · D3D9 · DXVK · 32-bit | Default settings. If it starts at 4:3, set the resolution once in BmLauncher (Game actions › Run a program once). Subtitles stay small even at 150% scaling. ([#339](https://github.com/leolobato/playden-ps5/pull/339), firmware 12.20) |
+| [Batman: Arkham Asylum GOTY Edition](https://store.steampowered.com/app/35140) | ✅ Works | 0.16 | UE3 · D3D9 · DXVK · 32-bit | Default settings. If it starts at 4:3, set the resolution once in BmLauncher (Game actions › Run launcher or setup). Subtitles stay small even at 150% scaling. ([#339](https://github.com/leolobato/playden-ps5/pull/339), firmware 12.20) |
| [Batman: Arkham City GOTY](https://store.steampowered.com/app/200260) | ✅ Works | 0.17 | UE3 · DXVK · 32-bit | Default settings. One tester had to change settings in BmLauncher; DualSense. ([#374](https://github.com/leolobato/playden-ps5/pull/374), firmware 12.20) |
| [Batman™: Arkham Knight](https://store.steampowered.com/app/208650) | ✅ Works | 0.16 | UE3 · D3D11 · DXVK · 64-bit | Default settings. (community report, firmware 12.20) Restart ShadowMount if it doesn't launch; DualSense. ([#344](https://github.com/leolobato/playden-ps5/pull/344), firmware 12.20) |
| [Beat Weaver Demo](https://store.steampowered.com/app/4265140) | ✅ Works | 0.13 | — | Default settings, DualSense. ([#323](https://github.com/leolobato/playden-ps5/issues/323), firmware 13.00) |
@@ -364,7 +364,7 @@ Development builds carry the version they lead to, such as `0.12-dev.20261020.1`
| Kit | What changed for games |
| --- | --- |
-| 0.18 | Up to four controllers, one for each signed-in PS5 user, and a PlayStation controller choice in Game settings. A launcher's Play can start its game: turn on Game settings › Start through a launcher, or use Run a program once. Games that close a window and open another under OpenGL, such as Balatro, no longer stay on their loading screen. Games that need OpenAL find it. Launcher windows take clicks and keep their stacking order. Direct3D 12 games can show their frame rate with Performance overlay. Launchers see the real video memory. A game restarted after quitting finds its files when the console gives it a new sandbox. Games that play mp3 or WAV music through DirectShow have sound, and no longer stop after retrying a file they can't play. Bottles need no Recreate; games set up on 0.17 or earlier update their runtime on their next Play. |
+| 0.18 | Up to four controllers, one for each signed-in PS5 user, and a PlayStation controller choice in Game settings. A launcher's Play can start its game: turn on Game settings › Start through a launcher, or use Run launcher or setup. Games that close a window and open another under OpenGL, such as Balatro, no longer stay on their loading screen. Games that need OpenAL find it. Launcher windows take clicks and keep their stacking order. Direct3D 12 games can show their frame rate with Performance overlay. Launchers see the real video memory. A game restarted after quitting finds its files when the console gives it a new sandbox. Games that play mp3 or WAV music through DirectShow have sound, and no longer stop after retrying a file they can't play. Bottles need no Recreate; games set up on 0.17 or earlier update their runtime on their next Play. |
| 0.17 | Games that keep hundreds of files open at once no longer stop with "Too many open files": Unreal Engine 3 games, Dead by Daylight, Euro Truck Simulator 2 and others. Bottles need no Recreate; games set up on 0.16 or earlier update their runtime on their next Play. |
| 0.16 | .NET games such as Slay the Spire 2 no longer close at start, as they did on 0.14 and 0.15. Reading a file into memory beside protected memory no longer fails. Bottles need no Recreate; games set up on 0.14 or 0.15 update their runtime on their next Play. |
| 0.15 | Unity games that use Mono (Darkwood, for one) no longer take minutes to load and run at a few frames per second, as they did on 0.14. Game settings › Frame generation (2×, 3×, 4×) works. Bottles need no Recreate; games set up on 0.14 update their runtime on their next Play. |
diff --git a/README.md b/README.md
index ec0e42f..517b179 100644
--- a/README.md
+++ b/README.md
@@ -357,7 +357,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 launcher or setup**, 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/app/preferences.h b/src/app/preferences.h
index 649dd23..28d5afe 100644
--- a/src/app/preferences.h
+++ b/src/app/preferences.h
@@ -32,7 +32,7 @@ struct Preferences {
// ("german", "koreana"). Steam ships localisations as separate depots; a game that has none
// in this language is installed in English, as every game was before this could be chosen.
std::string content_language = "english";
- // "Don't show this again" on the dialogs that explain launcher mode: Run a program once, and turning on
+ // "Don't show this again" on the dialogs that explain launcher mode: Run launcher or setup, and turning on
// Start through a launcher. Separate, because the second warns about other games.
bool hide_run_once_help = false;
bool hide_launcher_help = false;
diff --git a/src/homebrew/runtime_host.cpp b/src/homebrew/runtime_host.cpp
index 8aef89c..8c6a741 100644
--- a/src/homebrew/runtime_host.cpp
+++ b/src/homebrew/runtime_host.cpp
@@ -1943,7 +1943,7 @@ std::string RuntimeHost::PublishSavedSettings(Composition& c, const rt::RuntimeI
" title=" + std::to_string(record.settings_revision));
return {};
}
- // Run a program once: the saved settings with that program and the Mouse controller preset (its rows as the preset
+ // Run launcher or setup: the saved settings with that program and the Mouse controller preset (its rows as the preset
// sets them, so a recipe's or the player's controller choices don't hide the pointer) in their place. The title
// keeps that profile until the next publication without one puts the saved settings back (RuntimeInstall::
// setup_program), whatever their revision.
diff --git a/src/homebrew/simulation.cpp b/src/homebrew/simulation.cpp
index 026bb48..2913a3e 100644
--- a/src/homebrew/simulation.cpp
+++ b/src/homebrew/simulation.cpp
@@ -535,7 +535,7 @@ std::string action_label(const std::string& key) {
{"install-confirm", "Install"}, {"install-version", "Version"}, {"install-language", "Language"}, {"install-dlc", "DLC"}, {"install-dlc-all", "All DLC"}, {"install-dlc-done", "Done"}, {"heading-dlc-included", "Included"}, {"heading-dlc-optional", "Optional"}, {"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 launcher or setup…"}, {"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"}, {"heading-sort", "Sort"}, {"heading-filter", "Filter"},
@@ -5576,8 +5576,8 @@ void Simulation::rebuild_view() {
}
if (modal.id == "setup-programs")
view_.subtitle = launcher_mode_kit()
- ? "Pick a program from the game folder, such as its launcher. It runs one time in launcher mode; Play and Game settings stay as they are."
- : "Pick a program from the game folder, such as its settings launcher. It runs one time with the Mouse preset; Play and Game settings stay as they are.";
+ ? "For a game's launcher, settings or installer: pick it from the game folder. It runs one time in launcher mode; Play and Game settings stay as they are."
+ : "For a game's launcher, settings or installer: pick it from the game folder. It runs one time with the Mouse preset; Play and Game settings stay as they are.";
if (modal.id == "game-settings" || modal.id == "game-maintenance") {
if (const auto* game = find_game(state_, settings_game)) view_.subtitle = game->title;
} else if (!modal.setting_id.empty()) {
@@ -6389,7 +6389,7 @@ void Simulation::rebuild_view() {
const auto runtime_game = state_.runtime_games.find(state_.navigation.selected_game_id);
const bool checking = runtime_game != state_.runtime_games.end() &&
runtime_game->second.activity == TitleActivity::Unknown;
- if (launcher_mode_kit()) item.subtitle = "Starts it in launcher mode.";
+ item.subtitle = "For setup and settings";
if (live() && !checking && !game_closed(state_.navigation.selected_game_id, &refusal)) {
item.enabled = false;
item.value = "Game running";
@@ -11110,7 +11110,7 @@ void Simulation::open_setup_programs() {
if (setup == game_setups_.end() || !setup->second.scanned) actions.push_back("program-scan");
}
actions.push_back("cancel");
- open_modal({"setup-programs", "Run a program once", state_.navigation.focus_key, std::move(actions), 0, false});
+ open_modal({"setup-programs", "Run launcher or setup", state_.navigation.focus_key, std::move(actions), 0, false});
}
std::vector<std::string> Simulation::maintenance_actions() const {
diff --git a/src/homebrew/simulation.hpp b/src/homebrew/simulation.hpp
index f1703ff..d923f09 100644
--- a/src/homebrew/simulation.hpp
+++ b/src/homebrew/simulation.hpp
@@ -857,7 +857,7 @@ struct State {
// Empty: Steam default (Steam's order); kFastestDownloadServer: Fastest (raced at each download); otherwise
// the chosen provider's stable identifier.
std::string download_server;
- bool hide_run_once_help = false; // "Don't show again" on Run a program once's dialog
+ bool hide_run_once_help = false; // "Don't show again" on Run launcher or setup's dialog
bool hide_launcher_help = false; // ...and on the one for turning on Start through a launcher
bool web_access = true; // Settings › Web access: the logs page on the local network (on by default)
bool controller_connected = true;
@@ -1270,7 +1270,7 @@ private:
std::optional<GameId> prepare_next_asked_;
std::vector<GameId> pending_runtime_play_requests_;
std::map<GameId, std::string> pending_runtime_setup_programs_;
- std::string setup_program_choice_; // Run a program once: the program the confirmation names
+ std::string setup_program_choice_; // Run launcher or setup: the program the confirmation names
bool pending_runtime_cleanup_ = false;
bool library_catalog_received_ = false;
std::set<Store> catalog_sources_; // stores whose library arrived at least once
@@ -1497,7 +1497,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 launcher or setup: 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_;
@@ -1569,7 +1569,7 @@ private:
bool move_manage(int delta_x, int delta_y);
// Asks the controller to uninstall a game; batch: from the Installed games list.
void request_uninstall(GameId id, bool delete_saves, bool batch);
- void start_setup_program(); // Run a program once: the program chosen, when the game is closed
+ void start_setup_program(); // Run launcher or setup: the program chosen, when the game is closed
bool launcher_mode_kit() const { return kit_.launcher_mode || kit_.launcher_mode_needs_update; }
void end_uninstall(GameId id, const std::string& stopped);
[[nodiscard]] const EndedUninstall* uninstall_stop(GameId id) const;
diff --git a/src/runtime/game_install.h b/src/runtime/game_install.h
index d891e2e..337c880 100644
--- a/src/runtime/game_install.h
+++ b/src/runtime/game_install.h
@@ -90,7 +90,7 @@ struct RuntimeInstall {
// when set, so older readers (which ignore unknown keys) are unaffected.
std::string moved_from;
// A program from the game folder that the title's published profile starts once in place of the game, with the
- // Mouse controller preset (Run a program once), relative to the install root. The next publication puts the
+ // Mouse controller preset (Run launcher or setup), relative to the install root. The next publication puts the
// saved settings back and clears it, whatever their revision. Stored only when set.
std::string setup_program;
};
diff --git a/tests/homebrew_live_model_test.cpp b/tests/homebrew_live_model_test.cpp
index 1477851..3233d3f 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 launcher or setup (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 launcher or setup…",
"setup program: Game actions offers it");
activate(model, "run-once");
check(model.state().navigation.modals.back().id == "setup-programs", "setup program: the picker opens");
@@ -753,7 +753,7 @@ void live_runs_setup_program_once(const std::filesystem::path& base) {
// With launcher mode: the dialog says so and offers Don't show again, which then starts the program directly.
model.SetKitCapabilities(playden::runtime::KitCapabilitiesFromManifest({"launcher-mode"}, true));
activate(model, "details-more");
- check(find_row(model, "run-once")->subtitle == "Starts it in launcher mode.", "launcher mode: its row says so");
+ check(find_row(model, "run-once")->subtitle == "For setup and settings", "the row says what it is for");
activate(model, "run-once");
activate(model, "setup-program-0");
check(model.state().navigation.modals.back().body.find("launcher mode") != std::string::npos &&
diff --git a/tests/homebrew_runtime_host_test.cpp b/tests/homebrew_runtime_host_test.cpp
index 65153f2..65f14d7 100644
--- a/tests/homebrew_runtime_host_test.cpp
+++ b/tests/homebrew_runtime_host_test.cpp
@@ -1694,7 +1694,7 @@ void UpdatedFilesSetUpTheLaunchAgain() {
host.Shutdown();
}
-// Run a program once: Play with a program from the game folder publishes it, with the Mouse preset, for one start. The
+// Run launcher or setup: Play with a program from the game folder publishes it, with the Mouse preset, for one start. The
// game's own settings come back with the next publication: when Playden sees the run end, on its next start, or on
// the next Play.
void RunsSetupProgramOnce() {
diff --git a/tests/runtime_game_install_test.cpp b/tests/runtime_game_install_test.cpp
index b3eea00..566445e 100644
--- a/tests/runtime_game_install_test.cpp
+++ b/tests/runtime_game_install_test.cpp
@@ -529,7 +529,7 @@ void MovedRecordsRewriteTogetherAndKeepTheirMark() {
RuntimeInstallRepository again(storage, "installs.json", Free);
CHECK(again.Load().ok() && again.Find("install-a")->moved_from.empty() && !again.Find("install-b")->moved_from.empty());
- // A program's run (Run a program once) is kept the same way, only while set, and only as a path in the game folder.
+ // A program's run (Run launcher or setup) is kept the same way, only while set, and only as a path in the game folder.
auto setup = *again.Find("install-a"); setup.setup_program = "Binaries/BmLauncher.exe";
auto outside = setup; outside.setup_program = "../BmLauncher.exe";
CHECK(!again.Update(outside).ok());