diff options
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/BUILD_OVERLAY | 2 | ||||
-rw-r--r-- | apps/plugins/SOURCES | 4 | ||||
-rw-r--r-- | apps/plugins/beatbox/beatbox.c | 2 | ||||
-rw-r--r-- | apps/plugins/bitmaps/mono/SOURCES | 2 | ||||
-rw-r--r-- | apps/plugins/bitmaps/remote_mono/SOURCES | 2 | ||||
-rw-r--r-- | apps/plugins/bitmaps/remote_native/SOURCES | 2 | ||||
-rw-r--r-- | apps/plugins/chip8.c | 14 | ||||
-rw-r--r-- | apps/plugins/doom/rockdoom.c | 6 | ||||
-rw-r--r-- | apps/plugins/doom/rockmacros.h | 2 | ||||
-rw-r--r-- | apps/plugins/goban.c | 2 | ||||
-rw-r--r-- | apps/plugins/imageviewer/imageviewer.h | 2 | ||||
-rw-r--r-- | apps/plugins/lib/SOURCES | 6 | ||||
-rw-r--r-- | apps/plugins/lib/pluginlib_exit.h | 2 | ||||
-rw-r--r-- | apps/plugins/lua/rockaux.c | 2 | ||||
-rw-r--r-- | apps/plugins/lua/rockconf.h | 2 | ||||
-rw-r--r-- | apps/plugins/lua/rocklibc.h | 2 | ||||
-rw-r--r-- | apps/plugins/midi/midiutil.h | 2 | ||||
-rw-r--r-- | apps/plugins/pacbox/pacbox_lcd.c | 2 | ||||
-rw-r--r-- | apps/plugins/rockboy/rockboy.c | 2 | ||||
-rw-r--r-- | apps/plugins/test_codec.c | 2 | ||||
-rw-r--r-- | apps/plugins/test_disk.c | 4 | ||||
-rw-r--r-- | apps/plugins/test_fps.c | 6 | ||||
-rw-r--r-- | apps/plugins/test_mem.c | 2 |
23 files changed, 38 insertions, 36 deletions
diff --git a/apps/plugins/BUILD_OVERLAY b/apps/plugins/BUILD_OVERLAY index 0afcbfbbf9..dd129333c2 100644 --- a/apps/plugins/BUILD_OVERLAY +++ b/apps/plugins/BUILD_OVERLAY | |||
@@ -4,6 +4,6 @@ | |||
4 | * they will grep for "YES" to see if overlay plugins must be built | 4 | * they will grep for "YES" to see if overlay plugins must be built |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #if PLUGIN_BUFFER_SIZE <= 0x20000 && !defined(SIMULATOR) | 7 | #if PLUGIN_BUFFER_SIZE <= 0x20000 && (CONFIG_PLATFORM & PLATFORM_NATIVE) |
8 | YES | 8 | YES |
9 | #endif | 9 | #endif |
diff --git a/apps/plugins/SOURCES b/apps/plugins/SOURCES index 9e4b66ec14..a63bb922b6 100644 --- a/apps/plugins/SOURCES +++ b/apps/plugins/SOURCES | |||
@@ -65,7 +65,7 @@ iriverify.c | |||
65 | 65 | ||
66 | 66 | ||
67 | 67 | ||
68 | #ifndef SIMULATOR /* those plugins only run on hardware */ | 68 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) /* those plugins only run on hardware */ |
69 | 69 | ||
70 | /* Overlays loaders */ | 70 | /* Overlays loaders */ |
71 | #if PLUGIN_BUFFER_SIZE <= 0x20000 && defined(HAVE_LCD_BITMAP) | 71 | #if PLUGIN_BUFFER_SIZE <= 0x20000 && defined(HAVE_LCD_BITMAP) |
@@ -132,7 +132,7 @@ wavplay.c | |||
132 | wavrecord.c | 132 | wavrecord.c |
133 | #endif | 133 | #endif |
134 | 134 | ||
135 | #endif /* SIMULATOR */ | 135 | #endif /* PLATFORM_NATIVE */ |
136 | 136 | ||
137 | 137 | ||
138 | 138 | ||
diff --git a/apps/plugins/beatbox/beatbox.c b/apps/plugins/beatbox/beatbox.c index 1a940e1047..a51f738cd2 100644 --- a/apps/plugins/beatbox/beatbox.c +++ b/apps/plugins/beatbox/beatbox.c | |||
@@ -125,7 +125,7 @@ PLUGIN_IRAM_DECLARE | |||
125 | 125 | ||
126 | #undef SYNC | 126 | #undef SYNC |
127 | 127 | ||
128 | #ifdef SIMULATOR | 128 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) |
129 | #define SYNC | 129 | #define SYNC |
130 | #endif | 130 | #endif |
131 | 131 | ||
diff --git a/apps/plugins/bitmaps/mono/SOURCES b/apps/plugins/bitmaps/mono/SOURCES index 0152e92e0d..813ede362c 100644 --- a/apps/plugins/bitmaps/mono/SOURCES +++ b/apps/plugins/bitmaps/mono/SOURCES | |||
@@ -61,6 +61,6 @@ superdom_boarditems.160x128x1.bmp | |||
61 | #endif | 61 | #endif |
62 | 62 | ||
63 | #endif /* HAVE_LCD_BITMAP */ | 63 | #endif /* HAVE_LCD_BITMAP */ |
64 | #if defined(SIMULATOR) && defined(__APPLE__) | 64 | #if (CONFIG_PLATFORM & PLATFORM_HOSTED) && defined(__APPLE__) |
65 | osx.dummy.bmp | 65 | osx.dummy.bmp |
66 | #endif | 66 | #endif |
diff --git a/apps/plugins/bitmaps/remote_mono/SOURCES b/apps/plugins/bitmaps/remote_mono/SOURCES index c59aab6107..b6be5138c9 100644 --- a/apps/plugins/bitmaps/remote_mono/SOURCES +++ b/apps/plugins/bitmaps/remote_mono/SOURCES | |||
@@ -1,3 +1,3 @@ | |||
1 | #if defined(SIMULATOR) && defined(__APPLE__) | 1 | #if (CONFIG_PLATFORM & PLATFORM_HOSTED) && defined(__APPLE__) |
2 | osx.dummy.bmp | 2 | osx.dummy.bmp |
3 | #endif | 3 | #endif |
diff --git a/apps/plugins/bitmaps/remote_native/SOURCES b/apps/plugins/bitmaps/remote_native/SOURCES index 2bc3d59c07..b3cc2157ff 100644 --- a/apps/plugins/bitmaps/remote_native/SOURCES +++ b/apps/plugins/bitmaps/remote_native/SOURCES | |||
@@ -1,4 +1,4 @@ | |||
1 | #if defined(SIMULATOR) && defined(__APPLE__) | 1 | #if (CONFIG_PLATFORM & PLATFORM_HOSTED) && defined(__APPLE__) |
2 | osx.dummy.bmp | 2 | osx.dummy.bmp |
3 | #endif | 3 | #endif |
4 | 4 | ||
diff --git a/apps/plugins/chip8.c b/apps/plugins/chip8.c index be66d6351f..a1372cd608 100644 --- a/apps/plugins/chip8.c +++ b/apps/plugins/chip8.c | |||
@@ -1185,7 +1185,7 @@ static byte chip8_keymap[16]; | |||
1185 | static unsigned long starttimer; /* Timer value at the beginning */ | 1185 | static unsigned long starttimer; /* Timer value at the beginning */ |
1186 | static unsigned long cycles; /* Number of update cycles (50Hz) */ | 1186 | static unsigned long cycles; /* Number of update cycles (50Hz) */ |
1187 | 1187 | ||
1188 | #ifndef SIMULATOR | 1188 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) |
1189 | static bool is_playing; | 1189 | static bool is_playing; |
1190 | 1190 | ||
1191 | /* one frame of bitswapped mp3 data */ | 1191 | /* one frame of bitswapped mp3 data */ |
@@ -1208,14 +1208,14 @@ static void callback(unsigned char** start, size_t* size) | |||
1208 | *start = beep; /* give it the same frame again */ | 1208 | *start = beep; /* give it the same frame again */ |
1209 | *size = sizeof(beep); | 1209 | *size = sizeof(beep); |
1210 | } | 1210 | } |
1211 | #endif /* !SIMULATOR */ | 1211 | #endif /* PLATFORM_NATIVE */ |
1212 | 1212 | ||
1213 | /****************************************************************************/ | 1213 | /****************************************************************************/ |
1214 | /* Turn sound on */ | 1214 | /* Turn sound on */ |
1215 | /****************************************************************************/ | 1215 | /****************************************************************************/ |
1216 | static void chip8_sound_on (void) | 1216 | static void chip8_sound_on (void) |
1217 | { | 1217 | { |
1218 | #ifndef SIMULATOR | 1218 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) |
1219 | if (!is_playing) | 1219 | if (!is_playing) |
1220 | rb->mp3_play_pause(true); /* kickoff audio */ | 1220 | rb->mp3_play_pause(true); /* kickoff audio */ |
1221 | #endif | 1221 | #endif |
@@ -1226,7 +1226,7 @@ static void chip8_sound_on (void) | |||
1226 | /****************************************************************************/ | 1226 | /****************************************************************************/ |
1227 | static void chip8_sound_off (void) | 1227 | static void chip8_sound_off (void) |
1228 | { | 1228 | { |
1229 | #ifndef SIMULATOR | 1229 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) |
1230 | if (!is_playing) | 1230 | if (!is_playing) |
1231 | rb->mp3_play_pause(false); /* pause audio */ | 1231 | rb->mp3_play_pause(false); /* pause audio */ |
1232 | #endif | 1232 | #endif |
@@ -1266,7 +1266,7 @@ static void chip8_update_display(void) | |||
1266 | *row++ = w; | 1266 | *row++ = w; |
1267 | } | 1267 | } |
1268 | } | 1268 | } |
1269 | #if defined(SIMULATOR) || (LCD_DEPTH > 1) | 1269 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) || (LCD_DEPTH > 1) |
1270 | rb->lcd_set_drawmode(DRMODE_SOLID); | 1270 | rb->lcd_set_drawmode(DRMODE_SOLID); |
1271 | rb->lcd_mono_bitmap(lcd_framebuf[0], CHIP8_X, CHIP8_Y, CHIP8_LCDWIDTH, | 1271 | rb->lcd_mono_bitmap(lcd_framebuf[0], CHIP8_X, CHIP8_Y, CHIP8_LCDWIDTH, |
1272 | CHIP8_HEIGHT); | 1272 | CHIP8_HEIGHT); |
@@ -1428,7 +1428,7 @@ static bool chip8_run(const char* file) | |||
1428 | #endif | 1428 | #endif |
1429 | rb->lcd_update(); | 1429 | rb->lcd_update(); |
1430 | 1430 | ||
1431 | #ifndef SIMULATOR | 1431 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) |
1432 | /* init sound */ | 1432 | /* init sound */ |
1433 | is_playing = rb->mp3_is_playing(); /* would we disturb playback? */ | 1433 | is_playing = rb->mp3_is_playing(); /* would we disturb playback? */ |
1434 | if (!is_playing) /* no? then we can make sound */ | 1434 | if (!is_playing) /* no? then we can make sound */ |
@@ -1442,7 +1442,7 @@ static bool chip8_run(const char* file) | |||
1442 | cycles = 0; | 1442 | cycles = 0; |
1443 | chip8(); | 1443 | chip8(); |
1444 | 1444 | ||
1445 | #ifndef SIMULATOR | 1445 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) |
1446 | if (!is_playing) | 1446 | if (!is_playing) |
1447 | { /* stop it if we used audio */ | 1447 | { /* stop it if we used audio */ |
1448 | rb->mp3_play_stop(); /* Stop audio playback */ | 1448 | rb->mp3_play_stop(); /* Stop audio playback */ |
diff --git a/apps/plugins/doom/rockdoom.c b/apps/plugins/doom/rockdoom.c index 26afdd93db..042212812a 100644 --- a/apps/plugins/doom/rockdoom.c +++ b/apps/plugins/doom/rockdoom.c | |||
@@ -62,7 +62,7 @@ int fileexists(const char * fname) | |||
62 | return -1; | 62 | return -1; |
63 | } | 63 | } |
64 | 64 | ||
65 | #ifndef SIMULATOR | 65 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) |
66 | int my_open(const char *file, int flags, ...) | 66 | int my_open(const char *file, int flags, ...) |
67 | { | 67 | { |
68 | if(fpoint==8) | 68 | if(fpoint==8) |
@@ -111,7 +111,7 @@ int my_close(int id) | |||
111 | 111 | ||
112 | bool noprintf=0; // Variable disables printf lcd updates to protect grayscale lib/direct lcd updates | 112 | bool noprintf=0; // Variable disables printf lcd updates to protect grayscale lib/direct lcd updates |
113 | 113 | ||
114 | #ifndef SIMULATOR | 114 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) |
115 | // Here is a hacked up printf command to get the output from the game. | 115 | // Here is a hacked up printf command to get the output from the game. |
116 | int printf(const char *fmt, ...) | 116 | int printf(const char *fmt, ...) |
117 | { | 117 | { |
@@ -751,7 +751,7 @@ enum plugin_status plugin_start(const void* parameter) | |||
751 | printf("There were still: %d files open\n", fpoint); | 751 | printf("There were still: %d files open\n", fpoint); |
752 | while(fpoint>0) | 752 | while(fpoint>0) |
753 | { | 753 | { |
754 | #ifdef SIMULATOR | 754 | #if (CONFIG_PLATFORM & PLATFORM_HOSTED) |
755 | close(filearray[fpoint]); | 755 | close(filearray[fpoint]); |
756 | #else | 756 | #else |
757 | rb->close(filearray[fpoint]); | 757 | rb->close(filearray[fpoint]); |
diff --git a/apps/plugins/doom/rockmacros.h b/apps/plugins/doom/rockmacros.h index 89c943622a..3276aa1539 100644 --- a/apps/plugins/doom/rockmacros.h +++ b/apps/plugins/doom/rockmacros.h | |||
@@ -42,7 +42,7 @@ char *my_strtok( char * s, const char * delim ); | |||
42 | #undef read_line | 42 | #undef read_line |
43 | #define read_line(a,b,c) rb->read_line((a),(b),(c)) | 43 | #define read_line(a,b,c) rb->read_line((a),(b),(c)) |
44 | 44 | ||
45 | #ifdef SIMULATOR | 45 | #if (CONFIG_PLATFORM & PLATFORM_HOSTED) |
46 | #define open(a, ...) rb->open((a), __VA_ARGS__) | 46 | #define open(a, ...) rb->open((a), __VA_ARGS__) |
47 | #define close(a) rb->close((a)) | 47 | #define close(a) rb->close((a)) |
48 | #else | 48 | #else |
diff --git a/apps/plugins/goban.c b/apps/plugins/goban.c index 8c8aa7a449..7bb6744dde 100644 --- a/apps/plugins/goban.c +++ b/apps/plugins/goban.c | |||
@@ -20,7 +20,7 @@ | |||
20 | ****************************************************************************/ | 20 | ****************************************************************************/ |
21 | #include "plugin.h" | 21 | #include "plugin.h" |
22 | 22 | ||
23 | #if PLUGIN_BUFFER_SIZE < 0x10000 && !defined(SIMULATOR) | 23 | #if PLUGIN_BUFFER_SIZE < 0x10000 && (CONFIG_PLATFORM & PLATFORM_NATIVE) |
24 | 24 | ||
25 | #include "lib/overlay.h" | 25 | #include "lib/overlay.h" |
26 | 26 | ||
diff --git a/apps/plugins/imageviewer/imageviewer.h b/apps/plugins/imageviewer/imageviewer.h index 5f22b03e97..79ac5ed9f1 100644 --- a/apps/plugins/imageviewer/imageviewer.h +++ b/apps/plugins/imageviewer/imageviewer.h | |||
@@ -386,7 +386,7 @@ | |||
386 | #define PLUGIN_ABORT 11 | 386 | #define PLUGIN_ABORT 11 |
387 | #define PLUGIN_OUTOFMEM 12 | 387 | #define PLUGIN_OUTOFMEM 12 |
388 | 388 | ||
389 | #if !defined(SIMULATOR) && defined(HAVE_DISK_STORAGE) | 389 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) && defined(HAVE_DISK_STORAGE) |
390 | #define DISK_SPINDOWN | 390 | #define DISK_SPINDOWN |
391 | #endif | 391 | #endif |
392 | #if PLUGIN_BUFFER_SIZE >= MIN_MEM | 392 | #if PLUGIN_BUFFER_SIZE >= MIN_MEM |
diff --git a/apps/plugins/lib/SOURCES b/apps/plugins/lib/SOURCES index 2c4209b6d2..fa12f94730 100644 --- a/apps/plugins/lib/SOURCES +++ b/apps/plugins/lib/SOURCES | |||
@@ -28,7 +28,7 @@ grey_sh.S | |||
28 | 28 | ||
29 | #endif /* HAVE_LCD_BITMAP && LCD_DEPTH < 4 */ | 29 | #endif /* HAVE_LCD_BITMAP && LCD_DEPTH < 4 */ |
30 | 30 | ||
31 | #ifndef SIMULATOR | 31 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) |
32 | overlay.c | 32 | overlay.c |
33 | #endif | 33 | #endif |
34 | 34 | ||
@@ -76,7 +76,7 @@ pluginlib_albumart.c | |||
76 | pluginlib_touchscreen.c | 76 | pluginlib_touchscreen.c |
77 | #endif | 77 | #endif |
78 | 78 | ||
79 | #ifndef SIMULATOR | 79 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) |
80 | 80 | ||
81 | #ifdef CPU_ARM | 81 | #ifdef CPU_ARM |
82 | ../../codecs/lib/setjmp_arm.S | 82 | ../../codecs/lib/setjmp_arm.S |
@@ -90,4 +90,4 @@ pluginlib_touchscreen.c | |||
90 | ../../codecs/lib/setjmp_mips.S | 90 | ../../codecs/lib/setjmp_mips.S |
91 | #endif | 91 | #endif |
92 | 92 | ||
93 | #endif /* !SIMULATOR */ | 93 | #endif /* PLATFORM_NATIVE */ |
diff --git a/apps/plugins/lib/pluginlib_exit.h b/apps/plugins/lib/pluginlib_exit.h index 6cded9d56f..00cbc8dc7f 100644 --- a/apps/plugins/lib/pluginlib_exit.h +++ b/apps/plugins/lib/pluginlib_exit.h | |||
@@ -23,7 +23,7 @@ | |||
23 | #define __PLUGINLIB_EXIT_H__ | 23 | #define __PLUGINLIB_EXIT_H__ |
24 | 24 | ||
25 | #include "config.h" | 25 | #include "config.h" |
26 | #ifndef SIMULATOR | 26 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) |
27 | #include "../../codecs/lib/setjmp.h" | 27 | #include "../../codecs/lib/setjmp.h" |
28 | #else | 28 | #else |
29 | #include <setjmp.h> | 29 | #include <setjmp.h> |
diff --git a/apps/plugins/lua/rockaux.c b/apps/plugins/lua/rockaux.c index 1f832d4cc7..f10a1cb021 100644 --- a/apps/plugins/lua/rockaux.c +++ b/apps/plugins/lua/rockaux.c | |||
@@ -24,7 +24,7 @@ | |||
24 | #define _ROCKCONF_H_ /* Protect against unwanted include */ | 24 | #define _ROCKCONF_H_ /* Protect against unwanted include */ |
25 | #include "lua.h" | 25 | #include "lua.h" |
26 | 26 | ||
27 | #if !defined(SIMULATOR) | 27 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) |
28 | int errno = 0; | 28 | int errno = 0; |
29 | #endif | 29 | #endif |
30 | 30 | ||
diff --git a/apps/plugins/lua/rockconf.h b/apps/plugins/lua/rockconf.h index 7fbc89f166..dd7f98f1d7 100644 --- a/apps/plugins/lua/rockconf.h +++ b/apps/plugins/lua/rockconf.h | |||
@@ -31,7 +31,7 @@ | |||
31 | #undef LUA_PATH_DEFAULT | 31 | #undef LUA_PATH_DEFAULT |
32 | #define LUA_PATH_DEFAULT "$/?.lua;" "$/?/init.lua;" VIEWERS_DIR"/lua/?.lua;" VIEWERS_DIR"/lua/?/init.lua;" | 32 | #define LUA_PATH_DEFAULT "$/?.lua;" "$/?/init.lua;" VIEWERS_DIR"/lua/?.lua;" VIEWERS_DIR"/lua/?/init.lua;" |
33 | 33 | ||
34 | #ifndef SIMULATOR | 34 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) |
35 | #include "../../codecs/lib/setjmp.h" | 35 | #include "../../codecs/lib/setjmp.h" |
36 | #else | 36 | #else |
37 | #include <setjmp.h> | 37 | #include <setjmp.h> |
diff --git a/apps/plugins/lua/rocklibc.h b/apps/plugins/lua/rocklibc.h index 9b68f429d2..44f916fded 100644 --- a/apps/plugins/lua/rocklibc.h +++ b/apps/plugins/lua/rocklibc.h | |||
@@ -26,7 +26,7 @@ | |||
26 | #include <ctype.h> | 26 | #include <ctype.h> |
27 | #include "plugin.h" | 27 | #include "plugin.h" |
28 | 28 | ||
29 | #ifdef SIMULATOR | 29 | #if (CONFIG_PLATFORM & PLATFORM_HOSTED) |
30 | #include <errno.h> | 30 | #include <errno.h> |
31 | #define PREFIX(_x_) sim_ ## _x_ | 31 | #define PREFIX(_x_) sim_ ## _x_ |
32 | #else | 32 | #else |
diff --git a/apps/plugins/midi/midiutil.h b/apps/plugins/midi/midiutil.h index b1ed6569b7..d7a252035d 100644 --- a/apps/plugins/midi/midiutil.h +++ b/apps/plugins/midi/midiutil.h | |||
@@ -39,6 +39,8 @@ | |||
39 | improved to increase MAX_VOICES for targets that can do 22kHz */ | 39 | improved to increase MAX_VOICES for targets that can do 22kHz */ |
40 | #ifdef CPU_PP | 40 | #ifdef CPU_PP |
41 | #define MAX_VOICES 16 | 41 | #define MAX_VOICES 16 |
42 | #elif (CONFIG_PLATFORM & PLATFORM_HOSTED) | ||
43 | #define MAX_VOICES 48 | ||
42 | #else | 44 | #else |
43 | #define MAX_VOICES 24 /* Note: 24 midi channels is the minimum general midi spec implementation */ | 45 | #define MAX_VOICES 24 /* Note: 24 midi channels is the minimum general midi spec implementation */ |
44 | #endif /* CPU_PP */ | 46 | #endif /* CPU_PP */ |
diff --git a/apps/plugins/pacbox/pacbox_lcd.c b/apps/plugins/pacbox/pacbox_lcd.c index 64b12f08eb..c4df2fa6cd 100644 --- a/apps/plugins/pacbox/pacbox_lcd.c +++ b/apps/plugins/pacbox/pacbox_lcd.c | |||
@@ -28,7 +28,7 @@ | |||
28 | #include "arcade.h" | 28 | #include "arcade.h" |
29 | #include "hardware.h" | 29 | #include "hardware.h" |
30 | 30 | ||
31 | #if defined(SIMULATOR) || !defined(IRIVER_H300_SERIES) | 31 | #if (CONFIG_PLATFORM & PLATFORM_HOSTED) || !defined(IRIVER_H300_SERIES) |
32 | 32 | ||
33 | void blit_display(fb_data* lcd_framebuffer, unsigned char* vbuf) | 33 | void blit_display(fb_data* lcd_framebuffer, unsigned char* vbuf) |
34 | { | 34 | { |
diff --git a/apps/plugins/rockboy/rockboy.c b/apps/plugins/rockboy/rockboy.c index b95cd6d0ff..797971c734 100644 --- a/apps/plugins/rockboy/rockboy.c +++ b/apps/plugins/rockboy/rockboy.c | |||
@@ -403,7 +403,7 @@ enum plugin_status plugin_start(const void* parameter) | |||
403 | = rb->plugin_get_audio_buffer(&audio_buffer_free); | 403 | = rb->plugin_get_audio_buffer(&audio_buffer_free); |
404 | plugbuf=false; | 404 | plugbuf=false; |
405 | } | 405 | } |
406 | #if MEM <= 8 && !defined(SIMULATOR) | 406 | #if MEM <= 8 && (CONFIG_PLATFORM & PLATFORM_NATIVE) |
407 | /* loaded as an overlay plugin, protect from overwriting ourselves */ | 407 | /* loaded as an overlay plugin, protect from overwriting ourselves */ |
408 | if ((unsigned)(plugin_start_addr - (unsigned char *)audio_bufferbase) | 408 | if ((unsigned)(plugin_start_addr - (unsigned char *)audio_bufferbase) |
409 | < audio_buffer_free) | 409 | < audio_buffer_free) |
diff --git a/apps/plugins/test_codec.c b/apps/plugins/test_codec.c index 9598881790..77ad9c9530 100644 --- a/apps/plugins/test_codec.c +++ b/apps/plugins/test_codec.c | |||
@@ -697,7 +697,7 @@ static enum plugin_status test_track(const char* filename) | |||
697 | rb->snprintf(str,sizeof(str),"%d.%02d%% realtime",(int)speed/100,(int)speed%100); | 697 | rb->snprintf(str,sizeof(str),"%d.%02d%% realtime",(int)speed/100,(int)speed%100); |
698 | log_text(str,true); | 698 | log_text(str,true); |
699 | 699 | ||
700 | #ifndef SIMULATOR | 700 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) |
701 | /* show effective clockrate in MHz needed for realtime decoding */ | 701 | /* show effective clockrate in MHz needed for realtime decoding */ |
702 | if (speed > 0) | 702 | if (speed > 0) |
703 | { | 703 | { |
diff --git a/apps/plugins/test_disk.c b/apps/plugins/test_disk.c index 443e9eb18b..08e1a39704 100644 --- a/apps/plugins/test_disk.c +++ b/apps/plugins/test_disk.c | |||
@@ -114,7 +114,7 @@ static bool test_fs(void) | |||
114 | 114 | ||
115 | log_init(); | 115 | log_init(); |
116 | log_text("test_disk WRITE&VERIFY", true); | 116 | log_text("test_disk WRITE&VERIFY", true); |
117 | #ifndef SIMULATOR | 117 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) |
118 | rb->snprintf(text_buf, sizeof(text_buf), "CPU clock: %ld Hz", | 118 | rb->snprintf(text_buf, sizeof(text_buf), "CPU clock: %ld Hz", |
119 | *rb->cpu_frequency); | 119 | *rb->cpu_frequency); |
120 | log_text(text_buf, true); | 120 | log_text(text_buf, true); |
@@ -304,7 +304,7 @@ static bool test_speed(void) | |||
304 | rb->memset(audiobuf, 'T', audiobuflen); | 304 | rb->memset(audiobuf, 'T', audiobuflen); |
305 | log_init(); | 305 | log_init(); |
306 | log_text("test_disk SPEED TEST", true); | 306 | log_text("test_disk SPEED TEST", true); |
307 | #ifndef SIMULATOR | 307 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) |
308 | rb->snprintf(text_buf, sizeof(text_buf), "CPU clock: %ld Hz", | 308 | rb->snprintf(text_buf, sizeof(text_buf), "CPU clock: %ld Hz", |
309 | *rb->cpu_frequency); | 309 | *rb->cpu_frequency); |
310 | log_text(text_buf, true); | 310 | log_text(text_buf, true); |
diff --git a/apps/plugins/test_fps.c b/apps/plugins/test_fps.c index 52a56d5954..62e7f489b0 100644 --- a/apps/plugins/test_fps.c +++ b/apps/plugins/test_fps.c | |||
@@ -340,7 +340,7 @@ static void time_greyscale(void) | |||
340 | /* plugin entry point */ | 340 | /* plugin entry point */ |
341 | enum plugin_status plugin_start(const void* parameter) | 341 | enum plugin_status plugin_start(const void* parameter) |
342 | { | 342 | { |
343 | #ifndef SIMULATOR | 343 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) |
344 | char str[32]; | 344 | char str[32]; |
345 | int cpu_freq; | 345 | int cpu_freq; |
346 | #endif | 346 | #endif |
@@ -350,7 +350,7 @@ enum plugin_status plugin_start(const void* parameter) | |||
350 | (void)parameter; | 350 | (void)parameter; |
351 | 351 | ||
352 | log_init(); | 352 | log_init(); |
353 | #ifndef SIMULATOR | 353 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) |
354 | cpu_freq = *rb->cpu_frequency; /* remember CPU frequency */ | 354 | cpu_freq = *rb->cpu_frequency; /* remember CPU frequency */ |
355 | #endif | 355 | #endif |
356 | backlight_force_on(); /* backlight control in lib/helper.c */ | 356 | backlight_force_on(); /* backlight control in lib/helper.c */ |
@@ -370,7 +370,7 @@ enum plugin_status plugin_start(const void* parameter) | |||
370 | time_remote_update(); | 370 | time_remote_update(); |
371 | #endif | 371 | #endif |
372 | 372 | ||
373 | #ifndef SIMULATOR | 373 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) |
374 | if (*rb->cpu_frequency != cpu_freq) | 374 | if (*rb->cpu_frequency != cpu_freq) |
375 | rb->snprintf(str, sizeof(str), "CPU clock changed!"); | 375 | rb->snprintf(str, sizeof(str), "CPU clock changed!"); |
376 | else | 376 | else |
diff --git a/apps/plugins/test_mem.c b/apps/plugins/test_mem.c index 2a8582bc45..f648c0073a 100644 --- a/apps/plugins/test_mem.c +++ b/apps/plugins/test_mem.c | |||
@@ -194,7 +194,7 @@ enum plugin_status plugin_start(const void* parameter) | |||
194 | 194 | ||
195 | rb->screens[0]->clear_display(); | 195 | rb->screens[0]->clear_display(); |
196 | rb->screens[0]->putsf(0, line++, "%s", boost?"boosted":"unboosted"); | 196 | rb->screens[0]->putsf(0, line++, "%s", boost?"boosted":"unboosted"); |
197 | #ifndef SIMULATOR | 197 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) |
198 | rb->screens[0]->putsf(0, line++, "clock: %d Hz", *rb->cpu_frequency); | 198 | rb->screens[0]->putsf(0, line++, "clock: %d Hz", *rb->cpu_frequency); |
199 | #endif | 199 | #endif |
200 | rb->screens[0]->putsf(0, line++, "loop#: %d", ++count); | 200 | rb->screens[0]->putsf(0, line++, "loop#: %d", ++count); |