Skip to content

Commit

Permalink
Fix the converter not being able to read saves used by another process (
Browse files Browse the repository at this point in the history
#1686) #patch
  • Loading branch information
IhateTrains authored Jan 4, 2024
1 parent 25febe6 commit 6e45e25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ImperatorToCK3/Imperator/World.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6e45e25

Please sign in to comment.