From 86cab2e27a0d9f831b39032fd713945659277903 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Wed, 9 Feb 2011 20:27:23 +0000 Subject: Disable buffering codecs (and code generally) on RaaA. It's not useful to do it since you need to write back the code to disk to be able to load it from memory, it also requires writing to an executable directory. Keep it for the simulator for the sake of simulating. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29261 a1c6a512-1295-4272-9138-f99709370657 --- apps/buffering.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/buffering.c') diff --git a/apps/buffering.c b/apps/buffering.c index 9c0ad138f7..1482d6790b 100644 --- a/apps/buffering.c +++ b/apps/buffering.c @@ -1012,7 +1012,11 @@ int bufopen(const char *file, size_t offset, enum data_type type, return h->id; } - +#ifdef APPLICATION + /* loading code from memory is not supported in application builds */ + else if (type == TYPE_CODEC) + return ERR_UNSUPPORTED_TYPE; +#endif /* Other cases: there is a little more work. */ int fd = open(file, O_RDONLY); if (fd < 0) -- cgit v1.2.3