Commit Graph
4 Commits
Author SHA1 Message Date
ABEL VALENCIANA 32b268fe0f fix(savedata): create exclusive temporary files for save replacement 2026-10-19 06:33:13 -06:00
Ori ShamirandClaude Opus 5.5 f6fd60c6ca fix(libSceSaveData.native): write only the changed bytes of save-data memory
sceSaveDataSetSaveDataMemory2 read the whole slot file, patched it and
replaced it through a temporary file on every call, so each call cost a
full rewrite of the slot (up to 32 MiB). The changed ranges now go to a
small journal that is staged through the slot's temporary file and
renamed into place, then written into the slot file in place, and the
journal is removed. A journal left by an interrupted call is replayed by
the next setup, get, set or sync of that slot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 22:43:50 +03:00
RomainROCH 9c07fc0a98 style(savedata): remove namespace comment 2026-10-01 20:35:18 +02:00
RomainROCH d7f89a6654 fix(savedata): preserve existing saves on replace failure 2026-10-01 16:40:38 +02:00