Class ModifiedFileEntry
- Namespace
- FishMMO.Patcher
- Assembly
- Updater.dll
public class ModifiedFileEntry
- Inheritance
-
ModifiedFileEntry
- Inherited Members
Properties
Encoding
How the patch data is encoded: EncodingZstd for a zstd frame that uses the source file as its reference prefix; null for the original same-offset chunk format (Patcher).
[JsonPropertyName("encoding")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string Encoding { get; set; }
Property Value
FinalFileSize
[JsonPropertyName("final_file_size")]
public long FinalFileSize { get; set; }
Property Value
NewHash
[JsonPropertyName("new_hash")]
public string NewHash { get; set; }
Property Value
OldHash
[JsonPropertyName("old_hash")]
public string OldHash { get; set; }
Property Value
PatchDataEntryName
[JsonPropertyName("patch_data_entry_name")]
public string PatchDataEntryName { get; set; }
Property Value
RelativePath
[JsonPropertyName("path")]
public string RelativePath { get; set; }
Property Value
SourcePath
The file in the old install the patch data was made against, when it is not
RelativePath: a file the new build renamed. Addressables names each bundle
after a hash, and a bundle whose dependency changed is renamed even though only a few
bytes inside it differ; the delta against the old name costs kilobytes where shipping
it whole cost its full size. The old path is listed in deleted_files as well.
Null means the same path. Format 2 only.
[JsonPropertyName("source_path")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string SourcePath { get; set; }
Property Value
TempPatchFilePath
[JsonIgnore]
public string TempPatchFilePath { get; set; }
Property Value
UnixMode
POSIX permission bits the patched file should carry, or null to keep whatever the file being replaced already had.
[JsonPropertyName("unix_mode")]
public int? UnixMode { get; set; }
Property Value
- int?
Remarks
Keeping the existing bits is the right default and the one the updater uses when this is absent: the patched result is written to a fresh temp file at 0644 and then moved over the target, so without carrying the mode across, every patch that touches the Linux client executable leaves the game unable to start.