summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/app.c12
1 files changed, 11 insertions, 1 deletions
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. */
71#if defined (iPlatformAppleMobile) 71#if defined (iPlatformAppleMobile)
72# include "ios.h" 72# include "ios.h"
73#endif 73#endif
74#if defined (iPlatformAndroidMobile)
75#include <SDL_log.h>
76#endif
74#if defined (iPlatformMsys) 77#if defined (iPlatformMsys)
75# include "win32.h" 78# include "win32.h"
76#endif 79#endif
@@ -1690,13 +1693,20 @@ void postCommand_Root(iRoot *d, const char *command) {
1690 ev.user.data1 = strdup(command); 1693 ev.user.data1 = strdup(command);
1691 ev.user.data2 = d; /* all events are root-specific */ 1694 ev.user.data2 = d; /* all events are root-specific */
1692 SDL_PushEvent(&ev); 1695 SDL_PushEvent(&ev);
1696 iWindow *win = get_Window();
1697#if defined (iPlatformAndroid)
1698 SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, "%s[command] {%d} %s",
1699 app_.isLoadingPrefs ? "[Prefs] " : "",
1700 (d == NULL || win == NULL ? 0 : d == win->roots[0] ? 1 : 2),
1701 command);
1702#else
1693 if (app_.commandEcho) { 1703 if (app_.commandEcho) {
1694 iWindow *win = get_Window();
1695 printf("%s[command] {%d} %s\n", 1704 printf("%s[command] {%d} %s\n",
1696 app_.isLoadingPrefs ? "[Prefs] " : "", 1705 app_.isLoadingPrefs ? "[Prefs] " : "",
1697 (d == NULL || win == NULL ? 0 : d == win->roots[0] ? 1 : 2), 1706 (d == NULL || win == NULL ? 0 : d == win->roots[0] ? 1 : 2),
1698 command); fflush(stdout); 1707 command); fflush(stdout);
1699 } 1708 }
1709#endif
1700} 1710}
1701 1711
1702void postCommandf_Root(iRoot *d, const char *command, ...) { 1712void postCommandf_Root(iRoot *d, const char *command, ...) {