nesrak1 / UABEA

c# uabe for newer versions of unity
MIT License
1.05k stars 135 forks source link

Can't save the file after editing #299

Open ZizekSlavoj opened 6 months ago

ZizekSlavoj commented 6 months ago

Describe the bug

I opened a resource file and edit it(just edit one number).But when I clicked "save" or "save as".It alerted that "There was a problem while writing the file: System.ObjectDisposedException: Cannot access a closed Stream. at System.IO.Strategies.BufferedFileStreamStrategy.Seek(Int64 offset, SeekOrigin origin) at System.IO.FileStream.set_Position(Int64 value) at AssetsTools.NET.AssetsFileReader.set_Position(Int64 value) at AssetsTools.NET.AssetsFile.Write(AssetsFileWriter writer, Int64 filePos, List`1 replacers, ClassDatabaseFile typeMeta) at UABEAvalonia.InfoWindow.SaveFile(Boolean saveAs) in D:\a\UABEA\UABEA\UABEAvalonia\InfoWindow.axaml.cs:line 576" Snipaste_2024-01-01_14-10-02

nesrak1 commented 6 months ago

Pretty sure this is #265 . Just make sure nothing else has the file open before you save.