summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2015-01-09 23:46:57 +0100
committerEthan Yonker <dees_troy@teamw.in>2015-01-09 23:46:57 +0100
commitf66324ffbb8de3ad94cd0c21ba1bb577781df293 (patch)
tree30252d5a445a4a6608808d860290aa8a4bd4733d
parentAllow for X and Y offsets in GUI (diff)
downloadandroid_bootable_recovery-f66324ffbb8de3ad94cd0c21ba1bb577781df293.tar
android_bootable_recovery-f66324ffbb8de3ad94cd0c21ba1bb577781df293.tar.gz
android_bootable_recovery-f66324ffbb8de3ad94cd0c21ba1bb577781df293.tar.bz2
android_bootable_recovery-f66324ffbb8de3ad94cd0c21ba1bb577781df293.tar.lz
android_bootable_recovery-f66324ffbb8de3ad94cd0c21ba1bb577781df293.tar.xz
android_bootable_recovery-f66324ffbb8de3ad94cd0c21ba1bb577781df293.tar.zst
android_bootable_recovery-f66324ffbb8de3ad94cd0c21ba1bb577781df293.zip
-rw-r--r--partition.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/partition.cpp b/partition.cpp
index 434115979..db1f0581c 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -1325,9 +1325,7 @@ bool TWPartition::Restore(string restore_folder, const unsigned long long *total
if (Is_File_System(Restore_File_System))
return Restore_Tar(restore_folder, Restore_File_System, total_restore_size, already_restored_size);
else if (Is_Image(Restore_File_System)) {
- *already_restored_size += TWFunc::Get_File_Size(Backup_Name);
- if (Restore_File_System == "emmc")
- return Restore_Image(restore_folder, total_restore_size, already_restored_size, Restore_File_System);
+ return Restore_Image(restore_folder, total_restore_size, already_restored_size, Restore_File_System);
}
LOGERR("Unknown restore method for '%s'\n", Mount_Point.c_str());