summaryrefslogtreecommitdiffstats
path: root/mtp/twrpMtp.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-09-03 21:19:43 +0200
committerEthan Yonker <dees_troy@teamw.in>2014-09-03 21:22:50 +0200
commit6d154c4fe25d1ae0b5dafaae5eff7c0102f3362e (patch)
tree0e655bbdc41f5f10474ddc9ebe4a77b8ea35c550 /mtp/twrpMtp.cpp
parentImprove error handling during MTP startup (diff)
downloadandroid_bootable_recovery-6d154c4fe25d1ae0b5dafaae5eff7c0102f3362e.tar
android_bootable_recovery-6d154c4fe25d1ae0b5dafaae5eff7c0102f3362e.tar.gz
android_bootable_recovery-6d154c4fe25d1ae0b5dafaae5eff7c0102f3362e.tar.bz2
android_bootable_recovery-6d154c4fe25d1ae0b5dafaae5eff7c0102f3362e.tar.lz
android_bootable_recovery-6d154c4fe25d1ae0b5dafaae5eff7c0102f3362e.tar.xz
android_bootable_recovery-6d154c4fe25d1ae0b5dafaae5eff7c0102f3362e.tar.zst
android_bootable_recovery-6d154c4fe25d1ae0b5dafaae5eff7c0102f3362e.zip
Diffstat (limited to 'mtp/twrpMtp.cpp')
-rwxr-xr-xmtp/twrpMtp.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/mtp/twrpMtp.cpp b/mtp/twrpMtp.cpp
index ff58f79a7..6fe0ee3e8 100755
--- a/mtp/twrpMtp.cpp
+++ b/mtp/twrpMtp.cpp
@@ -68,7 +68,9 @@ int main(int argc, char* argv[]) {
}
#endif //def TWRPMTP
-twrpMtp::twrpMtp() {
+twrpMtp::twrpMtp(int debug_enabled = 0) {
+ if (debug_enabled)
+ MtpDebug::enableDebug();
mtpstorages = new storages;
}