From ef7293f0bc336beb30f3a5f2eafad4a447f60ac5 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Wed, 21 Jan 2004 14:58:40 +0000 Subject: 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 --- uisimulator/x11/io.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'uisimulator/x11/io.c') 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) return (creat)(name, 0666); } +int x11_mkdir(const char *name, mode_t mode) +{ + char buffer[256]; /* sufficiently big */ + (void)mode; + if(name[0] == '/') { + sprintf(buffer, "%s%s", SIMULATOR_ARCHOS_ROOT, name); + + debugf("We create the real directory '%s'\n", buffer); + return (mkdir)(buffer, 0666); + } + return (mkdir)(name, 0666); +} + int x11_remove(char *name) { char buffer[256]; /* sufficiently big */ -- cgit v1.2.3