Implement fs::sync (Linux/POSIX)

This commit is contained in:
Nekotekina 2021-02-23 13:09:20 +03:00
parent 014846cf31
commit 090a769bf6
3 changed files with 14 additions and 0 deletions

View file

@ -1929,6 +1929,7 @@ static NEVER_INLINE error_code savedata_op(ppu_thread& ppu, u32 operation, u32 v
// Remove old backup
fs::remove_all(old_path);
fs::sync();
// Backup old savedata
if (!vfs::host::rename(dir_path, old_path, &g_mp_sys_dev_hdd0, false))