diff options
-rw-r--r-- | uisimulator/x11/io.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/uisimulator/x11/io.c b/uisimulator/x11/io.c index 4c1e594047..9551d101bb 100644 --- a/uisimulator/x11/io.c +++ b/uisimulator/x11/io.c | |||
@@ -13,3 +13,16 @@ DIR *x11_opendir(char *name) | |||
13 | } | 13 | } |
14 | return opendir(name); | 14 | return opendir(name); |
15 | } | 15 | } |
16 | |||
17 | int x11_open(char *name, int opts) | ||
18 | { | ||
19 | char buffer[256]; /* sufficiently big */ | ||
20 | |||
21 | if(name[0] == '/') { | ||
22 | sprintf(buffer, "%s/%s", SIMULATOR_ARCHOS_ROOT, name); | ||
23 | |||
24 | Logf("We open the real file '%s'", buffer); | ||
25 | return open(buffer, opts); | ||
26 | } | ||
27 | return open(name, opts); | ||
28 | } | ||