Skip to content

Commit

Permalink
Update StringList.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tecmo committed Nov 29, 2024
1 parent 4490748 commit 547758b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Ultima/StringList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public sealed class StringList
{
private int _header1;
private short _header2;
private bool _compression;//Tecmo: Store compression status of opened file
private bool _compression;//Store compression status of opened file

public List<StringEntry> Entries { get; private set; }
public string Language { get; }
Expand Down Expand Up @@ -119,7 +119,9 @@ public void SaveStringList(string fileName)
byte[] data = memoryStream.ToArray();

if (_compression)
{
data = BwtCompress.Compress(data);
}

// Write the final output to the file
using (var fileStream = new FileStream(fileName, FileMode.Create, FileAccess.Write, FileShare.None))
Expand Down

0 comments on commit 547758b

Please sign in to comment.