mirror of
https://github.com/LazyDuchess/OpenTS2.git
synced 2025-01-23 08:41:47 -05:00
Don't clear cache for package when writing to file.
This commit is contained in:
parent
acacea9daa
commit
293b1f7003
1 changed files with 3 additions and 2 deletions
|
@ -196,7 +196,7 @@ namespace OpenTS2.Files.Formats.DBPF
|
|||
}
|
||||
bool _deleted = false;
|
||||
public bool DeleteIfEmpty = true;
|
||||
private readonly DBPFFileChanges _changes;
|
||||
private DBPFFileChanges _changes;
|
||||
public ContentProvider Provider = null;
|
||||
|
||||
/// <summary>
|
||||
|
@ -410,9 +410,10 @@ namespace OpenTS2.Files.Formats.DBPF
|
|||
Filesystem.Write(FilePath, data);
|
||||
var stream = File.OpenRead(FilePath);
|
||||
Read(stream);
|
||||
Changes.Clear();
|
||||
_changes = new DBPFFileChanges(this);
|
||||
return;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Serializes package with all resource changes, additions and deletions.
|
||||
/// </summary>
|
||||
|
|
Loading…
Reference in a new issue