added enabling debug mode on Android when compiled with 'DEBUG' defined
authorHolger Schemel <info@artsoft.org>
Mon, 9 Oct 2017 19:34:41 +0000 (21:34 +0200)
committerHolger Schemel <info@artsoft.org>
Mon, 9 Oct 2017 19:34:41 +0000 (21:34 +0200)
src/libgame/misc.c

index ed34319f23abc1bdcc3da32a2e569da2efe6785b..bddd38d9a933ce858a53ee3d5c4706192107d35f 100644 (file)
@@ -1003,6 +1003,12 @@ void GetOptions(int argc, char *argv[],
   if (*options_left == NULL)   /* no options given -- enable verbose mode */
     options.verbose = TRUE;
 #endif
+#endif
+
+#if DEBUG
+#if defined(PLATFORM_ANDROID)
+  options.debug = TRUE;
+#endif
 #endif
 
   while (*options_left)