diff --git a/Capy64/Runtime/Libraries/FileSystem.cs b/Capy64/Runtime/Libraries/FileSystem.cs index 4fb3e1e..a6c9ed3 100644 --- a/Capy64/Runtime/Libraries/FileSystem.cs +++ b/Capy64/Runtime/Libraries/FileSystem.cs @@ -541,10 +541,9 @@ public class FileSystem : IPlugin } } - var fileStream = File.Open(path, fileMode, fileAccess, FileShare.ReadWrite); + var fileStream = File.Open(path, fileMode, fileAccess, FileShare.ReadWrite | FileShare.Delete); ObjectManager.PushObject(L, fileStream); - //L.PushObject(fileStream); L.SetMetaTable(FileHandle.ObjectType); return 1;