diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2016-09-13 21:41:53 +0200 |
---|---|---|
committer | Ethan Yonker <dees_troy@teamw.in> | 2016-09-13 21:53:37 +0200 |
commit | dcf2b674c4c2eb1631ebc76e3606c1c7691321a8 (patch) | |
tree | 92725a806b8e3ed6a1475697469830fa718f9a0b /gui | |
parent | Fix compressed backups with split archives (diff) | |
download | android_bootable_recovery-dcf2b674c4c2eb1631ebc76e3606c1c7691321a8.tar android_bootable_recovery-dcf2b674c4c2eb1631ebc76e3606c1c7691321a8.tar.gz android_bootable_recovery-dcf2b674c4c2eb1631ebc76e3606c1c7691321a8.tar.bz2 android_bootable_recovery-dcf2b674c4c2eb1631ebc76e3606c1c7691321a8.tar.lz android_bootable_recovery-dcf2b674c4c2eb1631ebc76e3606c1c7691321a8.tar.xz android_bootable_recovery-dcf2b674c4c2eb1631ebc76e3606c1c7691321a8.tar.zst android_bootable_recovery-dcf2b674c4c2eb1631ebc76e3606c1c7691321a8.zip |
Diffstat (limited to '')
-rw-r--r-- | gui/action.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gui/action.cpp b/gui/action.cpp index 073f1a394..a917d2be3 100644 --- a/gui/action.cpp +++ b/gui/action.cpp @@ -1739,9 +1739,11 @@ int GUIAction::flashimage(std::string arg __unused) PartitionSettings part_settings; operation_start("Flash Image"); - DataManager::GetValue("tw_zip_location", part_settings.Restore_Name); - DataManager::GetValue("tw_file", part_settings.Backup_FileName); - unsigned long long total_bytes = TWFunc::Get_File_Size(part_settings.Restore_Name + "/" + part_settings.Backup_FileName); + 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; |