0
0
Fork 0
mirror of https://github.com/GreemDev/Ryujinx.git synced 2024-12-22 22:45:46 +00:00

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 2023-04-16 11:19:33 +02:00 committed by GitHub
parent d5e4378aea
commit baf8752e74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -730,7 +730,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, TaskDialog taskDialog) private static void MoveAllFilesOver(string root, string dest, TaskDialog taskDialog)

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) private static void MoveAllFilesOver(string root, string dest, UpdateDialog dialog)