diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2016-09-19 20:50:25 +0200 |
---|---|---|
committer | James Christopher Adduono <jc@adduono.com> | 2016-10-25 06:43:05 +0200 |
commit | d3ec059300b8c31cacce4cff45bc21831f4ddf06 (patch) | |
tree | e6614363373eb74321711b74145697cd872074a4 /gui | |
parent | Clean up PartitionSettings (diff) | |
download | android_bootable_recovery-d3ec059300b8c31cacce4cff45bc21831f4ddf06.tar android_bootable_recovery-d3ec059300b8c31cacce4cff45bc21831f4ddf06.tar.gz android_bootable_recovery-d3ec059300b8c31cacce4cff45bc21831f4ddf06.tar.bz2 android_bootable_recovery-d3ec059300b8c31cacce4cff45bc21831f4ddf06.tar.lz android_bootable_recovery-d3ec059300b8c31cacce4cff45bc21831f4ddf06.tar.xz android_bootable_recovery-d3ec059300b8c31cacce4cff45bc21831f4ddf06.tar.zst android_bootable_recovery-d3ec059300b8c31cacce4cff45bc21831f4ddf06.zip |
Diffstat (limited to 'gui')
-rw-r--r-- | gui/action.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/gui/action.cpp b/gui/action.cpp index 3fde199d3..c15640760 100644 --- a/gui/action.cpp +++ b/gui/action.cpp @@ -1737,18 +1737,11 @@ int GUIAction::flashimage(std::string arg __unused) { int op_status = 0; - PartitionSettings part_settings; operation_start("Flash Image"); string path, filename; DataManager::GetValue("tw_zip_location", path); DataManager::GetValue("tw_file", filename); - part_settings.Backup_Folder = path + "/" + filename; - unsigned long long total_bytes = TWFunc::Get_File_Size(part_settings.Backup_Folder); - ProgressTracking progress(total_bytes); - part_settings.progress = &progress; - part_settings.adbbackup = false; - part_settings.PM_Method = PM_RESTORE; - if (PartitionManager.Flash_Image(&part_settings)) + if (PartitionManager.Flash_Image(path, filename)) op_status = 0; // success else op_status = 1; // fail |