Skip to content

Automatic save backups: include EglantinePS5 saves - #927

Closed
EnriqueWood wants to merge 2 commits into
phantomptr:mainfrom
EnriqueWood:feat/eglantine-save-backups
Closed

EnriqueWood wants to merge 2 commits into
phantomptr:mainfrom
EnriqueWood:feat/eglantine-save-backups

Conversation

@EnriqueWood

@EnriqueWood EnriqueWood commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Description

EglantinePS5 (PPSA98515) keeps its Switch saves as plain files under /data/eglantineps5/user/nand/user/save/0000000000000000/<profile>/<title ID>/. ps5upload only discovers the corresponding ProsperoEden location, so Eglantine's saves are missing from automatic backups and Save Data.

Following #600 and the emulator support in #602/#618, this includes Eglantine in the existing local, console-drive and server backup paths, including the server's “after a game closes” mode. Save Data shows its games in their own Switch / Switch 2 games (EglantinePS5) group, with the existing Back up now and Restore actions.

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Documentation update

Changes Made

  • Discover each nonempty per-profile/per-game save folder under Eglantine's fixed NAND root. Both Switch emulators keep kind: "switch" and the game's 16-digit title ID.
  • Resolve the writer from the save's location. Closing PPSA98515 selects Eglantine saves; interval passes wait while it runs, and restores check that Eglantine is closed. ProsperoEden and its mirror retain their existing writer checks.
  • Keep the two emulators' backup names, histories and retention separate even when both contain the same game and profile. Eglantine reserves bit 28 of the backup user number; the lower 28 bits and the displayed profile stay the same. Existing ProsperoEden backup names remain valid.
  • Add the emulator's name to the Switch listing, group the UI by emulator and show each group's own running status. Older engines without that field still display ProsperoEden. Label Eglantine’s group and per-game badges Switch / Switch 2, since it supports both generations; ProsperoEden keeps Switch. Parameterize the translated labels across all locales.
  • Test discovery, empty/unreadable folders, exact paths, writer/profile validation, independent close/running selection, backup retention and the two UI histories.

Documentation Updates

Did you update the documentation? [x] Yes [ ] No

  • FAQ.md

Regenerated the engine API description; it produces no schema diff.

Testing

  • Engine and desktop cargo fmt --all -- --check, plus cargo clippy --locked --workspace -- -D warnings, on Masterrace with Rust 1.99.1.

  • All four new Eglantine unit tests pass, including the names/retention collision case.

  • The workspace-built engine library harness (--test-threads=4) finishes with 2,284 passed, 31 ignored, 1 failed. The unchanged join::tests::internet::an_internet_guest_joins_over_webrtc_plays_and_gets_the_picture fails at join_tests.rs:154 because this host adds a Tailscale &ts= URL after &lan=, while the assertion assumes the LAN value is last. An isolated run reproduces that assertion before media exchange.

  • The full workspace run was stopped when the unchanged ps5upload-core test installer_client::tests::a_loader_that_comes_back_within_the_window_gets_the_image hung beyond its 5-second retry window; that exact test passes isolated in 1.2 seconds.

  • cargo test --locked -p ps5upload-ctest -- --test-threads=1: 267 passed on Masterrace. make check-no-ftx2 is clean.

  • Client TypeScript, ESLint and Vite build on Masterrace.

  • All 7,053 client tests pass on Masterrace with LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 (the suite expects English text).

  • All three switch-saves.spec.ts Chromium tests pass, including an older-engine response without emulator, the empty state, and independent Eglantine/ProsperoEden groups and histories.

  • i18n coverage and source hashes (21 locales), orphan-key check, script inventory and Git whitespace check.

  • Tested on real PS5 hardware: PS5 Pro, firmware 10.20, helper 12.6.8. Ran the modified engine on Masterrace with its own port and state directory. The Switch API lists Zelda: Ocarina of Time as EglantinePS5. POST /api/save-backup/snapshot creates its namespaced backup; all 14 files (1,018,607 bytes) match direct reads from the console by SHA-256, and a second read confirms the save stayed identical during verification.

  • npm run validate fully green: the unmodified base commit 3a85ccee reproduces the Linux-launcher self-test failure on this NVIDIA machine, three dead-export findings, and three phone-row findings in PlaylistsPanel.tsx/CaptureSetting.tsx. These are outside this change; the checks above are run independently.

  • Built the PS5 payload: this change contains no payload or protocol code.

Checklist

  • My code follows the project's style guidelines.
  • I have performed a self-review.
  • I have updated the documentation.
  • I have tested the change on PS5 hardware and with simulated consoles.

Additional Notes

The after-close selection, running checks and retention isolation are covered by unit tests. The hardware check exercises discovery and snapshot/download verification; it does not exercise an actual emulator-close event or write a restored save to the console.

phantomptr added a commit that referenced this pull request Nov 25, 2026
…cal backup times (#928), EglantinePS5 saves (#927) (#930)

* Fake PS5 games play up to 13.60: the warning moves above 13.60, and the notes say 11.61-13.60 need a kstuff with fake-package support (November 2026)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT

* Saves: show backup times in the device's time zone (#928)

Backup stamps are UTC names from the engine; the backups list, restore
confirm, restored notice and copy-to-user dialog printed them as-is with
"UTC". Parse the stamp as UTC and format it with the app's date helper
in local time. Stored names and restore keys are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT

* e2e: save-copy pins a time zone and expects local backup times (#928)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT

* feat(saves): include EglantinePS5 in automatic backups

* fix(saves): label Eglantine as Switch and Switch 2

* Save sync: EglantinePS5 saves get their own key, so two Switch emulators' saves of one game never sync over each other (#927)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT

* Play Together: a friend sees the whole picture (#929)

The friend's player drew what the decoder said: Chromium's hardware decoder
on Windows (the Windows app's WebView2) reports a 1080p frame as showing
only its top-left part, so that part was drawn enlarged and cut off. The
host's player already puts this right from the stream's SPS (#538/#575);
the friend's player now does the same, and starts the decoder over in
software when the frame itself is cut down.

In the app, the friend's picture box is also kept within the window's
height (it was 16:9 at full width, its bottom below a 1080p window).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT

* Launch: a PS5 game that won't start on 11.61-13.60 says a fake package needs the November 2026 kstuff; the above-13.60 hint drops the old A53 promise

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT

* e2e: Upload & Install note gives the 13.60 rule

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT

* Payloads: kstuff-lite covers 1.00-13.60; fake PS5 games above 11.60 need the November 2026 build

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT

* 12.6.28 release notes; catch up to 12.6.27

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT

* Rebuild the embedded join and pad pages (#929 player fix)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Enrique Wood <ewoodg@hotmail.com>
@phantomptr

Copy link
Copy Markdown
Owner

Thank you! This is in 12.6.28. Your two commits went in as they are, under your name, plus one small fix on top: two-console save sync keyed every Switch save by game only, so with both emulators present, one emulator's save could sync over the other's. EglantinePS5 saves now get their own sync key, and ProsperoEden keeps its old one so existing sync pairs still match. There's a test for both emulators on one console.

Closing this, since the changes are on main through the release PR (#930).

@phantomptr phantomptr closed this Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants