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
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ What's new in ps5upload, written for humans.

## Unreleased

**Install**
- **PS4 add-ons install even when their title ID differs from the game's (#924).** Some games use a different title ID for their add-ons than for the game itself (Dead or Alive 5 Last Round: game CUSA01778, add-ons CUSA01601). The app refused those add-ons with "the base game is not on this PS5", even though the PS5 installs them fine. Add-ons are no longer checked for a base game; the PS5 decides. Updates still are, because the PS5 accepts an update without its game and then installs nothing.

**Files**
- **Long names are readable on a phone (#923).** On a narrow screen a long file or folder name now wraps onto up to three lines, with its type and size underneath, instead of being cut off after a few characters. Wider windows keep one line per row.

**Play**
- **"Server shutting down" is explained.** When the PS5 ends the stream because something else took over (a controller at the console was used, another device started Remote Play, or the PS5 was turned off), the app now says that in plain words and tells you to press Start to play here again.

**Your servers**
- **Editing a server while it signs in uses the new settings.** If you changed or removed a server connection while the app was signing in to it, that sign-in could be kept with the old settings. It is now dropped, and the next use signs in with what you saved.

## 12.6.26

**Cheats**
- **PS4 games' cheats can be switched on (#920).** In a PS4 game, the app looked for the game's code in the wrong place, so every switch answered "the game's code is not loaded yet". It now uses the PS4 game's own code. As before, nothing is written unless every location holds the cheat's original bytes, so a cheat for another version of the game is still refused.

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12.6.25
12.6.26
95 changes: 95 additions & 0 deletions client/e2e/files-phone-long-names.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
import { expect, test, type Page, type Route } from "@playwright/test";

// #923: on a phone, long file names were cut off after a few characters because the tag, size and
// buttons share the name's line. There the name now wraps and the tag and size sit below it; wider
// windows keep one line per row.

const HOST = "192.168.0.5";
const LONG = "Dead.or.Alive.5.Last.Round.CUSA01778.v1.19.All.DLC.Backport.Fixed.pkg";
const FILES = [LONG, "b-second.bin"];

async function openFiles(page: Page) {
await page.addInitScript((files) => {
const w = window as unknown as Record<string, unknown>;
const calls: string[] = [];
w.__calls = calls;
let id = 0;
w.__TAURI_INTERNALS__ = {
invoke: async (cmd: string) => {
calls.push(cmd);
if (cmd === "ps5_list_dir")
return {
entries: files.map((name) => ({ name, kind: "file", size: 1000, mtime: 1791360199 })),
truncated: false,
};
if (cmd === "payload_check")
return {
ok: true,
reachable: true,
engine: true,
status: { version: "7.0.29", instance_id: 1, ucred_elevated: true },
};
return null;
},
transformCallback: () => ++id,
unregisterCallback: () => {},
convertFileSrc: (p: string) => p,
metadata: { currentWindow: { label: "main" }, currentWebview: { windowLabel: "main", label: "main" } },
plugins: {},
};
w.__TAURI_EVENT_PLUGIN_INTERNALS__ = { unregisterListener: () => {} };
}, FILES);
await page.addInitScript((host) => {
window.localStorage.setItem("ps5upload.host", host);
}, HOST);
const json = (route: Route, body: unknown) =>
route.fulfill({ status: 200, contentType: "application/json", body: JSON.stringify(body) });
await page.route(
(u) => u.pathname.startsWith("/api/"),
async (route) => {
const p = new URL(route.request().url()).pathname;
if (p === "/api/version") return json(route, { caps: {}, version: "7.0.29" });
if (p === "/api/ps5/volumes") return json(route, { volumes: [] });
if (p === "/api/jobs") return json(route, []);
return json(route, {});
},
);

await page.goto("/files", { waitUntil: "domcontentloaded" });
const name = page.getByRole("main").getByRole("button", { name: LONG, exact: true });
await expect(name).toBeVisible({ timeout: 30_000 });
return name;
}

test.describe("phone width", () => {
test.use({ viewport: { width: 360, height: 800 }, hasTouch: true, isMobile: true });

test("a long file name wraps instead of being cut off, with its size below (#923)", async ({ page }) => {
const name = await openFiles(page);
const fits = await name.evaluate((el) => el.scrollWidth <= el.clientWidth + 1);
expect(fits).toBe(true);
const nameBox = await name.boundingBox();
const meta = name.locator("xpath=following-sibling::div[1]");
const metaBox = await meta.boundingBox();
if (!nameBox || !metaBox) throw new Error("no box");
// More than one line of text, and the size line starts below the name.
expect(nameBox.height).toBeGreaterThan(24);
expect(metaBox.y).toBeGreaterThanOrEqual(nameBox.y + nameBox.height - 1);
await expect(meta).toContainText("1000 B");
if (process.env.FS_SHOT) await page.screenshot({ path: process.env.FS_SHOT });
});
});

test.describe("desktop width", () => {
test.use({ viewport: { width: 1280, height: 800 } });

test("rows stay one line, the size beside the name", async ({ page }) => {
const name = await openFiles(page);
const nameBox = await name.boundingBox();
const size = name.locator("xpath=following-sibling::div[1]").getByText("1000 B");
const sizeBox = await size.boundingBox();
if (!nameBox || !sizeBox) throw new Error("no box");
expect(nameBox.height).toBeLessThan(28);
expect(Math.abs(sizeBox.y + sizeBox.height / 2 - (nameBox.y + nameBox.height / 2))).toBeLessThan(6);
});
});
3 changes: 2 additions & 1 deletion client/e2e/remote-play.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,8 @@ test("a stream the console ended says why, and the Start button is back", async
await page.goto("/play", { waitUntil: "domcontentloaded" });
await expect(page.getByRole("heading", { name: "Play", exact: true })).toBeVisible({ timeout: 30_000 });
await page.getByTestId("rp-start").click();
await expect(page.getByText("The PS5 ended the stream: Server shutting down")).toBeVisible({ timeout: 20_000 });
// "Server shutting down" is the PS5's word for "something else took over": said in plain words.
await expect(page.getByText(/something else took it over/)).toBeVisible({ timeout: 20_000 });
await expect(page.getByTestId("rp-start")).toBeVisible();
});

Expand Down
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.25",
"version": "12.6.26",
"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.25"
version = "12.6.26"
description = "The all-in-one PS5 companion app."
license = "GPL-3.0-or-later"
edition = "2021"
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.25",
"version": "12.6.26",
"identifier": "com.phantomptr.ps5upload",
"build": {
"beforeDevCommand": "npm run dev:vite",
Expand Down
1 change: 1 addition & 0 deletions client/src/i18n/locales/ar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7078,6 +7078,7 @@ library_compressed_hint: "تحتاج الصور المضغوطة إلى ShadowMo
"rp_phone_be": "استخدام هذا الجهاز كيد تحكم له",
"rp_err_keys2": "لم يقبل PS5 اقتران هذا التطبيق. أقرن مجددًا: إعداد «العب» › إقران.",
"rp_err_in_use": "جهاز آخر يستخدم التشغيل عن بُعد على هذا PS5، أو أن PS5 ما زال ينهي جلسة. أغلق التشغيل عن بُعد على ذلك الجهاز، ثم اضغط «ابدأ».",
"rp_err_console_took_over": "أنهى PS5 البث لأن شيئًا آخر تولّاه: استُخدمت يد تحكم عند الجهاز، أو بدأ جهاز آخر التشغيل عن بُعد، أو أُطفئ PS5. اضغط ابدأ لتلعب هنا مرة أخرى.",
"rp_err_console_ended": "أنهى PS5 البث: {reason}",
"rp_err_no_session": "انتهى البث أثناء غياب هذه الصفحة. اضغط «ابدأ» لتلعب مجددًا.",
"rp_err_other": "توقّف البث.",
Expand Down
1 change: 1 addition & 0 deletions client/src/i18n/locales/bn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7078,6 +7078,7 @@ library_compressed_hint: "সংকুচিত ইমেজ চালাতে
"rp_phone_be": "এই ডিভাইসকে এর কন্ট্রোলার হিসেবে ব্যবহার করুন",
"rp_err_keys2": "PS5 এই অ্যাপের পেয়ারিং গ্রহণ করেনি। আবার পেয়ার করুন: খেলুন সেট আপ করুন › পেয়ার করুন।",
"rp_err_in_use": "অন্য একটি ডিভাইস এই PS5-এ Remote Play ব্যবহার করছে, অথবা PS5 এখনও একটি সেশন শেষ করছে। সেই ডিভাইসে Remote Play বন্ধ করুন, তারপর শুরু চাপুন।",
"rp_err_console_took_over": "PS5 স্ট্রিম শেষ করেছে কারণ অন্য কিছু এটি নিয়ে নিয়েছে: কনসোলে একটি কন্ট্রোলার ব্যবহার হয়েছে, অন্য ডিভাইস রিমোট প্লে শুরু করেছে, বা PS5 বন্ধ হয়েছে। এখানে আবার খেলতে Start চাপুন।",
"rp_err_console_ended": "PS5 স্ট্রিম শেষ করেছে: {reason}",
"rp_err_no_session": "এই পেজ দূরে থাকার সময় স্ট্রিম শেষ হয়েছে। আবার খেলতে শুরু চাপুন।",
"rp_err_other": "স্ট্রিম থেমে গেছে।",
Expand Down
1 change: 1 addition & 0 deletions client/src/i18n/locales/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7086,6 +7086,7 @@ library_compressed_hint: "Komprimierte Images benötigen ShadowMount+ zum Spiele
"rp_phone_be": "Dieses Gerät als Controller nutzen",
"rp_err_keys2": "Die PS5 hat die Kopplung dieser App nicht angenommen. Kopple erneut: Spielen einrichten › Koppeln.",
"rp_err_in_use": "Ein anderes Gerät nutzt Remote Play auf dieser PS5, oder die PS5 beendet noch eine Sitzung. Schließe Remote Play auf dem anderen Gerät und drücke dann Start.",
"rp_err_console_took_over": "Die PS5 hat den Stream beendet, weil etwas anderes ihn übernommen hat: Ein Controller an der Konsole wurde benutzt, ein anderes Gerät hat Remote Play gestartet oder die PS5 wurde ausgeschaltet. Drücke Start, um hier weiterzuspielen.",
"rp_err_console_ended": "Die PS5 hat den Stream beendet: {reason}",
"rp_err_no_session": "Der Stream endete, während diese Seite weg war. Drücke Start, um weiterzuspielen.",
"rp_err_other": "Der Stream wurde beendet.",
Expand Down
1 change: 1 addition & 0 deletions client/src/i18n/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7387,6 +7387,7 @@ library_compressed_hint: "Compressed images need ShadowMount+ to play. To edit,
"rp_phone_be": "Use this device as its controller",
"rp_err_keys2": "The PS5 did not accept this app's pairing. Pair again: Play › Set up › Pair.",
"rp_err_in_use": "Another device is using Remote Play on this PS5, or the PS5 is still finishing a session. Close Remote Play on that device, then press Start.",
"rp_err_console_took_over": "The PS5 ended the stream because something else took it over: a controller at the console was used, another device started Remote Play, or the PS5 was turned off. Press Start to play here again.",
"rp_err_console_ended": "The PS5 ended the stream: {reason}",
"rp_err_no_session": "The stream ended while this page was away. Press Start to play again.",
"rp_err_other": "The stream stopped.",
Expand Down
1 change: 1 addition & 0 deletions client/src/i18n/locales/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7031,6 +7031,7 @@ library_compressed_hint: "Las imágenes comprimidas necesitan ShadowMount+ para
"rp_phone_be": "Usar este dispositivo como su mando",
"rp_err_keys2": "La PS5 no aceptó el emparejamiento de esta app. Empareja de nuevo: Configurar Jugar › Emparejar.",
"rp_err_in_use": "Otro dispositivo está usando Remote Play en esta PS5, o la PS5 aún está terminando una sesión. Cierra Remote Play en ese dispositivo y pulsa Iniciar.",
"rp_err_console_took_over": "La PS5 terminó la transmisión porque otra cosa la tomó: se usó un mando en la consola, otro dispositivo inició Remote Play o la PS5 se apagó. Pulsa Iniciar para volver a jugar aquí.",
"rp_err_console_ended": "La PS5 terminó la transmisión: {reason}",
"rp_err_no_session": "La transmisión terminó mientras esta página no estaba. Pulsa Iniciar para volver a jugar.",
"rp_err_other": "La transmisión se detuvo.",
Expand Down
1 change: 1 addition & 0 deletions client/src/i18n/locales/fa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7356,6 +7356,7 @@ library_compressed_hint: "برای اجرای ایمیج فشرده به ShadowM
"rp_phone_be": "استفاده از این دستگاه به‌عنوان دسته‌اش",
"rp_err_keys2": "PS5 جفت‌شدن این برنامه را نپذیرفت. دوباره جفت کنید: راه‌اندازی «بازی» › جفت کردن.",
"rp_err_in_use": "دستگاه دیگری از Remote Play روی این PS5 استفاده می‌کند، یا PS5 هنوز جلسه‌ای را تمام می‌کند. Remote Play را روی آن دستگاه ببندید، سپس «شروع» را بزنید.",
"rp_err_console_took_over": "PS5 پخش را تمام کرد چون چیز دیگری آن را گرفت: یک دسته روی کنسول استفاده شد، دستگاه دیگری Remote Play را شروع کرد یا PS5 خاموش شد. برای بازی دوباره در اینجا، شروع را بزنید.",
"rp_err_console_ended": "PS5 پخش را تمام کرد: {reason}",
"rp_err_no_session": "پخش در نبود این صفحه تمام شد. برای بازی دوباره «شروع» را بزنید.",
"rp_err_other": "پخش متوقف شد.",
Expand Down
1 change: 1 addition & 0 deletions client/src/i18n/locales/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7094,6 +7094,7 @@ library_compressed_hint: "Les images compressées nécessitent ShadowMount+ pour
"rp_phone_be": "Utiliser cet appareil comme sa manette",
"rp_err_keys2": "La PS5 n'a pas accepté l'association de cette app. Associez à nouveau : Configurer Jouer › Appairer.",
"rp_err_in_use": "Un autre appareil utilise Remote Play sur cette PS5, ou la PS5 termine encore une session. Fermez Remote Play sur cet appareil, puis appuyez sur Démarrer.",
"rp_err_console_took_over": "La PS5 a arrêté le flux parce que quelque chose d'autre l'a repris : une manette a été utilisée sur la console, un autre appareil a lancé la lecture à distance, ou la PS5 s'est éteinte. Appuyez sur Démarrer pour rejouer ici.",
"rp_err_console_ended": "La PS5 a mis fin au streaming : {reason}",
"rp_err_no_session": "Le streaming s'est terminé pendant l'absence de cette page. Appuyez sur Démarrer pour rejouer.",
"rp_err_other": "Le flux s'est arrêté.",
Expand Down
1 change: 1 addition & 0 deletions client/src/i18n/locales/hi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7092,6 +7092,7 @@ library_compressed_hint: "संपीड़ित इमेज चलाने
"rp_phone_be": "इस डिवाइस को इसका कंट्रोलर बनाएँ",
"rp_err_keys2": "PS5 ने इस ऐप की पेयरिंग स्वीकार नहीं की। फिर से पेयर करें: खेलें सेट अप करें › पेयर करें।",
"rp_err_in_use": "कोई दूसरा डिवाइस इस PS5 पर Remote Play इस्तेमाल कर रहा है, या PS5 अभी एक सेशन खत्म कर रहा है। उस डिवाइस पर Remote Play बंद करें, फिर शुरू करें दबाएँ।",
"rp_err_console_took_over": "PS5 ने स्ट्रीम बंद की क्योंकि किसी और ने उसे ले लिया: कंसोल पर कंट्रोलर इस्तेमाल हुआ, किसी दूसरे डिवाइस ने रिमोट प्ले शुरू किया, या PS5 बंद हुआ। यहाँ फिर खेलने के लिए Start दबाएँ।",
"rp_err_console_ended": "PS5 ने स्ट्रीम खत्म कर दी: {reason}",
"rp_err_no_session": "यह पेज दूर रहते समय स्ट्रीम खत्म हो गई। फिर खेलने के लिए शुरू करें दबाएँ।",
"rp_err_other": "स्ट्रीम रुक गई।",
Expand Down
Loading
Loading