summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2017-12-24 17:43:30 -0500
committerFranklin Wei <git@fwei.tk>2017-12-24 17:43:30 -0500
commit8d3e3056f75fbcd8e7db6cc396981750fb65806b (patch)
tree51b5a3153859b9ff52e4172b9788b09346882aa0 /apps
parent2b49724c3a5c27407fc59972c97a90b2ba910eff (diff)
fix red once more
Change-Id: I6290cc6cca468c197656236d3dd31c3f72c53842
Diffstat (limited to 'apps')
-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
#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 aa63c3c94b..62b1a6a83d 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 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)
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 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)
/* 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;