diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-01-21 14:58:40 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-01-21 14:58:40 +0000 |
commit | ef7293f0bc336beb30f3a5f2eafad4a447f60ac5 (patch) | |
tree | 68b02b0278b25a10a261d8813bbf5be39e1a51b6 /uisimulator/x11/io.c | |
parent | 33acdef9db5ffa2c6f93dc07d0400c7a72a0f25e (diff) | |
download | rockbox-ef7293f0bc336beb30f3a5f2eafad4a447f60ac5.tar.gz rockbox-ef7293f0bc336beb30f3a5f2eafad4a447f60ac5.zip |
New feature: NOw you can store the recorded files in either /recordings (the directory will be created automatically) or in the current directory.
New feature: A "Create directory" menu option (untested in the simulator).
Bug fix: The ON+Play menu could do nasty things if you pressed ON+Play in an empty dir.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4268 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/x11/io.c')
-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 14d2bfa2c0..72a7319ec6 100644 --- a/uisimulator/x11/io.c +++ b/uisimulator/x11/io.c | |||
@@ -133,6 +133,19 @@ int x11_creat(const char *name, mode_t mode) | |||
133 | return (creat)(name, 0666); | 133 | return (creat)(name, 0666); |
134 | } | 134 | } |
135 | 135 | ||
136 | int x11_mkdir(const char *name, mode_t mode) | ||
137 | { | ||
138 | char buffer[256]; /* sufficiently big */ | ||
139 | (void)mode; | ||
140 | if(name[0] == '/') { | ||
141 | sprintf(buffer, "%s%s", SIMULATOR_ARCHOS_ROOT, name); | ||
142 | |||
143 | debugf("We create the real directory '%s'\n", buffer); | ||
144 | return (mkdir)(buffer, 0666); | ||
145 | } | ||
146 | return (mkdir)(name, 0666); | ||
147 | } | ||
148 | |||
136 | int x11_remove(char *name) | 149 | int x11_remove(char *name) |
137 | { | 150 | { |
138 | char buffer[256]; /* sufficiently big */ | 151 | char buffer[256]; /* sufficiently big */ |