mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-01-09 11:17:20 -03:00
.
This commit is contained in:
parent
07c5ab9894
commit
208b16cb58
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ namespace Ryujinx.Common.Utilities
|
|||
|
||||
public static string SanitizeFileName(string fileName)
|
||||
{
|
||||
var reservedChars = new HashSet<char>(Path.GetInvalidFileNameChars());
|
||||
HashSet<char> reservedChars = [.. Path.GetInvalidFileNameChars()];
|
||||
return string.Concat(fileName.Select(c => reservedChars.Contains(c) ? '_' : c));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue