summaryrefslogtreecommitdiffstats
path: root/openrecoveryscript.hpp
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-09-20 15:55:17 +0200
committerDees_Troy <dees_troy@teamw.in>2012-09-20 16:40:20 +0200
commit812660fd1d49bec7129d4c32a8493038a48385d7 (patch)
treed6e00bfc5f286e2fca8c0db8ce2c93f083a044ec /openrecoveryscript.hpp
parentFix ext storage and zip paths (diff)
downloadandroid_bootable_recovery-812660fd1d49bec7129d4c32a8493038a48385d7.tar
android_bootable_recovery-812660fd1d49bec7129d4c32a8493038a48385d7.tar.gz
android_bootable_recovery-812660fd1d49bec7129d4c32a8493038a48385d7.tar.bz2
android_bootable_recovery-812660fd1d49bec7129d4c32a8493038a48385d7.tar.lz
android_bootable_recovery-812660fd1d49bec7129d4c32a8493038a48385d7.tar.xz
android_bootable_recovery-812660fd1d49bec7129d4c32a8493038a48385d7.tar.zst
android_bootable_recovery-812660fd1d49bec7129d4c32a8493038a48385d7.zip
Diffstat (limited to 'openrecoveryscript.hpp')
-rw-r--r--openrecoveryscript.hpp42
1 files changed, 42 insertions, 0 deletions
diff --git a/openrecoveryscript.hpp b/openrecoveryscript.hpp
new file mode 100644
index 000000000..6b210548b
--- /dev/null
+++ b/openrecoveryscript.hpp
@@ -0,0 +1,42 @@
+/* OpenRecoveryScript class for TWRP
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 and
+ * only version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
+ *
+ * The code was written from scratch by Dees_Troy dees_troy at
+ * yahoo
+ *
+ * Copyright (c) 2012
+ */
+
+#ifndef _OPENRECOVERYSCRIPT_HPP
+#define _OPENRECOVERYSCRIPT_HPP
+
+#include <string>
+
+using namespace std;
+
+// Partition class
+class OpenRecoveryScript
+{
+public:
+ static int check_for_script_file(); // Checks to see if the ORS file is present in /cache
+ static int run_script_file(); // Executes the commands in the ORS file
+
+private:
+ static string Locate_Zip_File(string Path, string File); // Attempts to locate the zip file in storage
+
+};
+
+#endif // _OPENRECOVERYSCRIPT_HPP