Use more lenient file reading

This commit is contained in:
Matt Nadareski
2023-12-13 15:45:40 -05:00
parent aaa6422921
commit 9b5d51884c

View File

@@ -20,7 +20,7 @@ namespace SabreTools.Serialization
return null;
// Open the file for deserialization
var stream = File.OpenRead(path);
var stream = File.Open(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
// Get the extension to determine if additional handling is needed
string ext = Path.GetExtension(path).TrimStart('.');