mirror of
https://github.com/Ale32bit/Capy64.git
synced 2025-01-18 18:46:43 +00:00
Allow deletion of open files
This commit is contained in:
parent
d744432a50
commit
8cdf2148ed
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue