Skip to content

cellSaveData improvements#6637

Merged
3 commits merged intomasterfrom
unknown repository
Sep 25, 2019
Merged

cellSaveData improvements#6637
3 commits merged intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Sep 24, 2019

Add savedata maintenance routine:

  1. Removes junk backup directories
  2. Fixes interrupted save data process in edge case
    This case can happen if emu terminates between two atomic renames.

Also use directory renaming technique for delete op.

Improve sys_fs_unlink and sys_fs_rmdir behaviour on Windows.

@ghost ghost changed the title cellSaveData: add auto maintenance routine in Emu.Init() cellSaveData improvements Sep 25, 2019
This routine:
1) Removes junk backup directories
2) Fixes interrupted save data process in edge case
This case can happen if emu terminates between two atomic renames.

Also use directory renaming technique for delete op.
Also rewrite recreate operation to be part of atomic process.
Make sure the changes which are already done are written.
Possibly fixes sys_fs_rmdir and other cases of directory removal.
Make sure the directory with deleted files always becomes empty.
For this purpose, temp files are moved to the root of the device.
This pull request was closed.
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.

1 participant