diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-09-09 16:17:21 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-09-09 16:17:21 +0000 |
commit | 0d4585b28ffcac1b62ed37cee2c34de0515df468 (patch) | |
tree | 70ace8b78a4d0a44da50d692e893fadd93f85878 /uisimulator/common | |
parent | cec7c99613b3c11deb8a05deecd7ee9d16b5ea8a (diff) | |
download | rockbox-0d4585b28ffcac1b62ed37cee2c34de0515df468.tar.gz rockbox-0d4585b28ffcac1b62ed37cee2c34de0515df468.zip |
Extend lc_open() to also being able to load overlay plugins.
For this it needs to look at the plugin header. Since lc_open() doesn't know
it's a plugin, the header needs to be changed slightly to include the new lc_header (which needs to be the first element in plugin_header so it can be casted savely).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28054 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/common')
-rw-r--r-- | uisimulator/common/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uisimulator/common/io.c b/uisimulator/common/io.c index 56f1339fbc..3591905e32 100644 --- a/uisimulator/common/io.c +++ b/uisimulator/common/io.c | |||
@@ -526,7 +526,7 @@ int sim_fsync(int fd) | |||
526 | 526 | ||
527 | #ifndef __PCTOOL__ | 527 | #ifndef __PCTOOL__ |
528 | 528 | ||
529 | void *lc_open(const char *filename, char *buf, size_t buf_size) | 529 | void *lc_open(const char *filename, unsigned char *buf, size_t buf_size) |
530 | { | 530 | { |
531 | const char *sim_path = get_sim_pathname(filename); | 531 | const char *sim_path = get_sim_pathname(filename); |
532 | void *handle = _lc_open(UTF8_TO_OS(sim_path), buf, buf_size); | 532 | void *handle = _lc_open(UTF8_TO_OS(sim_path), buf, buf_size); |