Commit Graph
6 Commits
Author SHA1 Message Date
Dean Galvin 9b9e850d90 Merge commit 'd8b60b46ed425b117b6fae18900fe6ab81ed6661' into HEAD
# Conflicts:
#	core/libs/prx/libSceSaveData.native/Export.cpp
2026-11-02 03:23:34 +13:00
Dean d94fad17de Merge pull request #8285 from DealPotato/feat/savedata-mount2
feat(savedata): add sceSaveDataMount2
2026-11-02 03:22:25 +13:00
MarcZX10 4385554953 feat(libSceSaveData.native): refuse a new save the host volume cannot hold
With ANYPS5_FREE_SPACE=host, creating a save first checks the free space of
the save directory's volume against the save's size, 16384 blocks when the
title passes none. A save that does not fit fails with NO_SPACE_FS and
reports the blocks missing in required_blocks, and no directory is made.
If the volume cannot be queried, the create keeps today's behaviour and one
line goes to stderr. Opening an existing save and the default fixed mode are
unchanged.
2026-10-30 18:48:56 +00:00
Yunus Shaikh 637b601bfb fix(libSceSaveData): restore a backup through a staged copy and roll back a failed swap
sceSaveDataRestoreBackupData used to remove the live save's files and
copy the backup over them, so a copy that failed half way left neither.
It now copies the backup, its .param and its blocks file to
_sd_restore_tmp/<dir>, checks that the copy has every entry at its size,
and flushes it. Then it moves the live save, .param and blocks file to
_sd_restore_old/<dir>, moves the staged copy into place and removes the
old one. A failed move puts back everything already moved, so the live
save stays as it was. The staging roots sit next to _sd, not in it,
where sceSaveDataDirNameSearch would list them.

SaveDataSetFileStepHook_nid_no_patch sets a function that is called
before each copy and rename of the backup and restore paths with a step
name and the path written; when it returns false that step fails. It
does nothing unless a test sets it.
2026-10-29 10:08:24 +00:00
DealPotato bd36686417 Merge #7780's head 7394d6254 into feat/savedata-mount2
# Conflicts:
#	core/libs/tests/GuestSaveDataPs4.cpp
2026-10-26 02:11:23 +03:00
boykopovar f38d29fd08 refactor(sdk): add canonical headers for remaining libraries 2026-10-24 23:17:42 +03:00