Play your Steam library's Windows games on a jailbroken PS5.
C++
Say unused game settings data is on Console storage
Leonardo Lobatoffb55e20eeaf
diff --git a/src/homebrew/simulation.cpp b/src/homebrew/simulation.cppindex 74a1635..a0e835f 100644--- a/src/homebrew/simulation.cpp+++ b/src/homebrew/simulation.cpp@@ -5489,7 +5489,8 @@ void Simulation::rebuild_view() {if (live() && state_.runtime_leftover_requests > 0) {// Explicit recovery: settings requests no game is using any more.auto& leftovers = add("settings-runtime-cleanup", RowKind::Action, "Unused game settings data", "runtime-cleanup");- leftovers.value = std::to_string(state_.runtime_leftover_requests);+ // The requests are Playden's own files, always on the console, wherever the games are.+ leftovers.value = std::to_string(state_.runtime_leftover_requests) + " · Console storage";leftovers.subtitle = "Left by interrupted or finished preparations. Clean up removes only what no game is using.";}auto& runtime = add("settings-runtime", RowKind::Action, "Runtime status", "settings-runtime");@@ -7082,7 +7083,7 @@ void Simulation::activate() {ModalEntry confirm{"confirmation", "Clean up unused game settings data?", state_.navigation.focus_key,{"cancel", "runtime-cleanup-confirm"}, 0, true};confirm.body = std::to_string(count) + (count == 1 ? " request" : " requests") +- " left by interrupted or finished preparations. Playden removes only what no game is using; "+ " on Console storage, left by interrupted or finished preparations. Playden removes only what no game is using; ""games and saves are not touched.";open_modal(std::move(confirm));} else if (live() && action_name == "runtime-cleanup-confirm") {diff --git a/tests/homebrew_library_model_test.cpp b/tests/homebrew_library_model_test.cppindex 1b853aa..277dfef 100644--- a/tests/homebrew_library_model_test.cpp+++ b/tests/homebrew_library_model_test.cpp@@ -1483,9 +1483,13 @@ void live_settings_focus_stays_near_a_removed_row() {model.SetRuntimeLeftovers(2);model.UpdateVolumes({{"internal", "Console storage", true, {}, {}}}, "internal");model.action("l1");+ check(find_row(model, "settings-runtime-cleanup")->value == "2 · Console storage",+ "the row says where the unused settings data is");activate(model, "settings-runtime-cleanup");check(!model.TakeRuntimeCleanupRequest() && !model.state().navigation.modals.empty() &&model.state().navigation.modals.back().destructive, "cleanup asks before deleting");+ check(model.state().navigation.modals.back().body.find("on Console storage") != std::string::npos,+ "the confirmation says where the data is");activate(model, "cancel");check(!model.TakeRuntimeCleanupRequest() && has_row(model, "settings-runtime-cleanup"), "Cancel keeps the data");activate(model, "settings-runtime-cleanup");