Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ What's new in ps5upload, written for humans.

## Unreleased

**Games**
- **Games that vanished from the home screen after Rebuild Database can be put back (#961).** A fake package game still on its drive but no longer on the PS5's home screen now shows **Not on the PS5's home screen** on its page, with **Restore to home screen**; **Restore all** in Games does every such game. The PS5's own installer takes the package back from the drive, so nothing is downloaded. Your database is backed up first, and if the PS5 won't take a game, its files are put back where they were. It needs room for one more copy of the game while it runs.
- **Pressing Play on such a game no longer unsettles the console.** It used to try harder and harder ways to start a game the PS5 no longer knows, which could restart the PS5's menu. It now stops within seconds and points you to Restore.

**Extract on the console**
- **Password-protected RAR archives can be extracted on the PS5 (#958).** In Files on the console page and in the app's file screen, Extract now asks for the password of a `.rar` the way it does for `.zip` and `.7z`. This covers new and old RAR archives, multi-part sets (pick part 1), and archives whose file list is hidden behind the password. A wrong password is said plainly and leaves no files behind.

## 12.6.37

**Activity**
- **An upload still going after you closed the page shows as running when you come back (#954).** The upload itself always carried on, but Activity listed it as "Interrupted" next to a second, running copy. It now picks up the same entry.

Expand Down
29 changes: 27 additions & 2 deletions FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -2215,6 +2215,29 @@ whose title ID can't be read) are counted in a line under the grid; **Show them*
with the same actions. To dump an installed game to a drive, open it and use **Dump this game**
under **On <console>**.

**Q: After Rebuild Database my games installed from fake packages are gone from the home screen. Do I have to download them again?**
No. Rebuild Database (Safe Mode) removes games installed from fake packages from the home screen
and from Settings › Storage, but their files stay on the drive. With the helper running and
fake-package support (kstuff) loaded, open such a game in **Games**: instead of **Play** it says
it is not on the PS5's home screen and offers **Restore to home screen**. When several are
missing, **Games** shows **Restore all** above the grid.

Restore installs the game again from the package that is already on the PS5, with the PS5's own
installer, the same way as the first install. Nothing is downloaded. What happens, in order: a
copy of the PS5's game database is saved in `/data/ps5upload/backup/restore/`; the package
(`…/user/app/<title ID>/app.pkg`) is moved into a `ps5upload/restore` folder on the same drive;
the PS5 installs it from there, writing a new copy where **Settings › Storage › Installation
Location** says (so that drive needs room for one more copy while it runs); then the moved copy
is deleted. If the install fails, the package is put back where it was. The game's update file
is kept aside during the install and put back afterwards as a file; install the update package
again to update the game. Don't start the game or turn the PS5 off while it runs.

A game that the PS5 still lists, a retail game, and a game added from a folder are never
touched. Pressing **Play** on a game that is not on the home screen no longer tries to start it:
nothing on the PS5 knows the game until it is restored. If a restore was interrupted (the app or
the PS5 was closed), the game's page says so and offers **Finish** (when the game is back on the
home screen) or **Put back** (when it is not).

**Q: What is the Collection?**
It is what the **Games** grid shows of this computer: every game you keep on its drives and
saved servers, grouped by game: its full copies, its updates and DLC, the duplicates and the
Expand Down Expand Up @@ -3401,8 +3424,10 @@ The PS5Upload helper serves it on port 9180. It has seven sections, on the left:
- **Files**: browse, copy, move, rename, delete, view, verify and search; set permissions, make
and edit text files. **Network shares** adds an SMB share (a PC or NAS) you can browse like a
drive and copy to and from. **Extract** unpacks a `.zip`, `.7z`, `.rar` (multi-part too) or
`.tar` on the console into a folder there (password-protected `.zip` and `.7z` work,
password-protected `.rar` does not). Pick a `.pkg` on internal storage or USB to see its icon,
`.tar` on the console into a folder there. Password-protected `.zip`, `.7z` and `.rar` work: it
asks for the password, also when a `.rar` hides its file list behind it. For a multi-part
`.rar`, pick the first part (`.part1.rar`, or the `.rar` of an old `.r00` set) with the others in
the same folder. Pick a `.pkg` on internal storage or USB to see its icon,
title, version and type and **Install** it (a USB package is copied to internal storage first,
then the copy removed). **Load payload** sends an `.elf` or `.bin` on the console to the
payload loader, after a confirm.
Expand Down
3 changes: 2 additions & 1 deletion MCP.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ clients let you allow tools one by one, so keep these on "ask".
| `share_cancel` | Stop a share and its transfers |
| `api_request` | Anything the API can do |

Some tools aren't marked destructive but still matter: `install_pkg`, `games_launch`,
Some tools aren't marked destructive but still matter: `install_pkg`, `games_launch`, `games_restore`,
`games_restore_finish`,
`rp_input`, `rp_start`, `together_invite`, `together_decide`, `settings_set`,
`console_settings_set`.

Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1381,6 +1381,12 @@ test-payload: payload
$(PAYLOAD_DIR)/tests/trophy_fix_selftest.c $(PAYLOAD_DIR)/src/trophy_fix.c $(PAYLOAD_DIR)/src/app_dump_sha256.c
@$(RUN_LIMITED) $(SELFTEST_DIR)/ps5upload-trophy-fix-selftest
@echo "✓ trophy files: only the exact old account id is replaced (both byte orders, hashes written again), links never followed, a dry run changes nothing, a backup is kept first and puts the file back"
@echo "Running home-screen restore self-test (host build)..."
@cc -O2 -Wall -Wextra -Werror -pthread -I$(PAYLOAD_DIR)/include \
-o $(SELFTEST_DIR)/ps5upload-title-restore-selftest \
$(PAYLOAD_DIR)/tests/title_restore_selftest.c $(PAYLOAD_DIR)/src/title_restore.c
@$(RUN_LIMITED) $(SELFTEST_DIR)/ps5upload-title-restore-selftest
@echo "✓ restore: only a package no database knows is moved aside (same drive, databases backed up first); a failed install puts it back into a free place, a finished one deletes only the copy aside"
@echo "Running console clean-up rules self-test (host build)..."
@cc -O2 -Wall -Wextra -Werror -I$(PAYLOAD_DIR)/include \
-o $(SELFTEST_DIR)/ps5upload-cleanup-rules-selftest \
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12.6.36
12.6.37
4 changes: 2 additions & 2 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ps5upload-client",
"private": true,
"type": "module",
"version": "12.6.36",
"version": "12.6.37",
"description": "The all-in-one PS5 companion app.",
"homepage": "https://github.com/phantomptr/ps5upload",
"author": "PhantomPtr <phantomptr@gmail.com>",
Expand Down
30 changes: 15 additions & 15 deletions client/src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ps5upload-desktop"
version = "12.6.36"
version = "12.6.37"
description = "The all-in-one PS5 companion app."
license = "GPL-3.0-or-later"
edition = "2021"
Expand Down
57 changes: 57 additions & 0 deletions client/src-tauri/src/commands/ps5_engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1924,6 +1924,63 @@ pub struct AppUnregisterReq {
pub registration_only: bool,
}

/// Restore to home screen (#961): one command for the engine's `/api/ps5/app/restore*` routes.
/// `op` is `check`, `candidates` or `status` (GET, `addr` and `title_id` in the query), `start`
/// or `finish` (POST, `req` is the body).
#[derive(Debug, Deserialize)]
pub struct AppRestoreReq {
pub addr: String,
#[serde(default)]
pub title_id: Option<String>,
#[serde(default)]
pub title_ids: Option<Vec<String>>,
#[serde(default)]
pub rollback: bool,
#[serde(default)]
pub install_ended: bool,
}

#[tauri::command]
pub async fn ps5_app_restore(op: String, req: AppRestoreReq) -> Result<JsonValue, String> {
let base = engine::url();
let query = |path: &str| {
let mut url = format!("{base}{path}?addr={}", urlencoding(&req.addr));
if let Some(t) = &req.title_id {
url.push_str(&format!("&title_id={}", urlencoding(t)));
}
url
};
match op.as_str() {
"check" => get_json(&query("/api/ps5/app/restore/check")).await,
"candidates" => get_json(&query("/api/ps5/app/restore/candidates")).await,
"status" => get_json(&query("/api/ps5/app/restore/status")).await,
"start" => {
post_json_long(
&format!("{base}/api/ps5/app/restore"),
&serde_json::json!({
"addr": req.addr,
"title_id": req.title_id,
"title_ids": req.title_ids,
}),
)
.await
}
"finish" => {
post_json(
&format!("{base}/api/ps5/app/restore/finish"),
&serde_json::json!({
"addr": req.addr,
"title_id": req.title_id,
"rollback": req.rollback,
"install_ended": req.install_ended,
}),
)
.await
}
other => Err(format!("unknown restore step {other:?}")),
}
}

#[tauri::command]
pub async fn ps5_app_unregister(req: AppUnregisterReq) -> Result<JsonValue, String> {
let base = engine::url();
Expand Down
1 change: 1 addition & 0 deletions client/src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ pub fn run() {
commands::ps5_app_launch,
commands::ps5_app_register,
commands::ps5_app_unregister,
commands::ps5_app_restore,
commands::fpkg_inspect,
commands::game_inspect,
commands::game_inspect_image,
Expand Down
2 changes: 1 addition & 1 deletion client/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "PS5Upload",
"version": "12.6.36",
"version": "12.6.37",
"identifier": "com.phantomptr.ps5upload",
"build": {
"beforeDevCommand": "npm run dev:vite",
Expand Down
Loading
Loading