From 32c8eb81af916f04fd42e7294f699b10474beef6 Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Tue, 11 Sep 2012 15:28:06 -0400 Subject: Make text appear in GUI console, Zip install works. Move TW zip install code to C++ so that it can use the ui->functions. Bring in mincrypt code to fix a crash during signature checking. --- common.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'common.h') diff --git a/common.h b/common.h index 4122e4066..37c0e4cff 100644 --- a/common.h +++ b/common.h @@ -23,11 +23,12 @@ extern "C" { #endif -#define ui_print(...) fprintf(stdout, __VA_ARGS__) -#define ui_print_overwrite(...) fprintf(stdout, __VA_ARGS__) +#define ui_print(...) gui_print(__VA_ARGS__) +#define ui_print_overwrite(...) gui_print_overwrite(__VA_ARGS__) +#include "gui/gui.h" // TODO: restore ui_print for LOGE -#define LOGE(...) fprintf(stdout, "E:" __VA_ARGS__) +#define LOGE(...) gui_print("E:" __VA_ARGS__) #define LOGW(...) fprintf(stdout, "W:" __VA_ARGS__) #define LOGI(...) fprintf(stdout, "I:" __VA_ARGS__) -- cgit v1.2.3