From 2416a50b5a329a5f2d28b4caa45a965b8d601e96 Mon Sep 17 00:00:00 2001 From: Matt Mower Date: Tue, 12 Apr 2016 19:54:46 -0500 Subject: Rewrite TWRP fstab flag processing * Do not flip/flop between std::string and char* when no std::string specific functions are applied. * Remove the need to manually count flag string lengths * Move checks for Display_Name, Storage_Name, and Backup_Display_Name out of flag processing Change-Id: I24d432c222124012b2a98d27598e42d0944f7da2 --- partitions.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'partitions.hpp') diff --git a/partitions.hpp b/partitions.hpp index 035acf05e..91c803698 100644 --- a/partitions.hpp +++ b/partitions.hpp @@ -98,7 +98,8 @@ private: bool Process_Fstab_Line(string Line, bool Display_Error); // Processes a fstab line void Find_Actual_Block_Device(); // Determines the correct block device and stores it in Actual_Block_Device - bool Process_Flags(string Flags, bool Display_Error); // Process custom fstab flags + void Apply_TW_Flag(const unsigned flag, const char* str, const bool val); // Apply custom twrp fstab flags + void Process_TW_Flags(char *flags, bool Display_Error); // Process custom twrp fstab flags bool Process_FS_Flags(string& Options, int& Flags); // Process standard fstab fs flags bool Is_File_System(string File_System); // Checks to see if the file system given is considered a file system bool Is_Image(string File_System); // Checks to see if the file system given is considered an image -- cgit v1.2.3