1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2010 Thomas Martitz
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
27 #include "string-extra.h"
30 /* name of directory where configuration, fonts and other data
34 #undef ROCKBOX_DIR_LEN
36 #define ROCKBOX_DIR "."
37 #define ROCKBOX_DIR_LEN 1
40 /* ROCKBOX_DIR is now defined in autoconf.h for flexible build types */
42 #error ROCKBOX_DIR not defined (should be in autoconf.h)
44 #define ROCKBOX_DIR_LEN (sizeof(ROCKBOX_DIR)-1)
45 #endif /* def __PCTOOL__ */
47 #if !defined(APPLICATION) || defined(SAMSUNG_YPR0)
50 #define HOME_DIR "/mnt/media0"
55 /* make sure both are the same for native builds */
56 #undef ROCKBOX_LIBRARY_PATH
57 #define ROCKBOX_LIBRARY_PATH ROCKBOX_DIR
59 #define PLUGIN_DIR ROCKBOX_DIR "/rocks"
60 #define CODECS_DIR ROCKBOX_DIR "/codecs"
64 #else /* APPLICATION */
66 #define HOME_DIR "<HOME>" /* replaced at runtime */
67 #define HOME_DIR_LEN (sizeof(HOME_DIR)-1)
69 #define PLUGIN_DIR ROCKBOX_LIBRARY_PATH "/rockbox/rocks"
70 #if (CONFIG_PLATFORM & PLATFORM_ANDROID)
71 #define CODECS_DIR ROCKBOX_BINARY_PATH
73 #define CODECS_DIR ROCKBOX_LIBRARY_PATH "/rockbox/codecs"
76 extern void paths_init(void);
78 #endif /* !APPLICATION || SAMSUNG_YPR0 */
80 #define REC_BASE_DIR HOME_DIR
81 #define PLAYLIST_CATALOG_DEFAULT_DIR HOME_DIR "/Playlists"
83 #define LANG_DIR ROCKBOX_DIR "/langs"
85 #define PLUGIN_GAMES_DIR PLUGIN_DIR "/games"
86 #define PLUGIN_APPS_DIR PLUGIN_DIR "/apps"
87 #define PLUGIN_DEMOS_DIR PLUGIN_DIR "/demos"
88 #define VIEWERS_DIR PLUGIN_DIR "/viewers"
90 #if defined(APPLICATION) && !defined(SAMSUNG_YPR0)
91 #define PLUGIN_DATA_DIR ROCKBOX_DIR "/rocks.data"
92 #define PLUGIN_GAMES_DATA_DIR PLUGIN_DATA_DIR
93 #define PLUGIN_APPS_DATA_DIR PLUGIN_DATA_DIR
94 #define PLUGIN_DEMOS_DATA_DIR PLUGIN_DATA_DIR
95 #define VIEWERS_DATA_DIR PLUGIN_DATA_DIR
97 #define PLUGIN_DATA_DIR PLUGIN_DIR
98 #define PLUGIN_GAMES_DATA_DIR PLUGIN_DIR "/games"
99 #define PLUGIN_APPS_DATA_DIR PLUGIN_DIR "/apps"
100 #define PLUGIN_DEMOS_DATA_DIR PLUGIN_DIR "/demos"
101 #define VIEWERS_DATA_DIR PLUGIN_DIR "/viewers"
104 #define WPS_DIR ROCKBOX_DIR "/wps"
105 #define SBS_DIR WPS_DIR
106 #define THEME_DIR ROCKBOX_DIR "/themes"
107 #define FONT_DIR ROCKBOX_DIR "/fonts"
108 #define ICON_DIR ROCKBOX_DIR "/icons"
110 #define BACKDROP_DIR ROCKBOX_DIR "/backdrops"
111 #define EQS_DIR ROCKBOX_DIR "/eqs"
113 /* need to fix this once the application gets record/radio abilities */
114 #define RECPRESETS_DIR ROCKBOX_DIR "/recpresets"
115 #define FMPRESET_PATH ROCKBOX_DIR "/fmpresets"
117 #define DIRCACHE_FILE ROCKBOX_DIR "/dircache.dat"
118 #define CODEPAGE_DIR ROCKBOX_DIR "/codepages"
120 #define VIEWERS_CONFIG ROCKBOX_DIR "/viewers.config"
121 #define CONFIGFILE ROCKBOX_DIR "/config.cfg"
122 #define FIXEDSETTINGSFILE ROCKBOX_DIR "/fixed.cfg"
124 #define PLAYLIST_CONTROL_FILE ROCKBOX_DIR "/.playlist_control"
125 #define NVRAM_FILE ROCKBOX_DIR "/nvram.bin"
126 #define GLYPH_CACHE_FILE ROCKBOX_DIR "/.glyphcache"
127 #endif /* __PATHS_H__ */