Beispiel #1
0
 // Token: 0x06000091 RID: 145 RVA: 0x00008BBC File Offset: 0x00006DBC
 public static void clearAll()
 {
     Cout.LogError3("clean rms");
     foreach (FileInfo fileInfo in new DirectoryInfo(Rms.GetiPhoneDocumentsPath() + "/").GetFiles())
     {
         fileInfo.Delete();
     }
 }
Beispiel #2
0
 // Token: 0x06000092 RID: 146 RVA: 0x00008C0C File Offset: 0x00006E0C
 public static void DeleteStorage(string path)
 {
     try
     {
         File.Delete(Rms.GetiPhoneDocumentsPath() + "/" + path);
     }
     catch (Exception ex)
     {
     }
 }
Beispiel #3
0
    // Token: 0x0600008F RID: 143 RVA: 0x00008AF8 File Offset: 0x00006CF8
    private static void __saveRMS(string filename, sbyte[] data)
    {
        string     text       = Rms.GetiPhoneDocumentsPath() + "/" + filename;
        FileStream fileStream = new FileStream(text, FileMode.Create);

        fileStream.Write(ArrayCast.cast(data), 0, data.Length);
        fileStream.Flush();
        fileStream.Close();
        Main.setBackupIcloud(text);
    }
Beispiel #4
0
 // Token: 0x06000090 RID: 144 RVA: 0x00008B40 File Offset: 0x00006D40
 private static sbyte[] __loadRMS(string filename)
 {
     sbyte[] result;
     try
     {
         FileStream fileStream = new FileStream(Rms.GetiPhoneDocumentsPath() + "/" + filename, FileMode.Open);
         byte[]     array      = new byte[fileStream.Length];
         fileStream.Read(array, 0, array.Length);
         fileStream.Close();
         sbyte[] array2 = ArrayCast.cast(array);
         result = ArrayCast.cast(array);
     }
     catch (Exception ex)
     {
         result = null;
     }
     return(result);
 }