rockbox/uisimulator/x11/io.c

16 lines
281 B
C
Raw Normal View History

#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);
}