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)

include "ios.h"

#endif

+#if defined (iPlatformAndroidMobile)

+#include <SDL_log.h>

+#endif

#if defined (iPlatformMsys)

include "win32.h"

#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)

+#else

 if (app_.commandEcho) {

     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

Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.10/patch/958791305cfde2404e604d7f1f66d5fe0502e565.patch
Status Code
Success (20)
Meta
text/plain
Capsule Response Time
68.703051 milliseconds
Gemini-to-HTML Time
0.779326 milliseconds

This content has been proxied by September (3851b).