Пример #1
0
        private static bool Write(Save save)
        {
            if (!save.changed)
            {
                return(true);
            }

            string saveFile = SaveFileName(save.Chunk);

            return(FileHelpers.BinarizeToFile(saveFile, save));
        }
Пример #2
0
        public static bool Write(Save save)
        {
            string path = SaveFileName(save.Chunk);

            return(save.IsBinarizeNecessary() && FileHelpers.BinarizeToFile(path, save));
        }