private SettingsHeader ParseSettingsHeader(UnrealBinaryReader reader) { SettingsHeader header = new SettingsHeader { Unknown1 = reader.ReadBytes(18), Branch = reader.ReadFString(), Unknown2 = reader.ReadInt32(), Unknown3 = reader.ReadByte(), Unknown4 = reader.ReadByte() }; return(header); }
public FortniteSettings ReadSettings() { FortniteSettings settings = new FortniteSettings(); using UnrealBinaryReader decompressedStream = Decompress(); #if DEBUG File.WriteAllBytes("decompressed.dat", decompressedStream.ReadBytes((int)decompressedStream.BaseStream.Length)); decompressedStream.BaseStream.Seek(0, SeekOrigin.Begin); #endif settings.Header = ParseSettingsHeader(decompressedStream); settings.GuidData = ParseGuidData(decompressedStream); settings.Settings = decompressedStream.ReadProperties(); return(settings); }