summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-09-11 21:28:06 +0200
committerDees_Troy <dees_troy@teamw.in>2012-09-12 21:14:38 +0200
commit32c8eb81af916f04fd42e7294f699b10474beef6 (patch)
treed845c9e6435c0b6f6b1e6bc490315600b20e72eb /gui
parentClean up extra-functions (diff)
downloadandroid_bootable_recovery-32c8eb81af916f04fd42e7294f699b10474beef6.tar
android_bootable_recovery-32c8eb81af916f04fd42e7294f699b10474beef6.tar.gz
android_bootable_recovery-32c8eb81af916f04fd42e7294f699b10474beef6.tar.bz2
android_bootable_recovery-32c8eb81af916f04fd42e7294f699b10474beef6.tar.lz
android_bootable_recovery-32c8eb81af916f04fd42e7294f699b10474beef6.tar.xz
android_bootable_recovery-32c8eb81af916f04fd42e7294f699b10474beef6.tar.zst
android_bootable_recovery-32c8eb81af916f04fd42e7294f699b10474beef6.zip
Diffstat (limited to 'gui')
-rw-r--r--gui/action.cpp3
-rw-r--r--gui/console.cpp4
-rw-r--r--gui/gui.h2
3 files changed, 9 insertions, 0 deletions
diff --git a/gui/action.cpp b/gui/action.cpp
index 3e19a6132..a1f7dd3dc 100644
--- a/gui/action.cpp
+++ b/gui/action.cpp
@@ -28,7 +28,9 @@ extern "C" {
#include "../recovery_ui.h"
#include "../extra-functions.h"
#include "../variables.h"
+#include "../twinstall.h"
+int TWinstall_zip(const char* path, int* wipe_cache);
void fix_perms();
void wipe_dalvik_cache(void);
int check_backup_name(int show_error);
@@ -656,6 +658,7 @@ int GUIAction::doAction(Action action, int isThreaded /* = 0 */)
ui_print("TWRP injection complete.\n");
}
}
+ PartitionManager.Update_System_Details();
operation_end(ret_val, simulate);
return 0;
}
diff --git a/gui/console.cpp b/gui/console.cpp
index 6d53ed101..b7713c70c 100644
--- a/gui/console.cpp
+++ b/gui/console.cpp
@@ -38,6 +38,8 @@ extern "C" void gui_print(const char *fmt, ...)
vsnprintf(buf, 512, fmt, ap);
va_end(ap);
+ fputs(buf, stdout);
+
char *start, *next;
if (buf[0] == '\n' && strlen(buf) < 2) {
@@ -75,6 +77,8 @@ extern "C" void gui_print_overwrite(const char *fmt, ...)
vsnprintf(buf, 512, fmt, ap);
va_end(ap);
+ fputs(buf, stdout);
+
// Pop the last line, and we can continue
if (!gConsole.empty()) gConsole.pop_back();
diff --git a/gui/gui.h b/gui/gui.h
index f6745d7ee..948e11b36 100644
--- a/gui/gui.h
+++ b/gui/gui.h
@@ -5,6 +5,8 @@ int gui_console_only();
int gui_init();
int gui_loadResources();
int gui_start();
+void gui_print(const char *fmt, ...);
+void gui_print_overwrite(const char *fmt, ...);
#endif // _GUI_HEADER