summaryrefslogtreecommitdiffstats
path: root/twrp-functions.hpp
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-09-27 21:44:01 +0200
committerDees_Troy <dees_troy@teamw.in>2012-09-27 21:44:01 +0200
commit3477d7163e781bc88836fe5c36160d8eb60ea4ac (patch)
treed11921fd6388cb4843f003407a2d2f0488185aac /twrp-functions.hpp
parentCreate symlinks at compile time for busybox (diff)
downloadandroid_bootable_recovery-3477d7163e781bc88836fe5c36160d8eb60ea4ac.tar
android_bootable_recovery-3477d7163e781bc88836fe5c36160d8eb60ea4ac.tar.gz
android_bootable_recovery-3477d7163e781bc88836fe5c36160d8eb60ea4ac.tar.bz2
android_bootable_recovery-3477d7163e781bc88836fe5c36160d8eb60ea4ac.tar.lz
android_bootable_recovery-3477d7163e781bc88836fe5c36160d8eb60ea4ac.tar.xz
android_bootable_recovery-3477d7163e781bc88836fe5c36160d8eb60ea4ac.tar.zst
android_bootable_recovery-3477d7163e781bc88836fe5c36160d8eb60ea4ac.zip
Diffstat (limited to '')
-rw-r--r--twrp-functions.hpp7
1 files changed, 4 insertions, 3 deletions
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);