summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
authorChampionSwimmer <android@championswimmer.tk>2013-02-03 09:29:22 +0100
committerDees_Troy <dees_troy@teamw.in>2013-02-19 19:20:45 +0100
commitcf33e4dbcd2cdbf9574883330ed782ea7e8e98f2 (patch)
treef1dcafcd6c661e98ba876e6907cf2ee6b971d5e8 /partitionmanager.cpp
parentconvert file_bps to be unsigned long long (diff)
downloadandroid_bootable_recovery-cf33e4dbcd2cdbf9574883330ed782ea7e8e98f2.tar
android_bootable_recovery-cf33e4dbcd2cdbf9574883330ed782ea7e8e98f2.tar.gz
android_bootable_recovery-cf33e4dbcd2cdbf9574883330ed782ea7e8e98f2.tar.bz2
android_bootable_recovery-cf33e4dbcd2cdbf9574883330ed782ea7e8e98f2.tar.lz
android_bootable_recovery-cf33e4dbcd2cdbf9574883330ed782ea7e8e98f2.tar.xz
android_bootable_recovery-cf33e4dbcd2cdbf9574883330ed782ea7e8e98f2.tar.zst
android_bootable_recovery-cf33e4dbcd2cdbf9574883330ed782ea7e8e98f2.zip
Diffstat (limited to '')
-rw-r--r--partitionmanager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index bcabb1ca4..895d3617f 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -704,6 +704,7 @@ int TWPartitionManager::Run_Backup(void) {
DataManager::SetValue(TW_BACKUP_RECOVERY_VAR, 0);
}
}
+#ifndef TW_HAS_NO_BOOT_PARTITION
DataManager::GetValue(TW_BACKUP_BOOT_VAR, check);
if (check) {
backup_boot = Find_Partition_By_Path("/boot");
@@ -718,6 +719,7 @@ int TWPartitionManager::Run_Backup(void) {
DataManager::SetValue(TW_BACKUP_BOOT_VAR, 0);
}
}
+#endif
DataManager::GetValue(TW_BACKUP_ANDSEC_VAR, check);
if (check) {
backup_andsec = Find_Partition_By_Path("/and-sec");
@@ -962,6 +964,7 @@ int TWPartitionManager::Run_Restore(string Restore_Name) {
partition_count++;
}
}
+#ifndef TW_HAS_NO_BOOT_PARTITION
DataManager::GetValue(TW_RESTORE_BOOT_VAR, check);
if (check > 0) {
restore_boot = Find_Partition_By_Path("/boot");
@@ -971,6 +974,7 @@ int TWPartitionManager::Run_Restore(string Restore_Name) {
partition_count++;
}
}
+#endif
DataManager::GetValue(TW_RESTORE_ANDSEC_VAR, check);
if (check > 0) {
restore_andsec = Find_Partition_By_Path("/and-sec");