Skip to content
Closed
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
10 changes: 10 additions & 0 deletions FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,16 @@ known), per profile ("Console" is the console's own save), with Back up now and
put one back, close ProsperoEden and press Restore on the version you want; the save there now is
backed up first. A restore is refused while ProsperoEden runs.

EglantinePS5 (PPSA98515) is included too. Its saves stay in
`/data/eglantineps5/user/nand/user/save/0000000000000000/<profile>/<title ID>/`,
regardless of where its games are kept. Each profile and game's folder is backed up by the same
local, console-drive and server passes, including after EglantinePS5 closes. Save Data lists them
in their own “Switch / Switch 2 games (EglantinePS5)” group. A restore waits for EglantinePS5 to close and
backs up the save there first. Its backups have their own profile numbers, so
copies of the same game and profile in ProsperoEden stay separate, including retention. The
profile label still shows the emulator's profile, and older ProsperoEden backup names stay valid.


The saves of the PS2 emulators Crux2 (PPSA99249) and PS5SX2 (PPSA99203) are backed up the same
way, after the emulator closes: its memory cards folder and its saved states folder, each as one
save under the emulator's own title ID (user 0 the cards, user 1 the saved states). Crux2 keeps
Expand Down
27 changes: 27 additions & 0 deletions client/e2e/switch-saves.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,30 @@ test("Saves shows no Switch group when ProsperoEden has no saves", async ({ page
await expect(page.locator('[data-title-id="PPSA01234"]')).toBeVisible({ timeout: 30_000 });
await expect(page.getByTestId("switch-saves")).toHaveCount(0);
});


test("Eglantine and Eden show independent groups and backup histories", async ({ page }) => {
const eglantineRoot = "/data/eglantineps5/user/nand/user/save/0000000000000000";
const saves = [
{ title_id: GAME, user_id: 0x01f1e1d1, path: `${ROOT}/${PROFILE}/${GAME}`, size: 17, mtime: 1761800000, kind: "switch", emulator: "ProsperoEden", running: true },
{ title_id: GAME, user_id: 0x11f1e1d1, path: `${eglantineRoot}/${PROFILE}/${GAME}`, size: 20, mtime: 1761800000, kind: "switch", emulator: "EglantinePS5", running: false },
{ title_id: GAME, user_id: 0x10000000, path: `${eglantineRoot}/${"0".repeat(32)}/${GAME}`, size: 3, mtime: 1761800000, kind: "switch", emulator: "EglantinePS5", running: false },
];
const { handler } = mockEngine(saves, true);
await page.addInitScript((h) => window.localStorage.setItem("ps5upload.host", h), HOST);
await page.route((url) => url.pathname.startsWith("/api/"), handler);
await page.goto("/saves", { waitUntil: "domcontentloaded" });
const eden = page.locator('[data-testid="switch-saves"][data-emulator="ProsperoEden"]');
const eglantine = page.locator('[data-testid="switch-saves"][data-emulator="EglantinePS5"]');
await expect(eglantine.getByRole("heading", { name: "Switch / Switch 2 games (EglantinePS5)" })).toBeVisible({ timeout: 30_000 });
await expect(eglantine.getByText("Switch / Switch 2", { exact: true })).toBeVisible();
await expect(eden.getByTestId("switch-saves-note")).toHaveText("ProsperoEden is running. Close it before restoring.");
await expect(eglantine.getByTestId("switch-saves-note")).toHaveText("Close EglantinePS5 before restoring.");
const rows = eglantine.getByTestId("switch-save");
await expect(rows.nth(0)).toContainText("Profile 1F1E1D1");
await expect(rows.nth(1)).toContainText("Console");
// Eden's backup of the exact same game and profile must not appear under Eglantine.
await expect(eden.getByRole("button", { name: "Restore", exact: true })).toHaveCount(1);
await expect(eglantine.getByRole("button", { name: "Restore", exact: true })).toHaveCount(0);
await expect(rows.nth(0)).toContainText("No backups yet.");
});
10 changes: 6 additions & 4 deletions client/src/api/saveBackup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,16 +322,18 @@ export const saveFoldersApi = {
call<{ ok: boolean }>("/folders/restore", { ...LONG, method: "POST", body: JSON.stringify(req) }),
};

/** A save of ProsperoEden, the Switch emulator (PPSA99008): `title_id` is the game's 16-hex-digit
* title ID and `user_id` its profile's first 7 hex digits (0 for the console's own save). */
/** A Switch emulator's per-game save. `user_id` keeps the profile's first 7 hex digits
* in its lower 28 bits; bit 28 separates EglantinePS5 backups from ProsperoEden. */
export interface SwitchSave {
title_id: string;
user_id: number;
path: string;
size: number;
mtime: number;
kind: "switch";
/** ProsperoEden runs now; null when the console did not say. */
/** Omitted by engines that only know ProsperoEden. */
emulator?: string;
/** This save's emulator runs now; null when the console did not say. */
running: boolean | null;
}

Expand Down Expand Up @@ -405,7 +407,7 @@ export const saveBackupApi = {
/** The newest backup of each game and user in the backup folder. */
latest: async () =>
(await call<{ latest: Array<{ title_id: string; user_id: number; stamp: string }> }>("/latest")).latest,
/** ProsperoEden's saves on a console (bare IP): none when it is not installed. */
/** Switch emulators' saves on a console (bare IP): none when neither has saved. */
switchSaves: (addr: string) =>
call<{ saves: SwitchSave[]; running: boolean | null }>(`/switch?addr=${encodeURIComponent(addr)}`),
/** The PlayStation 2 emulators' and PSSwanStation's cards and saved states on a console (bare
Expand Down
8 changes: 4 additions & 4 deletions client/src/i18n/locales/ar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7696,10 +7696,10 @@ helper_copies_failed_body: "لا يزال المساعد القديم: {list}.
"rp_keyboard_hint": "Enter: تم. Esc: إلغاء. أثناء الكتابة هنا لا تصل أي مفاتيح أو ضغطات من وحدة التحكم إلى اللعبة.",
"rp_settings_paused": "لا تصل أي مفاتيح أو ضغطات من وحدة التحكم إلى اللعبة ما دامت الإعدادات مفتوحة.",
"rp_picture_tools": "أدوات الصورة",
"saves_switch_title": "ألعاب Switch (ProsperoEden)",
"saves_switch_running": "ProsperoEden يعمل. أغلقه قبل الاستعادة.",
"saves_switch_close_note": "أغلق ProsperoEden قبل الاستعادة.",
"saves_switch_badge": "Switch",
"saves_switch_title": "ألعاب {platform} ({emulator})",
"saves_switch_running": "{emulator} يعمل. أغلقه قبل الاستعادة.",
"saves_switch_close_note": "أغلق {emulator} قبل الاستعادة.",
"saves_switch_badge": "{platform}",
"saves_switch_console": "الجهاز",
"saves_switch_profile": "الملف الشخصي {id}",
"saves_switch_changed": "آخر تغيير {when}",
Expand Down
8 changes: 4 additions & 4 deletions client/src/i18n/locales/bn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7696,10 +7696,10 @@ helper_copies_failed_body: "এখনও পুরোনো হেল্পা
"rp_keyboard_hint": "Enter: হয়ে গেছে। Esc: বাতিল। আপনি এখানে টাইপ করার সময় গেম কোনো কী বা কন্ট্রোলার চাপ পায় না।",
"rp_settings_paused": "সেটিংস খোলা থাকাকালীন গেম কোনো কী বা কন্ট্রোলারের চাপ পায় না।",
"rp_picture_tools": "ছবির টুল",
"saves_switch_title": "Switch গেম (ProsperoEden)",
"saves_switch_running": "ProsperoEden চলছে। রিস্টোর করার আগে এটি বন্ধ করুন।",
"saves_switch_close_note": "রিস্টোর করার আগে ProsperoEden বন্ধ করুন।",
"saves_switch_badge": "Switch",
"saves_switch_title": "{platform} গেম ({emulator})",
"saves_switch_running": "{emulator} চলছে। রিস্টোর করার আগে এটি বন্ধ করুন।",
"saves_switch_close_note": "রিস্টোর করার আগে {emulator} বন্ধ করুন।",
"saves_switch_badge": "{platform}",
"saves_switch_console": "কনসোল",
"saves_switch_profile": "প্রোফাইল {id}",
"saves_switch_changed": "শেষ পরিবর্তন {when}",
Expand Down
8 changes: 4 additions & 4 deletions client/src/i18n/locales/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7704,10 +7704,10 @@ helper_copies_failed_body: "Weiterhin der alte Helfer: {list}. Die PS5 startet i
"rp_keyboard_hint": "Enter: fertig. Esc: abbrechen. Während du hier tippst, bekommt das Spiel keine Tasten und keine Controller-Eingaben.",
"rp_settings_paused": "Solange die Einstellungen offen sind, bekommt das Spiel keine Tasten und keine Controller-Eingaben.",
"rp_picture_tools": "Bildwerkzeuge",
"saves_switch_title": "Switch-Spiele (ProsperoEden)",
"saves_switch_running": "ProsperoEden läuft. Schließe es vor dem Wiederherstellen.",
"saves_switch_close_note": "Schließe ProsperoEden vor dem Wiederherstellen.",
"saves_switch_badge": "Switch",
"saves_switch_title": "{platform}-Spiele ({emulator})",
"saves_switch_running": "{emulator} läuft. Schließe es vor dem Wiederherstellen.",
"saves_switch_close_note": "Schließe {emulator} vor dem Wiederherstellen.",
"saves_switch_badge": "{platform}",
"saves_switch_console": "Konsole",
"saves_switch_profile": "Profil {id}",
"saves_switch_changed": "Zuletzt geändert {when}",
Expand Down
8 changes: 4 additions & 4 deletions client/src/i18n/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8005,10 +8005,10 @@ helper_copies_failed_body: "Still the old helper: {list}. The PS5 starts it agai
"rp_keyboard_hint": "Enter: done. Esc: cancel. While you type here, the game gets no keys or controller presses.",
"rp_settings_paused": "The game gets no keys or controller presses while Settings is open.",
"rp_picture_tools": "Picture tools",
"saves_switch_title": "Switch games (ProsperoEden)",
"saves_switch_running": "ProsperoEden is running. Close it before restoring.",
"saves_switch_close_note": "Close ProsperoEden before restoring.",
"saves_switch_badge": "Switch",
"saves_switch_title": "{platform} games ({emulator})",
"saves_switch_running": "{emulator} is running. Close it before restoring.",
"saves_switch_close_note": "Close {emulator} before restoring.",
"saves_switch_badge": "{platform}",
"saves_switch_console": "Console",
"saves_switch_profile": "Profile {id}",
"saves_switch_changed": "Last changed {when}",
Expand Down
8 changes: 4 additions & 4 deletions client/src/i18n/locales/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7649,10 +7649,10 @@ helper_copies_failed_body: "Sigue siendo el ayudante antiguo: {list}. La PS5 lo
"rp_keyboard_hint": "Intro: listo. Esc: cancelar. Mientras escribes aquí, el juego no recibe teclas ni pulsaciones del mando.",
"rp_settings_paused": "El juego no recibe teclas ni pulsaciones del mando mientras los ajustes están abiertos.",
"rp_picture_tools": "Herramientas de imagen",
"saves_switch_title": "Juegos de Switch (ProsperoEden)",
"saves_switch_running": "ProsperoEden está abierto. Ciérralo antes de restaurar.",
"saves_switch_close_note": "Cierra ProsperoEden antes de restaurar.",
"saves_switch_badge": "Switch",
"saves_switch_title": "Juegos de {platform} ({emulator})",
"saves_switch_running": "{emulator} está abierto. Ciérralo antes de restaurar.",
"saves_switch_close_note": "Cierra {emulator} antes de restaurar.",
"saves_switch_badge": "{platform}",
"saves_switch_console": "Consola",
"saves_switch_profile": "Perfil {id}",
"saves_switch_changed": "Último cambio {when}",
Expand Down
8 changes: 4 additions & 4 deletions client/src/i18n/locales/fa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7974,10 +7974,10 @@ helper_copies_failed_body: "هنوز کمک‌یار قدیمی است: {list}.
"rp_keyboard_hint": "Enter: تمام. Esc: لغو. تا وقتی اینجا تایپ می‌کنید، بازی هیچ کلید یا فشار دسته‌ای دریافت نمی‌کند.",
"rp_settings_paused": "تا وقتی تنظیمات باز است، بازی هیچ کلید یا فشار دسته‌ای دریافت نمی‌کند.",
"rp_picture_tools": "ابزارهای تصویر",
"saves_switch_title": "بازی‌های Switch (ProsperoEden)",
"saves_switch_running": "ProsperoEden در حال اجراست. پیش از بازیابی آن را ببندید.",
"saves_switch_close_note": "پیش از بازیابی ProsperoEden را ببندید.",
"saves_switch_badge": "Switch",
"saves_switch_title": "بازی‌های {platform} ({emulator})",
"saves_switch_running": "{emulator} در حال اجراست. پیش از بازیابی آن را ببندید.",
"saves_switch_close_note": "پیش از بازیابی {emulator} را ببندید.",
"saves_switch_badge": "{platform}",
"saves_switch_console": "کنسول",
"saves_switch_profile": "پروفایل {id}",
"saves_switch_changed": "آخرین تغییر {when}",
Expand Down
8 changes: 4 additions & 4 deletions client/src/i18n/locales/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7712,10 +7712,10 @@ helper_copies_failed_body: "Toujours l'ancien assistant : {list}. La PS5 le rela
"rp_keyboard_hint": "Entrée : terminé. Échap : annuler. Pendant la saisie ici, le jeu ne reçoit ni touches ni appuis de manette.",
"rp_settings_paused": "Le jeu ne reçoit ni touches ni appuis de manette tant que les réglages sont ouverts.",
"rp_picture_tools": "Outils d'image",
"saves_switch_title": "Jeux Switch (ProsperoEden)",
"saves_switch_running": "ProsperoEden est ouvert. Fermez-le avant de restaurer.",
"saves_switch_close_note": "Fermez ProsperoEden avant de restaurer.",
"saves_switch_badge": "Switch",
"saves_switch_title": "Jeux {platform} ({emulator})",
"saves_switch_running": "{emulator} est ouvert. Fermez-le avant de restaurer.",
"saves_switch_close_note": "Fermez {emulator} avant de restaurer.",
"saves_switch_badge": "{platform}",
"saves_switch_console": "Console",
"saves_switch_profile": "Profil {id}",
"saves_switch_changed": "Modifié le {when}",
Expand Down
8 changes: 4 additions & 4 deletions client/src/i18n/locales/hi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7710,10 +7710,10 @@ helper_copies_failed_body: "अब भी पुराना हेल्पर:
"rp_keyboard_hint": "Enter: हो गया। Esc: रद्द करें। जब तक आप यहाँ टाइप करते हैं, गेम को कोई कुंजी या कंट्रोलर दबाव नहीं मिलता।",
"rp_settings_paused": "सेटिंग्स खुली रहने तक गेम को कोई कुंजी या कंट्रोलर का दबाव नहीं मिलता।",
"rp_picture_tools": "चित्र के टूल",
"saves_switch_title": "Switch गेम (ProsperoEden)",
"saves_switch_running": "ProsperoEden चल रहा है। रीस्टोर करने से पहले इसे बंद करें।",
"saves_switch_close_note": "रीस्टोर करने से पहले ProsperoEden बंद करें।",
"saves_switch_badge": "Switch",
"saves_switch_title": "{platform} गेम ({emulator})",
"saves_switch_running": "{emulator} चल रहा है। रीस्टोर करने से पहले इसे बंद करें।",
"saves_switch_close_note": "रीस्टोर करने से पहले {emulator} बंद करें।",
"saves_switch_badge": "{platform}",
"saves_switch_console": "कंसोल",
"saves_switch_profile": "प्रोफ़ाइल {id}",
"saves_switch_changed": "आख़िरी बदलाव {when}",
Expand Down
8 changes: 4 additions & 4 deletions client/src/i18n/locales/hu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7988,10 +7988,10 @@ helper_copies_failed_body: "Még mindig a régi segédprogram: {list}. A PS5 min
"rp_keyboard_hint": "Enter: kész. Esc: mégse. Amíg itt gépelsz, a játék nem kap billentyűt és kontrollergombot.",
"rp_settings_paused": "Amíg a Beállítások nyitva vannak, a játék nem kap billentyűt és kontrollergombot.",
"rp_picture_tools": "Képeszközök",
"saves_switch_title": "Switch-játékok (ProsperoEden)",
"saves_switch_running": "A ProsperoEden fut. Zárd be visszaállítás előtt.",
"saves_switch_close_note": "Zárd be a ProsperoEdent visszaállítás előtt.",
"saves_switch_badge": "Switch",
"saves_switch_title": "{platform}-játékok ({emulator})",
"saves_switch_running": "A {emulator} fut. Zárd be visszaállítás előtt.",
"saves_switch_close_note": "Zárd be a {emulator}t visszaállítás előtt.",
"saves_switch_badge": "{platform}",
"saves_switch_console": "Konzol",
"saves_switch_profile": "{id} profil",
"saves_switch_changed": "Utolsó módosítás: {when}",
Expand Down
8 changes: 4 additions & 4 deletions client/src/i18n/locales/id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7705,10 +7705,10 @@ helper_copies_failed_body: "Masih helper lama: {list}. PS5 menjalankannya lagi s
"rp_keyboard_hint": "Enter: selesai. Esc: batal. Selama Anda mengetik di sini, game tidak menerima tombol keyboard atau kontroler.",
"rp_settings_paused": "Game tidak menerima tombol keyboard atau kontroler selama Pengaturan terbuka.",
"rp_picture_tools": "Alat gambar",
"saves_switch_title": "Game Switch (ProsperoEden)",
"saves_switch_running": "ProsperoEden sedang berjalan. Tutup sebelum memulihkan.",
"saves_switch_close_note": "Tutup ProsperoEden sebelum memulihkan.",
"saves_switch_badge": "Switch",
"saves_switch_title": "Game {platform} ({emulator})",
"saves_switch_running": "{emulator} sedang berjalan. Tutup sebelum memulihkan.",
"saves_switch_close_note": "Tutup {emulator} sebelum memulihkan.",
"saves_switch_badge": "{platform}",
"saves_switch_console": "Konsol",
"saves_switch_profile": "Profil {id}",
"saves_switch_changed": "Terakhir diubah {when}",
Expand Down
8 changes: 4 additions & 4 deletions client/src/i18n/locales/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7649,10 +7649,10 @@ helper_copies_failed_body: "Ancora il vecchio helper: {list}. La PS5 lo riavvia
"rp_keyboard_hint": "Invio: fatto. Esc: annulla. Mentre scrivi qui, il gioco non riceve tasti né pressioni del controller.",
"rp_settings_paused": "Mentre le Impostazioni sono aperte il gioco non riceve tasti né pressioni del controller.",
"rp_picture_tools": "Strumenti immagine",
"saves_switch_title": "Giochi Switch (ProsperoEden)",
"saves_switch_running": "ProsperoEden è aperto. Chiudilo prima di ripristinare.",
"saves_switch_close_note": "Chiudi ProsperoEden prima di ripristinare.",
"saves_switch_badge": "Switch",
"saves_switch_title": "Giochi {platform} ({emulator})",
"saves_switch_running": "{emulator} è aperto. Chiudilo prima di ripristinare.",
"saves_switch_close_note": "Chiudi {emulator} prima di ripristinare.",
"saves_switch_badge": "{platform}",
"saves_switch_console": "Console",
"saves_switch_profile": "Profilo {id}",
"saves_switch_changed": "Ultima modifica {when}",
Expand Down
8 changes: 4 additions & 4 deletions client/src/i18n/locales/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7715,10 +7715,10 @@ helper_copies_failed_body: "古いヘルパーのままです: {list}。PS5 は
"rp_keyboard_hint": "Enter で完了、Esc でキャンセル。ここで入力している間、キーやコントローラーの入力はゲームに送られません。",
"rp_settings_paused": "設定を開いている間、キーやコントローラーの入力はゲームに送られません。",
"rp_picture_tools": "映像ツール",
"saves_switch_title": "Switch のゲーム (ProsperoEden)",
"saves_switch_running": "ProsperoEden が起動中です。復元する前に閉じてください。",
"saves_switch_close_note": "復元する前に ProsperoEden を閉じてください。",
"saves_switch_badge": "Switch",
"saves_switch_title": "{platform} のゲーム ({emulator})",
"saves_switch_running": "{emulator} が起動中です。復元する前に閉じてください。",
"saves_switch_close_note": "復元する前に {emulator} を閉じてください。",
"saves_switch_badge": "{platform}",
"saves_switch_console": "本体",
"saves_switch_profile": "プロファイル {id}",
"saves_switch_changed": "最終更新 {when}",
Expand Down
Loading