rockbox/uisimulator/x11/io.c
Daniel Stenberg 7b3abdcb09 added for dir emulation
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@326 a1c6a512-1295-4272-9138-f99709370657
2002-04-30 13:14:59 +00:00

15 lines
281 B
C

#include <dirent.h>
#define SIMULATOR_ARCHOS_ROOT "archos"
DIR *x11_opendir(char *name)
{
char buffer[256]; /* sufficiently big */
if(name[0] == '/') {
sprintf(buffer, "%s/%s", SIMULATOR_ARCHOS_ROOT, name);
return opendir(buffer);
}
return opendir(name);
}