public static void ps3_Rebuild(string dirpath)
 {
     //declare ps3 manager using the directory path, and the secure file id
     Ps3SaveManager manager = new Ps3SaveManager(dirpath, key);
     //manager.ReBuildChanges();//Rebuild param.pfd, and keeps any decrypted file decrypted.
     manager.ReBuildChanges(true);//Rebuild param.pfd, and encrypt any decrypted file.
     if (File.Exists(dirpath + "/~files_decrypted_by_pfdtool.txt"))
     {
         File.Delete(dirpath + "/~files_decrypted_by_pfdtool.txt");
     }
 }