public CompressorMod(ModContentPack content) : base(content)
        {
            Settings = this.GetSettings <CompressorSettings>();

            var harmony = new Harmony(typeof(CompressorMod).AssemblyQualifiedName);

            PatchRimWorld.DoPatch(harmony);
            PatchBetterModMismatchWindow.DoPatch(harmony);
        }
        public CompressorStream(string filePath)
        {
            CompressorSettings settings = CompressorMod.Settings;

            var fileStream = new FileStream(filePath, FileMode.CreateNew);

            if (settings.level < 0)
            {
                this.stream = fileStream;
            }
            else
            {
                this.outerStream = fileStream;
                this.stream      = new GZipStream(
                    fileStream,
                    settings.level > 0 ? CompressionLevel.Optimal : CompressionLevel.Fastest
                    );
            }
        }