Ensure the updater doesn't delete hidden or system files (#4626)

* Copy desktop.ini to update directory if it exists in HomeDir

* EnumerateFilesToDelete() exclude files with "Hidden" and "System" attributes
This commit is contained in:
Vincenzo Nizza authored and GitHub committed 2023-04-16 09:19:33 +00:00
1 parent d5e4378aea
commit baf8752e74
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -577,7 +577,7 @@ namespace Ryujinx.Modules
}
}
return files;
return files.Where(f => !new FileInfo(f).Attributes.HasFlag(FileAttributes.Hidden | FileAttributes.System));
}
private static void MoveAllFilesOver(string root, string dest, UpdateDialog dialog)