diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2019-03-22 14:18:21 +0100 |
---|---|---|
committer | Ethan Yonker <dees_troy@teamw.in> | 2019-03-22 14:18:24 +0100 |
commit | 7e941586844e514d296dd755972902dd64a4c8ba (patch) | |
tree | 0e512dab2b10d0ab3bf897b5815a59f607ffe9dc /twrp-functions.hpp | |
parent | Fix the long broken format function (diff) | |
download | android_bootable_recovery-7e941586844e514d296dd755972902dd64a4c8ba.tar android_bootable_recovery-7e941586844e514d296dd755972902dd64a4c8ba.tar.gz android_bootable_recovery-7e941586844e514d296dd755972902dd64a4c8ba.tar.bz2 android_bootable_recovery-7e941586844e514d296dd755972902dd64a4c8ba.tar.lz android_bootable_recovery-7e941586844e514d296dd755972902dd64a4c8ba.tar.xz android_bootable_recovery-7e941586844e514d296dd755972902dd64a4c8ba.tar.zst android_bootable_recovery-7e941586844e514d296dd755972902dd64a4c8ba.zip |
Diffstat (limited to '')
-rwxr-xr-x | twrp-functions.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/twrp-functions.hpp b/twrp-functions.hpp index efaa460d9..669a9e970 100755 --- a/twrp-functions.hpp +++ b/twrp-functions.hpp @@ -56,8 +56,8 @@ public: static string Get_Filename(const string& Path); // Trims the path off of a filename static int Exec_Cmd(const string& cmd, string &result); //execute a command and return the result as a string by reference - static int Exec_Cmd(const string& cmd); //execute a command - static int Wait_For_Child(pid_t pid, int *status, string Child_Name); // Waits for pid to exit and checks exit status + static int Exec_Cmd(const string& cmd, bool Show_Errors = true); //execute a command, displays an error to the GUI if Show_Errors is true, Show_Errors is true by default + static int Wait_For_Child(pid_t pid, int *status, string Child_Name, bool Show_Errors = true); // Waits for pid to exit and checks exit status, displays an error to the GUI if Show_Errors is true which is the default static int Wait_For_Child_Timeout(pid_t pid, int *status, const string& Child_Name, int timeout); // Waits for a pid to exit until the timeout is hit. If timeout is hit, kill the chilld. static bool Path_Exists(string Path); // Returns true if the path exists static Archive_Type Get_File_Type(string fn); // Determines file type, 0 for unknown, 1 for gzip, 2 for OAES encrypted |