diff options
author | Nils Wallménius <nils@rockbox.org> | 2007-09-10 09:46:36 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2007-09-10 09:46:36 +0000 |
commit | 04b3435afd032766a8ac93b2904166499e62c7a4 (patch) | |
tree | 85267d62d97a3ee667fcd17b5c9f22bc5ab9da65 /apps/plugins/calendar.c | |
parent | cd5ad2ff6936c8f30fa7a8a78883822348052633 (diff) |
Clean up hard-coded paths
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14662 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/calendar.c')
-rw-r--r-- | apps/plugins/calendar.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugins/calendar.c b/apps/plugins/calendar.c index 8c0b6af5b9..8ed6122c3f 100644 --- a/apps/plugins/calendar.c +++ b/apps/plugins/calendar.c @@ -218,7 +218,7 @@ static void load_memo(struct shown *shown) for (k = 0; k < 7; k++) wday_has_memo[k] = false; memos_in_memory = 0; - fp = rb->open("/.rockbox/.memo",O_RDONLY); + fp = rb->open(ROCKBOX_DIR "/.memo",O_RDONLY); if (fp > -1) { int count = rb->filesize(fp); @@ -315,8 +315,8 @@ static void load_memo(struct shown *shown) static bool save_memo(int changed, bool new_mod, struct shown *shown) { int fp,fq; - fp = rb->open("/.rockbox/.memo",O_RDONLY | O_CREAT); - fq = rb->creat("/.rockbox/~temp"); + fp = rb->open(ROCKBOX_DIR "/.memo",O_RDONLY | O_CREAT); + fq = rb->creat(ROCKBOX_DIR "/~temp"); if ( (fq != -1) && (fp != -1) ) { int i; @@ -345,7 +345,7 @@ static bool save_memo(int changed, bool new_mod, struct shown *shown) rb->write(fq,temp,1); } rb->close(fp); - fp = rb->creat("/.rockbox/.memo"); + fp = rb->creat(ROCKBOX_DIR "/.memo"); rb->lseek(fp, 0, SEEK_SET); rb->lseek(fq, 0, SEEK_SET); for (i = 0; i < rb->filesize(fq); i++) @@ -355,7 +355,7 @@ static bool save_memo(int changed, bool new_mod, struct shown *shown) } rb->close(fp); rb->close(fq); - rb->remove("/.rockbox/~temp"); + rb->remove(ROCKBOX_DIR "/~temp"); load_memo(shown); return true; } |