CompletelyOptional/OptionInterface_DataAPI.cs
/// <summary>
/// Save your raw <see cref="data"/> in file. Call this by your own.
/// </summary>
/// <returns>Whether it succeed or not</returns>
Save your raw  in file. Call this by your own.
Save your raw in file . Call this by your own .
public virtual bool SaveData()
        {
            if (!directory.Exists) { directory.Create(); }
            try
            {
                string path = string.Concat(new object[] {
                directory.FullName,
                "data.txt"
                });
                string enc = Crypto.EncryptString(_data ?? "", CryptoDataKey);
                string key = Custom.Md5Sum(enc);
                File.WriteAllText(path, key + enc);
                return true;
            }
            catch (Exception ex) { Debug.LogException(new SaveDataException(ex.ToString())); }
            return false;
        }
public virtual bool SaveData ( ) { if ( ! directory . Exists ) { directory . Create ( ) ; } try { string path = string . Concat ( new object [ ] { directory . FullName , " " } ) ; string enc = Crypto . EncryptString ( _data ?? " " , CryptoDataKey ) ; string key = Custom . Md5Sum ( enc ) ; File . WriteAllText ( path , key + enc ) ; return true ; } catch ( Exception ex ) { Debug . LogException ( new SaveDataException ( ex . ToString ( ) ) ) ; } return false ; }
Save your raw  in file.
Save your raw in file .
Whether it succeed or not
Whether it succeed or not