From 3477d7163e781bc88836fe5c36160d8eb60ea4ac Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Thu, 27 Sep 2012 15:44:01 -0400 Subject: Save version number to storage --- twrp-functions.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'twrp-functions.hpp') diff --git a/twrp-functions.hpp b/twrp-functions.hpp index 7bda28725..da17e3cd1 100644 --- a/twrp-functions.hpp +++ b/twrp-functions.hpp @@ -33,9 +33,10 @@ public: static void GUI_Operation_Text(string Read_Value, string Default_Text); // Updates text for display in the GUI, e.g. Backing up %partition name% static void GUI_Operation_Text(string Read_Value, string Partition_Name, string Default_Text); // Same as above but includes partition name static unsigned long Get_File_Size(string Path); // Returns the size of a file - static void twfinish_recovery(const char *send_intent); - static int tw_reboot(RebootCommand command); - static void check_and_run_script(const char* script_file, const char* display_name); + static void twfinish_recovery(const char *send_intent); // Writes the log to last_log + static int tw_reboot(RebootCommand command); // Prepares the device for rebooting + static void check_and_run_script(const char* script_file, const char* display_name); // checks for the existence of a script, chmods it to 755, then runs it + static void Output_Version(void); // Outputs the version to a file in the TWRP folder private: static void check_and_fclose(FILE *fp, const char *name); -- cgit v1.2.3