From 70737fabde0f99bd735b0a001693d2b4dcfcae93 Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Mon, 8 Apr 2013 13:19:20 +0000 Subject: Improve automated handlidling of partitions --- partition.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'partition.cpp') diff --git a/partition.cpp b/partition.cpp index 7eb2ae5fb..e88ccc8a0 100644 --- a/partition.cpp +++ b/partition.cpp @@ -124,6 +124,9 @@ bool TWPartition::Process_Fstab_Line(string Line, bool Display_Error) { LOGINFO("Processing '%s'\n", Mount_Point.c_str()); Backup_Path = Mount_Point; Storage_Path = Mount_Point; + Display_Name = full_line + 1; + Backup_Display_Name = Display_Name; + Storage_Name = Display_Name; index = Mount_Point.size(); while (index < line_len) { while (index < line_len && full_line[index] == '\0') @@ -305,9 +308,8 @@ bool TWPartition::Process_Fstab_Line(string Line, bool Display_Error) { Removable = true; Wipe_Available_in_GUI = true; #else - if (Mount_Point == "/sdcard") { + if (Mount_Point == "/sdcard" || Mount_Point == "/external_sd" || Mount_Point == "/external_sdcard") { Is_Storage = true; - Storage_Path = "/sdcard"; Removable = true; Wipe_Available_in_GUI = true; #ifndef RECOVERY_SDCARD_ON_DATA @@ -328,7 +330,7 @@ bool TWPartition::Process_Fstab_Line(string Line, bool Display_Error) { #endif } #else - if (Mount_Point == "/emmc") { + if (Mount_Point == "/emmc" || Mount_Point == "/internal_sd" || Mount_Point == "/internal_sdcard") { Is_Storage = true; Is_Settings_Storage = true; Storage_Path = "/emmc"; -- cgit v1.2.3