summaryrefslogtreecommitdiffstats
path: root/twrp.cpp
diff options
context:
space:
mode:
authorthat <github@that.at>2015-04-13 19:52:49 +0200
committerDees Troy <dees_troy@teamw.in>2015-05-18 21:02:47 +0200
commit4e0e3fcfdb4f769121678d9bcc28ed3f77b5a36c (patch)
tree5796bb3dd438b77a4fe361644c60e84721cff805 /twrp.cpp
parentGUI: Prevent duplicate page overlays (diff)
downloadandroid_bootable_recovery-4e0e3fcfdb4f769121678d9bcc28ed3f77b5a36c.tar
android_bootable_recovery-4e0e3fcfdb4f769121678d9bcc28ed3f77b5a36c.tar.gz
android_bootable_recovery-4e0e3fcfdb4f769121678d9bcc28ed3f77b5a36c.tar.bz2
android_bootable_recovery-4e0e3fcfdb4f769121678d9bcc28ed3f77b5a36c.tar.lz
android_bootable_recovery-4e0e3fcfdb4f769121678d9bcc28ed3f77b5a36c.tar.xz
android_bootable_recovery-4e0e3fcfdb4f769121678d9bcc28ed3f77b5a36c.tar.zst
android_bootable_recovery-4e0e3fcfdb4f769121678d9bcc28ed3f77b5a36c.zip
Diffstat (limited to 'twrp.cpp')
-rw-r--r--twrp.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/twrp.cpp b/twrp.cpp
index ab57f3713..0c012d7ec 100644
--- a/twrp.cpp
+++ b/twrp.cpp
@@ -171,11 +171,9 @@ int main(int argc, char **argv) {
TWPartition* misc = PartitionManager.Find_Partition_By_Path("/misc");
if (misc != NULL) {
if (misc->Current_File_System == "emmc") {
- set_device_type('e');
- set_device_name(misc->Actual_Block_Device.c_str());
+ set_misc_device("emmc", misc->Actual_Block_Device.c_str());
} else if (misc->Current_File_System == "mtd") {
- set_device_type('m');
- set_device_name(misc->MTD_Name.c_str());
+ set_misc_device("mtd", misc->MTD_Name.c_str());
} else {
LOGERR("Unknown file system for /misc\n");
}