Rockbox as an application: add get_user_file_path().
commit1b530cd3e9b1de3a5912e17cd4245b22bf5f2ceb
authorkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Sun, 1 Aug 2010 16:15:27 +0000 (1 16:15 +0000)
committerkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Sun, 1 Aug 2010 16:15:27 +0000 (1 16:15 +0000)
treef3d328dd73f46d599f0432cc43ae206798cbe4f6
parentd4afb145856b0f90d3a5c8970e6f7af51f4ca1dc
Rockbox as an application: add get_user_file_path().

For RaaA it evaluates user paths at runtime. For everything but codecs/plugins it will give the path under $HOME/.config/rockbox.org if write access is needed or if the file/folder in question exists there (otherwise it gives /usr/local/share/rockbox).
This allows for installing themes under $HOME as well as having config.cfg and other important files there while installing the application (and default themes) under /usr/local.

On the DAPs it's a no-op, returing /.rockbox directly.

Not converted to use get_user_file_path() are plugins themselves, because RaaA doesn't build plugins yet.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27656 a1c6a512-1295-4272-9138-f99709370657
41 files changed:
apps/codecs.c
apps/filetree.c
apps/filetypes.c
apps/gui/skin_engine/skin_fonts.c
apps/gui/skin_engine/skin_parser.c
apps/gui/theme_settings.c
apps/main.c
apps/menus/main_menu.c
apps/menus/theme_menu.c
apps/misc.c
apps/misc.h
apps/playlist.c
apps/playlist_catalog.c
apps/plugin.c
apps/plugin.h
apps/radio/presets.c
apps/radio/radioart.c
apps/recorder/albumart.c
apps/recorder/recording.c
apps/root_menu.c
apps/scrobbler.c
apps/settings.c
apps/settings.h
apps/tagcache.c
apps/tree.c
firmware/SOURCES
firmware/common/dircache.c
firmware/common/filefuncs.c
firmware/common/rbpaths.c [new file with mode: 0644]
firmware/common/unicode.c
firmware/export/filefuncs.h
firmware/export/rbpaths.h [new file with mode: 0644]
firmware/font.c
firmware/include/dircache.h
firmware/include/file.h
tools/buildzip.pl
tools/configure
tools/root.make
uisimulator/common/io.c
wps/WPSLIST
wps/wpsbuild.pl