summaryrefslogtreecommitdiffstats
path: root/gui/action.cpp
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 /gui/action.cpp
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 'gui/action.cpp')
-rw-r--r--gui/action.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/action.cpp b/gui/action.cpp
index bbcca23f5..80a582c6c 100644
--- a/gui/action.cpp
+++ b/gui/action.cpp
@@ -20,6 +20,7 @@
#include <sstream>
#include "../partitions.hpp"
#include "../twrp-functions.hpp"
+#include "../openrecoveryscript.hpp"
#include "../ui.h"
#include "../adb_install.h"
@@ -1028,10 +1029,9 @@ int GUIAction::doAction(Action action, int isThreaded /* = 0 */)
DataManager::SetValue(TW_IS_ENCRYPTED, 0);
DataManager::ReadSettingsFile();
-LOGE("TODO: Implement ORS support\n");
- if (0/*check_for_script_file()*/) {
+ if (OpenRecoveryScript::check_for_script_file()) {
ui_print("Processing OpenRecoveryScript file...\n");
- if (/*run_script_file() ==*/ 0) {
+ if (OpenRecoveryScript::run_script_file() == 0) {
usleep(2000000); // Sleep for 2 seconds before rebooting
tw_reboot(rb_system);
load_theme = 0;