1
0
Fork 0
forked from len0rd/rockbox

RaaA: Fix write locations of plugins

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29506 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Jarosch 2011-03-02 23:43:54 +00:00
parent a25153be6b
commit f9f89cf5cb
25 changed files with 66 additions and 36 deletions

View file

@ -467,7 +467,7 @@ void calc_scales(void)
}
void load_settings(void) {
int fp = rb->open(PLUGIN_DEMOS_DIR "/.vu_meter", O_RDONLY);
int fp = rb->open(PLUGIN_DEMOS_DATA_DIR "/.vu_meter", O_RDONLY);
if(fp>=0) {
rb->read(fp, &vumeter_settings, sizeof(struct saved_settings));
rb->close(fp);
@ -479,7 +479,7 @@ void load_settings(void) {
}
void save_settings(void) {
int fp = rb->creat(PLUGIN_DEMOS_DIR "/.vu_meter", 0666);
int fp = rb->creat(PLUGIN_DEMOS_DATA_DIR "/.vu_meter", 0666);
if(fp >= 0) {
rb->write (fp, &vumeter_settings, sizeof(struct saved_settings));
rb->close(fp);