summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/debug_menu.c4
-rw-r--r--apps/main.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 809644b3d2..79a0752c4a 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -1771,7 +1771,7 @@ static bool dbg_fm_radio(void)
1771#endif /* CONFIG_TUNER */ 1771#endif /* CONFIG_TUNER */
1772#endif /* !SIMULATOR */ 1772#endif /* !SIMULATOR */
1773 1773
1774#ifdef HAVE_LCD_BITMAP 1774#if defined(HAVE_LCD_BITMAP) && !defined(APPLICATION)
1775extern bool do_screendump_instead_of_usb; 1775extern bool do_screendump_instead_of_usb;
1776 1776
1777static bool dbg_screendump(void) 1777static bool dbg_screendump(void)
@@ -2057,8 +2057,10 @@ static const struct the_menu_item menuitems[] = {
2057#if (CONFIG_PLATFORM & PLATFORM_NATIVE) 2057#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
2058 { "View battery", view_battery }, 2058 { "View battery", view_battery },
2059#endif 2059#endif
2060#ifndef APPLICATION
2060 { "Screendump", dbg_screendump }, 2061 { "Screendump", dbg_screendump },
2061#endif 2062#endif
2063#endif
2062#if (CONFIG_PLATFORM & PLATFORM_NATIVE) 2064#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
2063 { "View HW info", dbg_hw_info }, 2065 { "View HW info", dbg_hw_info },
2064#endif 2066#endif
diff --git a/apps/main.c b/apps/main.c
index 9d83c62965..50da787b17 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -131,7 +131,9 @@
131#endif 131#endif
132 132
133#if (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO|PLATFORM_PANDORA)) 133#if (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO|PLATFORM_PANDORA))
134#ifdef SIMULATOR
134#include "sim_tasks.h" 135#include "sim_tasks.h"
136#endif
135#include "system-sdl.h" 137#include "system-sdl.h"
136#define HAVE_ARGV_MAIN 138#define HAVE_ARGV_MAIN
137/* Don't use SDL_main on windows -> no more stdio redirection */ 139/* Don't use SDL_main on windows -> no more stdio redirection */
@@ -360,7 +362,7 @@ static void init(void)
360 button_init(); 362 button_init();
361 powermgmt_init(); 363 powermgmt_init();
362 backlight_init(); 364 backlight_init();
363#if (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO|PLATFORM_PANDORA)) 365#ifdef SIMULATOR
364 sim_tasks_init(); 366 sim_tasks_init();
365#endif 367#endif
366#if (CONFIG_PLATFORM & PLATFORM_ANDROID) 368#if (CONFIG_PLATFORM & PLATFORM_ANDROID)