Skip to content

Releases: MaikelChan/AFSLib

v2.0.3

10 Sep 23:40
e3d99ab
Compare
Choose a tag to compare

Added

  • Added AllAttributesContainEntrySize property easily check if all the attributes of an AFS archive contain the entry size or a customized data.

Fixed

  • Fixed interpreting 0 byte files as Null entries, which broke games like Urban Reign.

Deprecated

  • Deprecated the UnknownAttribute and related properties. It is now called CustomData.

v2.0.2

26 Oct 00:29
f2c67c9
Compare
Choose a tag to compare

Fixed

  • Fixed regression: now it's able to handle AFS files with invalid dates.

v.2.0.1

06 Sep 19:14
93b2374
Compare
Choose a tag to compare
  • Fixed missing XML documentation in NuGet package.

v2.0.0

06 Sep 18:00
e0f3fac
Compare
Choose a tag to compare

Added

  • Entry block alignment is now configurable.
  • AFS constructor now accepts a file path.
  • Added method to add all files in a directory and, optionally, its subdirectories.
  • Added a method to save directly to a file.
  • AddEntry* methods now return a reference to the added entry.
  • Implemented null entries. They are created with NullEntry, and fixed all issues related to not being able to remove them or add them.

Changed

  • AFS class is now IDisposable. Dispose needs to be called to close the internal FileStream in case the AFS object is created from a file.
  • When adding an entry, null entry names are considered as string.Empty.
  • Improved XML documentation.
  • Renamed Name to SanitizedName and RawName to Name. This makes more sense because Name is the actual name of an entry, and SanitizedName is the autogenerated read-only name that contains no invalid characters.
  • UnknownAttribute and LastWriteTime properties are now modifiable.

Deprecated

  • Deprecated AddEntry, ExtractEntry and ExtractAllEntries. Now they are called AddEntryFromFile, AddEntryFromStream, ExtractEntryToFile, ExtractAllEntriesToDirectory.
  • In an entry, Rename has been deprecated. Use the Name property instead.
  • In an entry, Unknown property has been deprecated. Use the UnknownAttribute property instead.

Fixed

  • Make sure an entry name cannot be longer than 32 characters.

v1.0.1

01 Sep 02:36
ea2b6b4
Compare
Choose a tag to compare

[1.0.1] - 2021-09-01

Added

  • Be able to add an entry from a Stream to an AFS file.

Fixed

  • Fixed an exception message.