From 958791305cfde2404e604d7f1f66d5fe0502e565 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaakko=20Ker=C3=A4nen?= jaakko.keranen@iki.fi
Date: Sun, 26 Dec 2021 12:43:06 +0200
Subject: [PATCH 1/1] Android: Logging events
src/app.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/src/app.c b/src/app.c
index 73cc35ee..f5f7ae2b 100644
--- a/src/app.c
+++ b/src/app.c
@@ -71,6 +71,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
#if defined (iPlatformAppleMobile)
#endif
+#if defined (iPlatformAndroidMobile)
+#include <SDL_log.h>
+#endif
#if defined (iPlatformMsys)
#endif
@@ -1690,13 +1693,20 @@ void postCommand_Root(iRoot *d, const char *command) {
ev.user.data1 = strdup(command);
ev.user.data2 = d; /* all events are root-specific */
SDL_PushEvent(&ev);
+#if defined (iPlatformAndroid)
app_.isLoadingPrefs ? "[Prefs] " : "",
(d == NULL || win == NULL ? 0 : d == win->roots[0] ? 1 : 2),
command);
+#else
if (app_.commandEcho) {
iWindow *win = get_Window();
printf("%s[command] {%d} %s\n",
app_.isLoadingPrefs ? "[Prefs] " : "",
(d == NULL || win == NULL ? 0 : d == win->roots[0] ? 1 : 2),
command); fflush(stdout);
}
+#endif
}
void postCommandf_Root(iRoot *d, const char *command, ...) {
--
2.25.1
text/plain
This content has been proxied by September (3851b).