summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
authorbigbiff bigbiff <bigbiff@teamw.in>2016-08-09 02:36:10 +0200
committerbigbiff bigbiff <bigbiff@teamw.in>2016-08-09 03:02:39 +0200
commita481d36402e156f6bad9d58e7deeff64a5c05f72 (patch)
treebd865b700a9ef7f550c2283153240d58e588a5e8 /partitionmanager.cpp
parentadbbu: fix include path, now builds again in Omni 4.4 (diff)
downloadandroid_bootable_recovery-a481d36402e156f6bad9d58e7deeff64a5c05f72.tar
android_bootable_recovery-a481d36402e156f6bad9d58e7deeff64a5c05f72.tar.gz
android_bootable_recovery-a481d36402e156f6bad9d58e7deeff64a5c05f72.tar.bz2
android_bootable_recovery-a481d36402e156f6bad9d58e7deeff64a5c05f72.tar.lz
android_bootable_recovery-a481d36402e156f6bad9d58e7deeff64a5c05f72.tar.xz
android_bootable_recovery-a481d36402e156f6bad9d58e7deeff64a5c05f72.tar.zst
android_bootable_recovery-a481d36402e156f6bad9d58e7deeff64a5c05f72.zip
Diffstat (limited to 'partitionmanager.cpp')
-rw-r--r--partitionmanager.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index eabc5d9e2..4ba8053f6 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -480,14 +480,14 @@ int TWPartitionManager::Check_Backup_Name(bool Display_Error) {
return 0;
}
-bool TWPartitionManager::Make_MD5(bool generate_md5, string Backup_Folder, string Backup_Filename)
+bool TWPartitionManager::Make_MD5(PartitionSettings *part_settings)
{
string command;
- string Full_File = Backup_Folder + "/" + Backup_Filename;
+ string Full_File = part_settings->Full_Backup_Path + part_settings->Backup_FileName;
string result;
twrpDigest md5sum;
- if (!generate_md5)
+ if (!part_settings->generate_md5)
return true;
TWFunc::GUI_Operation_Text(TW_GENERATE_MD5_TEXT, gui_parse_text("{@generating_md51}"));
@@ -566,7 +566,7 @@ bool TWPartitionManager::Backup_Partition(PartitionSettings *part_settings) {
sync();
sync();
if (!part_settings->adbbackup) {
- if (!Make_MD5(part_settings->generate_md5, part_settings->Backup_Folder, (*subpart)->Backup_FileName)) {
+ if (!Make_MD5(part_settings)) {
TWFunc::SetPerformanceMode(false);
return false;
}
@@ -584,11 +584,11 @@ bool TWPartitionManager::Backup_Partition(PartitionSettings *part_settings) {
}
- if (!part_settings->adbbackup) {
- md5Success = Make_MD5(part_settings->generate_md5, part_settings->Backup_Folder, part_settings->Part->Backup_FileName);
- }
- else
+ if (part_settings->adbbackup) {
md5Success = true;
+ }
+ else
+ md5Success = Make_MD5(part_settings);
TWFunc::SetPerformanceMode(false);
return md5Success;