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 --- firmware/common/dir.c | 4 +++- firmware/include/dir.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'firmware') 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) return theent; } -int mkdir(char *name) +int mkdir(char *name, int mode) { DIR *dir; char namecopy[MAX_PATH]; @@ -125,6 +125,8 @@ int mkdir(char *name) struct dirent *entry; struct fat_dir newdir; int rc; + + (void)mode; if ( name[0] != '/' ) { DEBUGF("Only absolute paths supported right now\n"); diff --git a/firmware/include/dir.h b/firmware/include/dir.h index 28a0a02c88..ab8e15ffa6 100644 --- a/firmware/include/dir.h +++ b/firmware/include/dir.h @@ -72,7 +72,7 @@ typedef struct DIRtag extern DIR* opendir(char* name); extern int closedir(DIR* dir); -extern int mkdir(char* name); +extern int mkdir(char* name, int mode); extern struct dirent* readdir(DIR* dir); -- cgit v1.2.3