Ejemplo n.º 1
0
        public static void ExportFile(List <GameBases> precomp, GameConsoles console)
        {
            CheckAndFixConfigFolder();
            Stream     createConfigStream = new FileStream($@"configs\bases.vcb{console.ToString().ToLower()}", FileMode.Create, FileAccess.Write);
            GZipStream compressedStream   = new GZipStream(createConfigStream, CompressionMode.Compress);
            IFormatter formatter          = new BinaryFormatter();

            formatter.Serialize(compressedStream, precomp);
            compressedStream.Close();
            createConfigStream.Close();
            ReadFromConfig($@"configs\bases.vcb{console.ToString().ToLower()}");
        }
Ejemplo n.º 2
0
        public static void ExportFile(List <TKeys> precomp, GameConsoles console)
        {
            CheckAndFixFolder("bin\\keys");
            Stream     createConfigStream = new FileStream($@"bin\keys\{console.ToString().ToLower()}.vck", FileMode.Create, FileAccess.Write);
            GZipStream compressedStream   = new GZipStream(createConfigStream, CompressionMode.Compress);
            IFormatter formatter          = new BinaryFormatter();

            formatter.Serialize(compressedStream, precomp);
            compressedStream.Close();
            createConfigStream.Close();
        }