diff --git a/ImperatorToCK3/Imperator/World.cs b/ImperatorToCK3/Imperator/World.cs index f92c347fa..f3d86c6b8 100644 --- a/ImperatorToCK3/Imperator/World.cs +++ b/ImperatorToCK3/Imperator/World.cs @@ -408,11 +408,11 @@ private void VerifySave(string saveGamePath) { } } private static BufferedReader ProcessDebugModeSave(string saveGamePath) { - return new BufferedReader(File.Open(saveGamePath, FileMode.Open)); + return new BufferedReader(File.Open(saveGamePath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)); } private static BufferedReader ProcessCompressedEncodedSave(string saveGamePath) { Helpers.RakalyCaller.MeltSave(saveGamePath); - return new BufferedReader(File.Open("temp/melted_save.rome", FileMode.Open)); + return new BufferedReader(File.Open("temp/melted_save.rome", FileMode.Open, FileAccess.Read, FileShare.ReadWrite)); } private readonly IgnoredKeywordsSet ignoredTokens = new();