summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/SOURCES2
-rw-r--r--apps/plugins/SUBDIRS5
-rw-r--r--apps/plugins/lib/stdio_compat.c5
-rw-r--r--apps/plugins/sdl/main.c2
4 files changed, 8 insertions, 6 deletions
diff --git a/apps/plugins/SOURCES b/apps/plugins/SOURCES
index ea0173a56d..132dd534f2 100644
--- a/apps/plugins/SOURCES
+++ b/apps/plugins/SOURCES
@@ -76,8 +76,10 @@ iriverify.c
76 76
77#if defined(HAVE_LCD_COLOR) && \ 77#if defined(HAVE_LCD_COLOR) && \
78 (!defined(LCD_STRIDEFORMAT) || (LCD_STRIDEFORMAT != VERTICAL_STRIDE)) 78 (!defined(LCD_STRIDEFORMAT) || (LCD_STRIDEFORMAT != VERTICAL_STRIDE))
79#if (CONFIG_PLATFORM & PLATFORM_NATIVE) && (PLUGIN_BUFFER_SIZE > 0x14000)
79duke3d.c 80duke3d.c
80#endif 81#endif
82#endif
81 83
82#if PLUGIN_BUFFER_SIZE <= 0x20000 && defined(HAVE_LCD_BITMAP) 84#if PLUGIN_BUFFER_SIZE <= 0x20000 && defined(HAVE_LCD_BITMAP)
83 85
diff --git a/apps/plugins/SUBDIRS b/apps/plugins/SUBDIRS
index aa63c3c94b..62b1a6a83d 100644
--- a/apps/plugins/SUBDIRS
+++ b/apps/plugins/SUBDIRS
@@ -16,7 +16,12 @@ clock
16#if defined(HAVE_LCD_COLOR) && \ 16#if defined(HAVE_LCD_COLOR) && \
17 (!defined(LCD_STRIDEFORMAT) || (LCD_STRIDEFORMAT != VERTICAL_STRIDE)) 17 (!defined(LCD_STRIDEFORMAT) || (LCD_STRIDEFORMAT != VERTICAL_STRIDE))
18xworld 18xworld
19
20/* for duke, etc. */
21#if (CONFIG_PLATFORM & PLATFORM_NATIVE) && (PLUGIN_BUFFER_SIZE > 0x14000)
19sdl 22sdl
23#endif
24
20puzzles 25puzzles
21#endif 26#endif
22 27
diff --git a/apps/plugins/lib/stdio_compat.c b/apps/plugins/lib/stdio_compat.c
index c1d5a7bc77..2adc4236d2 100644
--- a/apps/plugins/lib/stdio_compat.c
+++ b/apps/plugins/lib/stdio_compat.c
@@ -120,16 +120,11 @@ size_t _fwrite_(const void *ptr, size_t size, size_t nmemb, _FILE_ *stream)
120 120
121 return ret / size; 121 return ret / size;
122 } 122 }
123#if 0
124 /* stderr, stdout (disabled) */ 123 /* stderr, stdout (disabled) */
125 else 124 else
126 { 125 {
127 char buf[10];
128 rb->snprintf(buf, 10, "%%%ds", (int)(size*nmemb));
129 rb->splashf(HZ, buf, ptr);
130 return size * nmemb; 126 return size * nmemb;
131 } 127 }
132#endif
133} 128}
134 129
135int _fseek_(_FILE_ *stream, long offset, int whence) 130int _fseek_(_FILE_ *stream, long offset, int whence)
diff --git a/apps/plugins/sdl/main.c b/apps/plugins/sdl/main.c
index 5a3e016553..f679867a17 100644
--- a/apps/plugins/sdl/main.c
+++ b/apps/plugins/sdl/main.c
@@ -250,7 +250,7 @@ enum plugin_status plugin_start(const void *param)
250 /* we always use the audio buffer */ 250 /* we always use the audio buffer */
251 size_t sz; 251 size_t sz;
252 audiobuf = rb->plugin_get_audio_buffer(&sz); 252 audiobuf = rb->plugin_get_audio_buffer(&sz);
253#ifndef SIMULATOR 253#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
254 if ((uintptr_t)audiobuf < (uintptr_t)plugin_start_addr) 254 if ((uintptr_t)audiobuf < (uintptr_t)plugin_start_addr)
255 { 255 {
256 uint32_t tmp_size = (uintptr_t)plugin_start_addr - (uintptr_t)audiobuf; 256 uint32_t tmp_size = (uintptr_t)plugin_start_addr - (uintptr_t)audiobuf;