summaryrefslogtreecommitdiffstats
path: root/twrpDU.cpp
diff options
context:
space:
mode:
authorbigbiff bigbiff <bigbiff@teamw.in>2014-01-25 21:02:57 +0100
committerGerrit Code Review <gerrit2@gerrit>2014-02-03 19:00:58 +0100
commitc7360dd26343b704350b7bc0911221c56ecf4695 (patch)
treea9cec440c2076e1898d50d96043949af18dfa9ed /twrpDU.cpp
parentAdd option to set flag for storage=0 (diff)
downloadandroid_bootable_recovery-c7360dd26343b704350b7bc0911221c56ecf4695.tar
android_bootable_recovery-c7360dd26343b704350b7bc0911221c56ecf4695.tar.gz
android_bootable_recovery-c7360dd26343b704350b7bc0911221c56ecf4695.tar.bz2
android_bootable_recovery-c7360dd26343b704350b7bc0911221c56ecf4695.tar.lz
android_bootable_recovery-c7360dd26343b704350b7bc0911221c56ecf4695.tar.xz
android_bootable_recovery-c7360dd26343b704350b7bc0911221c56ecf4695.tar.zst
android_bootable_recovery-c7360dd26343b704350b7bc0911221c56ecf4695.zip
Diffstat (limited to '')
-rw-r--r--twrpDU.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/twrpDU.cpp b/twrpDU.cpp
index 66c803104..c4446d42a 100644
--- a/twrpDU.cpp
+++ b/twrpDU.cpp
@@ -43,6 +43,16 @@ void twrpDU::add_relative_dir(string dir) {
relativedir.push_back(dir);
}
+void twrpDU::clear_relative_dir(string dir) {
+ vector<string>::iterator iter = relativedir.begin();
+ while (iter != relativedir.end()) {
+ if (*iter == dir)
+ iter = relativedir.erase(iter);
+ else
+ iter++;
+ }
+}
+
void twrpDU::add_absolute_dir(string dir) {
absolutedir.push_back(dir);
}
@@ -97,7 +107,6 @@ bool twrpDU::check_skip_dirs(string& dir) {
}
}
for (int i = 0; i < absolutedir.size(); ++i) {
- //string absdir = parent + dir;
if (dir == absolutedir.at(i)) {
result = true;
break;