summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-09-26 18:16:41 +0200
committerDees_Troy <dees_troy@teamw.in>2012-09-26 18:16:41 +0200
commitb1dab8dca9552e47e76e74c39c15a251b97c6969 (patch)
tree3db6db13a5ccd4aaccdef7a70abcad4e9bf537c0
parentFix problems with MTD devices (diff)
downloadandroid_bootable_recovery-b1dab8dca9552e47e76e74c39c15a251b97c6969.tar
android_bootable_recovery-b1dab8dca9552e47e76e74c39c15a251b97c6969.tar.gz
android_bootable_recovery-b1dab8dca9552e47e76e74c39c15a251b97c6969.tar.bz2
android_bootable_recovery-b1dab8dca9552e47e76e74c39c15a251b97c6969.tar.lz
android_bootable_recovery-b1dab8dca9552e47e76e74c39c15a251b97c6969.tar.xz
android_bootable_recovery-b1dab8dca9552e47e76e74c39c15a251b97c6969.tar.zst
android_bootable_recovery-b1dab8dca9552e47e76e74c39c15a251b97c6969.zip
Diffstat (limited to '')
-rw-r--r--partition.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/partition.cpp b/partition.cpp
index 56c69b386..4c0baedcd 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -279,6 +279,30 @@ bool TWPartition::Process_Fstab_Line(string Line, bool Display_Error) {
} else
DataManager::SetValue(TW_HAS_RECOVERY_PARTITION, 1);
}
+#ifdef SP1_NAME
+ string SP1_Path = "/";
+ SP1_Path += EXPAND(SP1_NAME);
+ if (Mount_Point == SP1_Path) {
+ int backup_display_size = (int)(Backup_Size / 1048576LLU);
+ DataManager::SetValue(TW_BACKUP_SP1_SIZE, backup_display_size);
+ }
+#endif
+#ifdef SP2_NAME
+ string SP2_Path = "/";
+ SP2_Path += EXPAND(SP2_NAME);
+ if (Mount_Point == SP2_Path) {
+ int backup_display_size = (int)(Backup_Size / 1048576LLU);
+ DataManager::SetValue(TW_BACKUP_SP2_SIZE, backup_display_size);
+ }
+#endif
+#ifdef SP3_NAME
+ string SP3_Path = "/";
+ SP3_Path += EXPAND(SP3_NAME);
+ if (Mount_Point == SP3_Path) {
+ int backup_display_size = (int)(Backup_Size / 1048576LLU);
+ DataManager::SetValue(TW_BACKUP_SP3_SIZE, backup_display_size);
+ }
+#endif
}
// Process any custom flags