mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-07-13 09:41:57 -04:00
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:
parent
4b5e584eeb
commit
8fec258215
104 changed files with 14653 additions and 163 deletions
22
server/tso.files/FAR1/FarEntry.cs
Executable file
22
server/tso.files/FAR1/FarEntry.cs
Executable 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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue