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 /firmware/common/dir.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 'firmware/common/dir.c')
-rw-r--r-- | firmware/common/dir.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/common/dir.c b/firmware/common/dir.c index 001508a552..e33bb7fc8f 100644 --- a/firmware/common/dir.c +++ b/firmware/common/dir.c | |||
@@ -115,7 +115,7 @@ struct dirent* readdir(DIR* dir) | |||
115 | return theent; | 115 | return theent; |
116 | } | 116 | } |
117 | 117 | ||
118 | int mkdir(char *name) | 118 | int mkdir(char *name, int mode) |
119 | { | 119 | { |
120 | DIR *dir; | 120 | DIR *dir; |
121 | char namecopy[MAX_PATH]; | 121 | char namecopy[MAX_PATH]; |
@@ -125,6 +125,8 @@ int mkdir(char *name) | |||
125 | struct dirent *entry; | 125 | struct dirent *entry; |
126 | struct fat_dir newdir; | 126 | struct fat_dir newdir; |
127 | int rc; | 127 | int rc; |
128 | |||
129 | (void)mode; | ||
128 | 130 | ||
129 | if ( name[0] != '/' ) { | 131 | if ( name[0] != '/' ) { |
130 | DEBUGF("Only absolute paths supported right now\n"); | 132 | DEBUGF("Only absolute paths supported right now\n"); |