Пример #1
0
        public static void Save(string folderPath, string saveName, FileData.FileType fileType, string saveString, out byte[] fileSaveBytes)
        {
            // Save name containing extension
            string saveFile = folderPath + saveName;

            Save(saveFile, fileType, saveString, out fileSaveBytes);
        }
Пример #2
0
        public static void Save(string fullSavePath, FileData.FileType fileType, string saveString, out byte[] fileSaveBytes)
        {
            // Save name containing extension
            string saveFile = fullSavePath;
            //Compress Save
            string saveStringCompressed = GetCompressedString(saveString);
            string header = GetCompressedString(Save_Header(saveStringCompressed));

            fileSaveBytes = FileData.Save(fileType, header, saveStringCompressed);

            File.WriteAllBytes(saveFile, fileSaveBytes);
        }
Пример #3
0
 public static void Save(string folderPath, string saveName, FileData.FileType fileType, string saveString)
 {
     byte[] fileSaveBytes;
     Save(folderPath, saveName, fileType, saveString, out fileSaveBytes);
 }