diff options
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/SOURCES | 2 | ||||
| -rw-r--r-- | apps/plugins/SUBDIRS | 5 | ||||
| -rw-r--r-- | apps/plugins/lib/stdio_compat.c | 5 | ||||
| -rw-r--r-- | apps/plugins/sdl/main.c | 2 |
4 files changed, 8 insertions, 6 deletions
diff --git a/apps/plugins/SOURCES b/apps/plugins/SOURCES index ea0173a..132dd53 100644 --- a/apps/plugins/SOURCES +++ b/apps/plugins/SOURCES @@ -76,8 +76,10 @@ iriverify.c #if defined(HAVE_LCD_COLOR) && \ (!defined(LCD_STRIDEFORMAT) || (LCD_STRIDEFORMAT != VERTICAL_STRIDE)) +#if (CONFIG_PLATFORM & PLATFORM_NATIVE) && (PLUGIN_BUFFER_SIZE > 0x14000) duke3d.c #endif +#endif #if PLUGIN_BUFFER_SIZE <= 0x20000 && defined(HAVE_LCD_BITMAP) diff --git a/apps/plugins/SUBDIRS b/apps/plugins/SUBDIRS index aa63c3c..62b1a6a 100644 --- a/apps/plugins/SUBDIRS +++ b/apps/plugins/SUBDIRS @@ -16,7 +16,12 @@ clock #if defined(HAVE_LCD_COLOR) && \ (!defined(LCD_STRIDEFORMAT) || (LCD_STRIDEFORMAT != VERTICAL_STRIDE)) xworld + +/* for duke, etc. */ +#if (CONFIG_PLATFORM & PLATFORM_NATIVE) && (PLUGIN_BUFFER_SIZE > 0x14000) sdl +#endif + puzzles #endif diff --git a/apps/plugins/lib/stdio_compat.c b/apps/plugins/lib/stdio_compat.c index c1d5a7b..2adc423 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) return ret / size; } -#if 0 /* stderr, stdout (disabled) */ else { - char buf[10]; - rb->snprintf(buf, 10, "%%%ds", (int)(size*nmemb)); - rb->splashf(HZ, buf, ptr); return size * nmemb; } -#endif } int _fseek_(_FILE_ *stream, long offset, int whence) diff --git a/apps/plugins/sdl/main.c b/apps/plugins/sdl/main.c index 5a3e016..f679867 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) /* we always use the audio buffer */ size_t sz; audiobuf = rb->plugin_get_audio_buffer(&sz); -#ifndef SIMULATOR +#if (CONFIG_PLATFORM & PLATFORM_NATIVE) if ((uintptr_t)audiobuf < (uintptr_t)plugin_start_addr) { uint32_t tmp_size = (uintptr_t)plugin_start_addr - (uintptr_t)audiobuf; |