Added FSO.Files for use with the API server

Don't ask me. FreeSO is the prime example of dependency hell.
This commit is contained in:
Tony Bark 2024-05-01 04:38:12 -04:00
parent 4b5e584eeb
commit 8fec258215
104 changed files with 14653 additions and 163 deletions

View file

@ -0,0 +1,22 @@
namespace FSO.Files.FAR1
{
/// <summary>
/// Represents an entry in a FAR1 archive.
/// </summary>
public class FarEntry
{
//Decompressed data size - A 4-byte unsigned integer specifying the uncompressed size of the file.
public int DataLength;
//A 4-byte unsigned integer specifying the compressed size of the file; if this and the previous field are the same,
//the file is considered uncompressed. (It is the responsibility of the archiver to only store data compressed when
//its size is less than the size of the original data.) Note that The Sims 1 does not actually support any form
//of compression.
public int DataLength2;
//A 4-byte unsigned integer specifying the offset of the file from the beginning of the archive.
public int DataOffset;
//A 4-byte unsigned integer specifying the length of the filename field that follows.
public short FilenameLength;
//Filename - The name of the archived file; size depends on the previous field.
public string Filename;
}
}